Example #1
0
 public static void Start()
 {
     if (!WinInterface.KillOthers())
     {
         WinInterface.ElevateMe(Program.ARG_STANDALONE);
     }
     AttachHandler();
 }
Example #2
0
        public static void CaseKill(bool FromForm = false)
        {
            ScreenshotService.Stop();

            if (!WinInterface.KillOthers())
            {
                WinInterface.ElevateMe(ARG_KILL);
            }

            if (!FromForm)
            {
                OpenForm();
            }
        }
Example #3
0
 public static void CaseUninstall(bool FromForm = false)
 {
     if (!WinInterface.IsProcessElevated)
     {
         WinInterface.ElevateMe(ARG_UNINSTALL);
     }
     else
     {
         WinInterface.SetStartup(false);
         if (!FromForm)
         {
             OpenForm();
         }
     }
 }
Example #4
0
 private void WelcomeForm_Load(object sender, EventArgs e)
 {
     CheckAutoStart.Checked = WinInterface.IsOnStartup();
 }