private void DeleteOptionDialog_OnClosing(object sender, EventArgs e) { var optionClosingArgs = new OptionClosingArgument() { IsConfirmed = ViewModel.IsConfirmed, SelectedOption = ViewModel.SelectedOption, SelectedOccurrence = ViewModel.SelectedOccurrence, IsAllFilesChecked = ViewModel.IsAllFilesChecked }; BeforeClosing?.Invoke(sender, optionClosingArgs); }
private void OnBeforeClosing(object sender, WindowEventArgs e) { BeforeClosing?.Invoke(this, e); }