tags:

views:

15

answers:

1

I'm doing something similar to this, but wondering if there is an event somewhere that I'm missing

Store DefaultStore
    {
        get
        {
            var defaultStore = mOutlookApp_Model.Session.DefaultStore;

            if ( defaultStore.StoreID == mDefaultStore.StoreID )
            {
                // the default store we set at startup is the same as the default store now, so all good
                return mDefaultStore;
            }
            else
            {
                // the user changed the default store, so restart the addin_app
                DefaultStoreChangedRestartAddIn.Fire();
                return null;
            }
        }
    }
    readonly Store mDefaultStore; 
+1  A: 

Nope there isn't anything like this in the API, so hand crafting something is the only way.

76mel