public UpdateIssueWindowViewModel(IssueViewModel issue, MainWindowViewModel parentViewModel) { this.issueViewModel = issue; this.parentViewModel = parentViewModel; this.SelectedStatus = this.parentViewModel.StatusList.Where(x => x.Name == this.issueViewModel.Status).First(); this.SelectedPriority = this.parentViewModel.PriorityList.Where(x => x.Name == this.issueViewModel.Priority).First(); }
public void UpdateIssue(IssueViewModel issueViewModel) { Messenger.Raise(new TransitionMessage(new UpdateIssueWindowViewModel(issueViewModel, this), "UpdateIssueTransition")); }