Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 /**************************************************************************************************/
 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();
 }
Esempio n. 4
0
 public void setInitialDx(Diagnostic dx)
 {
     InitialDx = dx;
 }
Esempio n. 5
0
 /***************************************************************/
 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);
 }
Esempio n. 6
0
 /***************************************************************/
 public void AddDiagnostic(Diagnostic d)
 {
     Items.Add(d);
     DiagnosticSummaryResultView dsrv = new DiagnosticSummaryResultView(d);
     flowLayoutPanel1.Controls.Add(dsrv);
 }