Example #1
0
 void _defaultContextMenu_Opening(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (ChoGlobalApplicationSettings.Me.TrayApplicationBehaviourSettings.ContextMenuSettings.DisplayRunAtSystemsStartupMenuItem)
     {
         if (ChoWindowsIdentity.IsAdministrator())
         {
             _runAtStartupContextMenuItem.Checked = ChoApplication.IsAppRunAtSystemStartup("{0}_I".FormatString(ChoGlobalApplicationSettings.Me.ApplicationNameWithoutExtension));
         }
         else
         {
             //_runAtStartupContextMenuItem.Text = ChoApplication.IsAppRunAtSystemStartup() ? "Remove Run at Systems &Startup" : "Run at Systems &Startup";
         }
     }
 }