private void _AddMultipleProjectsWindow_Closed(object sender, EventArgs e) { var window = _AddMultipleProjectsWindow; _AddMultipleProjectsWindow = null; window.Closed -= _AddMultipleProjectsWindow_Closed; }
public void OpenAddMultipleProjectsWindow(AddMultipleProjectsConfigurationViewModel viewModel) { if (viewModel == null) { throw new ArgumentNullException(nameof(viewModel)); } _AddMultipleProjectsWindow = new AddMultipleProjectsWindow(viewModel); _AddMultipleProjectsWindow.Closed += _AddMultipleProjectsWindow_Closed; _AddMultipleProjectsWindow.ShowModal(); }