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; } } } }
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); }
public ModelInfo(PFE.Model.Model model, MainForm main) { InitializeComponent(); Init(model, main); }