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; }
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); } }
public SyncSession(FeatureSyncState feature, ZPushAccount account) { this._feature = feature; this._account = account; }
public SyncStateData(FeatureSyncState feature) { this._feature = feature; }