private void InvokeClosingEvent(object?sender, CancelEventArgs e) { EventСancellation?.Invoke(); }
private void CancelButton_Click(object sender, RoutedEventArgs e) { CloseWindow(); EventСancellation?.Invoke(); }