public Form1() { InitializeComponent(); RamInfo = new RAMInfo(this); ProcessKiller = new ProcessKiller(); LaunchHelper.AddAllProcessToComboBox(this); IsLoop = false; }
private void KillSelectedProcess_Button_Click(object sender, EventArgs e) { try { ProcessKiller.KillSelectedProcess(comboBox1.SelectedItem.ToString()); } catch (Exception) { MessageBox.Show("Ви не обрали процес!", "УВАГА"); } }