Exemplo n.º 1
0
        public void UpdateSharedStore()
        {
            Logger.Instance.Debug(this, "Updating shared store: {0}", _account);
            RemindersQuery query = OpenQuery();

            if (query != null)
            {
                Logger.Instance.Debug(this, "Updating shared store reminders: {0}", query);
                ((RemindersQueryStore)query).SetReminders(_account.ShowReminders);
                query.Commit();
            }
        }
Exemplo n.º 2
0
 private RemindersQuery OpenQuery()
 {
     if (_query == null)
     {
         if (_feature.Reminders)
         {
             RemindersQuery query = new RemindersQuery(_feature, _account.Account.Store);
             if (query.Open())
             {
                 _query = query;
             }
             else
             {
                 query.Dispose();
             }
         }
     }
     return(_query);
 }