Пример #1
0
 private void MainForm_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Modifiers == Keys.Control && e.KeyCode == Keys.C)
     {
         if ((!cbx_customCommand.Focused || String.IsNullOrWhiteSpace(cbx_customCommand.SelectedText)) && String.IsNullOrWhiteSpace(rtb_console.SelectedText))
         {
             Debug.WriteLine("Keypress detected: CTRL + C");
             CLI.AbortChildProcessesAsync();
             e.Handled = e.SuppressKeyPress = true;
         }
     }
     else if (e.KeyCode == Keys.Escape)
     {
         Debug.WriteLine("Keypress detected: ESC");
         CloseApplication();
     }
 }
Пример #2
0
 private void Btn_consoleStop_Click(object sender, EventArgs e)
 {
     CLI.AbortChildProcessesAsync();
 }
Пример #3
0
 private void Btn_LogcatAdvancedStop_Click(object sender, EventArgs e)
 {
     CLI.AbortChildProcessesAsync();
 }