private void code_EditValueChanged(object sender, EventArgs e) { var cd = code.EditValue; viewModel.ChangeTest(cd.ToString()); ChangeFact(); }
private void code_EditValueChanged(object sender, EventArgs e) { var cd = code.EditValue; viewModel.ChangeTest(cd.ToString()); if (viewModel.TestResult.Operation != null) { ChangeFact(); } if (isNew) { var insp = (List <Inspector>)listOfInspectors.Where(_ => _.Key == cd.ToString()).FirstOrDefault().Value; if (insp != null) { viewModel.TestResult.Inspectors = insp; } else { viewModel.TestResult.Inspectors = new List <Inspector>(); } inspectors.SelectInspectors(viewModel.SelectInspectors()); } }