private void OnClosing(object sender, CancelEventArgs e) { if (_mainWindowCoordinator.Saved) { return; } if (_coordinator.ShowModalMessageWindow(_localizer.CommonWarnig, _localizer.MainWindowCloseWarning) == false) { e.Cancel = true; return; } if (!_workspace.ProjectFile.IsEmpty) { _workspace.ProjectFile.Operator.Tell(ForceSave.Seal(_workspace.ProjectFile), ActorRefs.NoSender); } }