private void Click_SSHClient()
 {
     ClearTabBtnSelect();
     tab_SSH.ToggleSelect();
     AnimationTransaction(SSH_Panel);
     SSHCMDLine.Focus();
 }
 private void CMDLists_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     try
     {
         SSHCMDLine.Text = CMDLists.Items[CMDLists.SelectedIndex].ToString();
         SSHCMDLine.Focus();
         CMDLists.ClearSelected();
     }
     catch (Exception ex)
     {
         Msg("ERROR", ex.ToString());
     }
 }
 private void SSHCMDLine_KeyDown(object sender, KeyEventArgs e)
 {
     /*
      * if (e.KeyCode == Keys.Up)
      * {
      *  if (CMDListTemp.Count > 0)
      *  {
      *      cIndex = CMDListTemp.Count - 1 - count;
      *      if (cIndex < 0) { return; }
      *      SSHCMDLine.Clear();
      *      SSHCMDLine.Text = CMDListTemp[cIndex];
      *      SSHCMDLine.Focus();
      *      count++;
      *  }
      * }
      * else if (e.KeyCode == Keys.Down)
      * {
      *  if (CMDListTemp.Count > 0)
      *  {
      *      if (cIndex >= CMDListTemp.Count) { return; }
      *      SSHCMDLine.Clear();
      *      cIndex = CMDListTemp.Count - 1 - count;
      *      SSHCMDLine.Text = CMDListTemp[cIndex];
      *      SSHCMDLine.Focus();
      *      count--;
      *  }
      * }
      * else */
     if (e.KeyCode == Keys.Enter)
     {
         e.SuppressKeyPress = true;
         if (SSHCMDLine.Text.Length > 0)
         {
             count  = 0;
             cIndex = 0;
             String CMD = SSHCMDLine.Text.Trim();
             sshCore.ExecuteCMD(CMD);
             CMDListTemp.Add(CMD);
             SSHCMDLine.Clear();
             SSHCMDLine.Focus();
         }
     }
 }