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>(); }
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(); }
public SmartStoreExtension() { _store = SmartStore.GetSmartStore(); CreateAccountsSoup(); CreateOpportunitiesSoup(); }