Esempio n. 1
0
 private void ExecuteChangeStartup(object sender, EventArgs e)
 {
     if (RegistryServiceHelper.IsOnStartup())
     {
         RegistryServiceHelper.RemoveFromStartup();
     }
     else
     {
         RegistryServiceHelper.AddToStartup();
     }
     CheckContextMenuState();
 }
Esempio n. 2
0
 private void CheckContextMenuState()
 {
     //¿?
     //_notifyIcon.ContextMenu.MenuItems[CN_Auto].Checked = RegistryServiceHelper.IsOnStartup();
     _notifyIcon.ContextMenu.MenuItems[2].Checked = RegistryServiceHelper.IsOnStartup();
 }