Exemplo n.º 1
0
Arquivo: Form1.cs Projeto: baiy/login
 private void button2_Click(object sender, EventArgs e)
 {
     RunProgram.RunSsh(
         textBoxsshhost.Text,
         textBoxsshusername.Text,
         textBoxsshpassword.Text,
         textBoxsshport.Text
         );
 }
Exemplo n.º 2
0
Arquivo: Form1.cs Projeto: baiy/login
 private void dataGridViewssh_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     RunProgram.RunSsh(
         dataGridViewssh.Rows[e.RowIndex].Cells[0].Value.ToString(),
         dataGridViewssh.Rows[e.RowIndex].Cells[1].Value.ToString(),
         dataGridViewssh.Rows[e.RowIndex].Cells[4].Value.ToString(),
         dataGridViewssh.Rows[e.RowIndex].Cells[2].Value.ToString()
         );
 }