public ProjectManager(IConfirmationRequestService confirmationRequestService, IOpenProjectFileService fileOpenDialogService, ISaveProjectFileService fileSaveDialogService) { Project = new Project(); FilePath = string.Empty; _ConfirmationRequestService = confirmationRequestService; _FileOpenDialogService = fileOpenDialogService; _FileSaveDialogService = fileSaveDialogService; }
public MainViewModel(IOpenProjectFileService fileOpenDialogService, ISaveProjectFileService fileSaveDialogService, IConfirmationRequestService confirmationRequestService, IDialogWindowService dialogWindowService) { _DialogWindowService = dialogWindowService; _ProjectManager = new ProjectManager(confirmationRequestService, fileOpenDialogService, fileSaveDialogService); OpenProjectCommand = new Command(_ProjectManager.LoadProject); SaveProjectCommand = new Command(_ProjectManager.SaveProject, _ProjectManager.CanSaveProject); SaveAsProjectCommand = new Command(_ProjectManager.SaveAsProject); CloseProjectCommand = new Command(_ProjectManager.CloseProject, _ProjectManager.CanCloseProject); CreateNewProjectCommand = new Command(_ProjectManager.CreateNewProject); PropertyChanged += MainViewModel_PropertyChanged; ShowAboutWindowCommand = new Command(ShowAboutWindow); }