public void RegisterTypes() { Core.ResourceStore.PropTypes.Register("IsTrayIconFilter", PropDataType.Bool, PropTypeFlags.Internal); AllRules = Core.ResourceStore.FindResourcesLive(FilterManagerProps.ViewCompositeResName, "IsTrayIconFilter", true); // This trace also immediately instantiates live list in order // to fix OM-12295. Trace.WriteLine("TrayIconManager -- registered a live list of rules, current count is " + AllRules.Count); Mode = Core.SettingStore.ReadBool("TrayIconRules", "OutlookMode", false) ? TrayIconMode.Outlook : TrayIconMode.Strict; }
public void SetOutlookMode() { Mode = TrayIconMode.Outlook; Core.SettingStore.WriteBool("TrayIconRules", "OutlookMode", true); }
public void SetStrictMode() { Mode = TrayIconMode.Strict; Core.SettingStore.WriteBool("TrayIconRules", "OutlookMode", false); }