public SummaryItemRow(Diagnostic theTest, HraView view) { parentView = view; InitializeComponent(); test = theTest; if(theTest.date > DateTime.MinValue) dateTimePicker1.Value = theTest.date; comboBox1.Text = test.normal; //richTextBox1.Text = test.summary; comboBox2.Text = test.value; comboBox3.Text = test.status; }
/**************************************************************************************************/ private void RemoveDxFromList(Diagnostic theStudy) { int i = fastDataListView1.SelectedIndex; fastDataListView1.RemoveObject(theStudy); if (fastDataListView1.Items.Count > i) { fastDataListView1.SelectedIndex = i; } else { comboBox1.Text = ""; ValueLabel.Text = ""; ValueLabel.Location = new Point(label5.Location.X + label5.Width, label5.Location.Y); comboBox3.Text = ""; dateTimePicker1.Text = ""; richTextBox1.Text = ""; panel3.Controls.Clear(); } }
/**************************************************************************************************/ public DiagnosticSummaryResultView(Diagnostic dx) { diagnostic = dx; dx.AddHandlersWithLoad(DxChanged, null, null); InitializeComponent(); }
public void setInitialDx(Diagnostic dx) { InitialDx = dx; }
/***************************************************************/ public void RemoveDiagnostic(Diagnostic theStudy) { Control doomed = null; foreach (Control c in flowLayoutPanel1.Controls) { if (c is DiagnosticSummaryResultView) { DiagnosticSummaryResultView dsrv = (DiagnosticSummaryResultView)c; if (dsrv.GetDiagnostic() == theStudy) { doomed = dsrv; } } } if (doomed != null) flowLayoutPanel1.Controls.Remove(doomed); }
/***************************************************************/ public void AddDiagnostic(Diagnostic d) { Items.Add(d); DiagnosticSummaryResultView dsrv = new DiagnosticSummaryResultView(d); flowLayoutPanel1.Controls.Add(dsrv); }