Example #1
0
 public OpinionViewModel(SubjectVmi selectedSubject, OpinionVmi selectedChildOpinion) : base(selectedChildOpinion)
 {
     CurrentSubject = selectedSubject;
 }
Example #2
0
 private void OnReturnFromNewOpinion(OpinionVmi opinion)
 {
     Opinions.Insert(0, opinion);
 }
Example #3
0
        public OpinionView(DataSourceContext dataSourceContext, SubjectVmi selectedChildSubject, OpinionVmi selectedChildOpinion)
        {
            InitializeComponent();

            ViewModel = new OpinionViewModel(selectedChildSubject, selectedChildOpinion);
            ViewModel.DataSourceContext      = dataSourceContext;
            ViewModel.DataSourceContextIndex = ViewModel.DataSourceContext.ContextItems.Count;

            BindControls();
        }