예제 #1
0
 public OpinionViewModel(SubjectVmi selectedSubject, OpinionVmi selectedChildOpinion) : base(selectedChildOpinion)
 {
     CurrentSubject = selectedSubject;
 }
예제 #2
0
 private void OnReturnFromNewOpinion(OpinionVmi opinion)
 {
     Opinions.Insert(0, opinion);
 }
예제 #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();
        }