示例#1
0
        private async void ExecuteNewCommand()
        {
            if (IsSaveEnabled)
            {
                if (_messageService.ActionConfirmed(_textLocalization.UnsavedChanges,
                                                    _textLocalization.DoYouWannaSaveChangesBeforeExit))
                {
                    await SaveProjectAsync(false);
                }
            }

            _filePath = null;

            _projectService.AddNewProject();
            _eventAggregator.GetEvent <ProjectSpecifiedEvent>().Publish();

            SaveVisibility = Visibility.Visible;
            IsSaveEnabled  = false;
        }