コード例 #1
0
 private void InvokeClosingEvent(object?sender, CancelEventArgs e)
 {
     EventСancellation?.Invoke();
 }
コード例 #2
0
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     CloseWindow();
     EventСancellation?.Invoke();
 }