Example #1
0
        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;
        }
Example #2
0
 public void  SetOutlookMode()
 {
     Mode = TrayIconMode.Outlook;
     Core.SettingStore.WriteBool("TrayIconRules", "OutlookMode", true);
 }
Example #3
0
 public void  SetStrictMode()
 {
     Mode = TrayIconMode.Strict;
     Core.SettingStore.WriteBool("TrayIconRules", "OutlookMode", false);
 }