Пример #1
0
 public SyncStateImpl(FeatureSyncState feature, ZPushAccount[] accounts)
 {
     this._feature  = feature;
     this._accounts = accounts;
     _canResync     = new bool[Enum.GetNames(typeof(ResyncOption)).Length];
     _canResync[(int)ResyncOption.GAB]        = _featureGAB != null;
     _canResync[(int)ResyncOption.Signatures] = _featureSignatures != null;
     _canResync[(int)ResyncOption.ServerData] = ThisAddIn.Instance.Watcher.Sync.Enabled;
     _canResync[(int)ResyncOption.Full]       = true;
 }
Пример #2
0
        public SyncStateDialog(FeatureSyncState feature)
        {
            InitializeComponent();

            // Ensure these are in sync with ResyncOption
            _syncButtons = new Button[]
            {
                buttonGAB, buttonSignatures, buttonServerData, buttonFullResync
            };
            this._feature = feature;
            comboAccounts.SelectedIndex = 0;

            // Add the accounts
            foreach (ZPushAccount account in ThisAddIn.Instance.Watcher.Accounts.GetAccounts())
            {
                comboAccounts.Items.Add(account);
            }
        }
Пример #3
0
 public SyncSession(FeatureSyncState feature, ZPushAccount account)
 {
     this._feature = feature;
     this._account = account;
 }
Пример #4
0
 public SyncStateData(FeatureSyncState feature)
 {
     this._feature = feature;
 }