コード例 #1
0
        public ModelInfoViewModel(PFE.Model.Model model, MainForm mainForm)
        {
            this.model = model;
            if (this.model.surveys == null)
            {
                this.model.surveys = new List <Survey>();
            }
            else
            {
                foreach (Survey survey in this.model.surveys)
                {
                    switch (survey.phaseNumber)
                    {
                    case 1:
                        aviabePhases.Remove(1);
                        break;

                    case 2:
                        aviabePhases.Remove(2);
                        break;

                    case 3:
                        aviabePhases.Remove(3);
                        break;
                    }
                }
            }
        }
コード例 #2
0
 public void Init(PFE.Model.Model model, MainForm main)
 {
     viewModel = new ModelInfoViewModel(model, main);
     loadExistingSurveys();
     textBoxEvaluationContext.DataBindings.Add("Text", viewModel.model, "evaluationContext", true, DataSourceUpdateMode.OnPropertyChanged);
 }
コード例 #3
0
 public ModelInfo(PFE.Model.Model model, MainForm main)
 {
     InitializeComponent();
     Init(model, main);
 }