Exemple #1
0
 public NewProjectViewModel()
 {
     Project        = new Project();
     ProjectSetting = new ProjectSettingViewModel(Project);
     CommitCommand  = Project.IsValid.ToReactiveCommand();
     CommitCommand.Subscribe(x => Commit());
 }
        public ProjectRepairViewModel(Project project, string message)
        {
            clone_         = project.Clone();
            ProjectSetting = new ProjectSettingViewModel(clone_);
            Message.Value  = message + "プロジェクト型を元の型に設定しなおしてください。必要であればアセンブリを設定しなおしてください。";

            CommitCommand = clone_.IsValid.ToReactiveCommand();
            CommitCommand.PublishTask(x => CommitAsync(), e => ShowError(e, "エラー"));
        }
        private void OpenProjectSetting()
        {
            var vm = new ProjectSetting.ProjectSettingViewModel(Editor.Value.Project.Value);

            Messenger.Raise(new TransitionMessage(vm, TransitionMode.Modal, "ProjectSetting"));
        }