Пример #1
0
        private void _LoadProjectsWindow_Closed(object sender, EventArgs e)
        {
            var window = _LoadProjectsWindow;

            _LoadProjectsWindow = null;
            window.Closed      -= _LoadProjectsWindow_Closed;
        }
Пример #2
0
 public void OpenLoadProjectsWindow(LoadProjectsWindowViewModel viewModel)
 {
     if (viewModel == null)
     {
         throw new ArgumentNullException(nameof(viewModel));
     }
     _LoadProjectsWindow         = new LoadProjectsWindow(viewModel);
     _LoadProjectsWindow.Closed += _LoadProjectsWindow_Closed;
     _LoadProjectsWindow.ShowModal();
 }