/// <summary> /// Handles the Click event of the Ok control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param> private void OkButton_Click(object sender, RoutedEventArgs e) { if (OnOkButtonClicked != null) { OnOkButtonClicked.Invoke(sender, e); } }
/// <summary> /// Handles the Click event of the Ok control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs" /> instance containing the event data.</param> private void OkButton_Click(object sender, System.Windows.RoutedEventArgs e) { if (OnOkButtonClicked != null) { OnOkButtonClicked.Invoke(this, e); } }
/// <summary> /// Called when the ok button was clicked /// </summary> /// <param name="obj"></param> private void OkButtonClicked(MyGuiControlButton obj) { OnOkButtonClicked?.Invoke(); CloseScreen(); }