コード例 #1
0
        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);
        }
コード例 #2
0
 private void OnBeforeClosing(object sender, WindowEventArgs e)
 {
     BeforeClosing?.Invoke(this, e);
 }