Exemplo n.º 1
0
 public ShellViewModel(
     Func <IProjectManager> projectManagerFactory,
     Func <IEnumerable <IDiiagramrCommand> > commandsFactory,
     Func <ContextMenuViewModel> contextMenuViewModelFactory,
     Func <IShell> shellFactory,
     Func <ToolbarViewModel> toolbarViewModelFactory)
 {
     Shell = shellFactory.Invoke();
     Shell.AttachToViewModel(this);
     ContextMenuViewModel = contextMenuViewModelFactory.Invoke();
     ProjectManager       = projectManagerFactory.Invoke();
     ToolbarViewModel     = toolbarViewModelFactory.Invoke();
     ShellCommand.Execute(StartCommandId);
 }
 private void LoadProject(string projectName)
 {
     ShellCommand.Execute("Project:Open", projectName);
 }
 public void BrowseButtonPressed()
 {
     ShellCommand.Execute("Project:Open");
 }
 public void NewButtonPressed()
 {
     ShellCommand.Execute("Project:New");
 }