CheckIfRunAtWinBoot() public method

Checks for autorun registry entry
public CheckIfRunAtWinBoot ( string name ) : bool
name string "key" to search for in startup registry
return bool
Ejemplo n.º 1
0
    public FormSettings()
    {
      InitializeComponent();
      Icon = Properties.Resources.preferencesIcon;

      if (!Utilities.SystemInformation.IsRunningOnMono()) {
        startUpUtilities = new StartupUtilities(StartupUtilities.StartupUserScope.CurrentUser);
        checkAutoStart.Checked = startUpUtilities.CheckIfRunAtWinBoot(AppKeyName);
      }
      else {
        checkAutoStart.Visible = false;
      }
    }
Ejemplo n.º 2
0
        public FormSettings()
        {
            InitializeComponent();
            Icon = Resources.preferencesIcon;

            if (!SystemInformation.IsRunningOnMono())
            {
                startUpUtilities       = new StartupUtilities(StartupUtilities.StartupUserScope.CurrentUser);
                checkAutoStart.Checked = startUpUtilities.CheckIfRunAtWinBoot(APP_KEY_NAME);
            }
            else
            {
                checkAutoStart.Visible = false;
            }
        }