private void TriggerButton_Click(object sender, EventArgs e)
 {
     if (OptionComboBox.SelectedItem != null)
     {
         SelectionMadeEventArgs args = new SelectionMadeEventArgs(OptionComboBox.SelectedItem.ToString());
         OnSelectionMade(args);
     }
 }
    private void OnSelectionMade(SelectionMadeEventArgs e)
    {
        EventHandler <SelectionMadeEventArgs> handler = SelectionMade;

        if (handler != null)
        {
            handler(this, e);
        }
    }
示例#3
0
 void detachedForm_SelectionMade(object sender, SelectionMadeEventArgs e)
 {
     OutputBox.Text = e.ActualSelection;
 }