public OpinionViewModel(SubjectVmi selectedSubject, OpinionVmi selectedChildOpinion) : base(selectedChildOpinion) { CurrentSubject = selectedSubject; }
private void OnReturnFromNewOpinion(OpinionVmi opinion) { Opinions.Insert(0, opinion); }
public OpinionView(DataSourceContext dataSourceContext, SubjectVmi selectedChildSubject, OpinionVmi selectedChildOpinion) { InitializeComponent(); ViewModel = new OpinionViewModel(selectedChildSubject, selectedChildOpinion); ViewModel.DataSourceContext = dataSourceContext; ViewModel.DataSourceContextIndex = ViewModel.DataSourceContext.ContextItems.Count; BindControls(); }