Esempio n. 1
0
        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);
        }
Esempio n. 3
0
 public GABHandler(FeatureGAB feature, Func <IFolder, IAddressBook> contactsProvider, Action <IAddressBook> contactsDisposer)
 {
     this._feature          = feature;
     this._contactsProvider = contactsProvider;
     this._contactsDisposer = contactsDisposer;
 }