Add double click connect

This commit is contained in:
Louis Lam 2022-10-29 04:31:08 +08:00
parent c920fa115f
commit c33f44f1dc
3 changed files with 6 additions and 1 deletions

View File

@ -280,6 +280,7 @@
this.listBox.Size = new System.Drawing.Size(211, 276); this.listBox.Size = new System.Drawing.Size(211, 276);
this.listBox.TabIndex = 0; this.listBox.TabIndex = 0;
this.listBox.SelectedValueChanged += new System.EventHandler(this.listBox_SelectedValueChanged); this.listBox.SelectedValueChanged += new System.EventHandler(this.listBox_SelectedValueChanged);
this.listBox.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBox_MouseDoubleClick);
// //
// MainForm // MainForm
// //

View File

@ -184,5 +184,9 @@ namespace RDP_Portal {
About about = new About(); About about = new About();
about.ShowDialog(this); about.ShowDialog(this);
} }
private void listBox_MouseDoubleClick(object sender, MouseEventArgs e) {
buttonConnect_Click(sender, e);
}
} }
} }