コード例 #1
0
 /// <summary>
 /// Handler method that's called when the user clicks on the "Connect" menu item in the context menu that appears when the user right-clicks on
 /// a history entry; opens up a connection window in a new tab.
 /// </summary>
 /// <param name="sender">Object from which this event originated.</param>
 /// <param name="e">Argument associated with this event.</param>
 private async void connectMenuItem_Click(object sender, EventArgs e)
 {
     await _applicationForm.Connect(_connections[_historyListView.SelectedItems[0]].Connection);
 }