public GABSettings(FeatureGAB feature = null) { this._feature = feature; InitializeComponent(); // Allow null feature for designer if (feature != null) { checkFaxNumbers.Checked = feature.SyncFaxNumbers; } }
public static GABHandler FindGABForAccount(ZPushAccount account) { FeatureGAB gab = ThisAddIn.Instance.GetFeature <FeatureGAB>(); if (gab != null) { foreach (GABHandler handler in gab.GABHandlers) { if (account == handler.ActiveAccount) { return(handler); } } } return(null); }
public GABHandler(FeatureGAB feature, Func <IFolder, IAddressBook> contactsProvider, Action <IAddressBook> contactsDisposer) { this._feature = feature; this._contactsProvider = contactsProvider; this._contactsDisposer = contactsDisposer; }