public NoteSyncViewModel()
        {
            Account account = AccountManager.GetAccount();

            if (account == null)
            {
                return;
            }
            _store         = SmartStore.GetSmartStore();
            _syncManager   = SyncManager.GetInstance(account);
            Notes          = new SortedObservableCollection <NoteObject>();
            FilteredNotes  = new SortedObservableCollection <NoteObject>();
            IndexReference = new ObservableCollection <string>();
        }
Example #2
0
        private async void Logout(object sender, RoutedEventArgs e)
        {
            var store = SmartStore.GetSmartStore(AccountManager.GetAccount());

            if (store == null)
            {
                ContactsDataModel.ClearSmartStore();
                if (SDKManager.GlobalClientManager != null)
                {
                    await SDKManager.GlobalClientManager.LogoutAsync();
                }
                AccountManager.SwitchAccount();
            }
            await store.LogoutAsync();
        }
Example #3
0
 public SmartStoreExtension()
 {
     _store = SmartStore.GetSmartStore();
     CreateAccountsSoup();
     CreateOpportunitiesSoup();
 }