Пример #1
0
        } //check if epic running

        private void btnKillEpic_Click(object sender, EventArgs e)
        {
            Process[] pname = Process.GetProcessesByName("EpicGamesLauncher");
            try
            {
                pname[0].Kill();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Process Can't killed Exit Epic Games Manully \r\n " + ex.Message);
            }
            btnKillEpic.Enabled = false;
            grpBox.Enabled      = true;
            btnKillEpic.Text    = "Epic Games Killed ! yah ";
            GInfo = new GamesInfo();
        } // kill epic process
Пример #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Process[] pname = Process.GetProcessesByName("EpicGamesLauncher");
     if (pname.Length != 0)
     {
         btnKillEpic.Enabled = true;
         grpBox.Enabled      = false;
     }
     else
     {
         btnKillEpic.Enabled = false;
         grpBox.Enabled      = true;
         btnKillEpic.Text    = "Epic Games Killed ! yah ";
         GInfo = new GamesInfo();
     }
 } //check if epic running