예제 #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;
        }
예제 #2
0
파일: TestsView.cs 프로젝트: mahitosh/HRA4
 /**************************************************************************************************/
 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();
     }
 }
예제 #3
0
 /**************************************************************************************************/
 public DiagnosticSummaryResultView(Diagnostic dx)
 {
     diagnostic = dx;
     dx.AddHandlersWithLoad(DxChanged, null, null);
     InitializeComponent();
 }
예제 #4
0
 public void setInitialDx(Diagnostic dx)
 {
     InitialDx = dx;
 }
예제 #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);
 }
예제 #6
0
 /***************************************************************/
 public void AddDiagnostic(Diagnostic d)
 {
     Items.Add(d);
     DiagnosticSummaryResultView dsrv = new DiagnosticSummaryResultView(d);
     flowLayoutPanel1.Controls.Add(dsrv);
 }