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

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

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