Ejemplo n.º 1
0
 private void m_rdbZ_CheckedChanged(object sender, EventArgs e)
 {
     if (m_rdbZChart.Checked)
     {
         List <clsLisQCConcentrationVO> lstQCCon = m_objBatch.GetConcentrations();
         if (lstQCCon == null || lstQCCon.Count <= 0)
         {
             return;
         }
         if (lstQCCon.Count == 1)
         {
             m_lstChoiceConcentration = lstQCCon;
             m_cmdAnalysis.Enabled    = true;
             this.m_lsvQCResult.Items.Clear();
             m_mthDrawZChart();
         }
         else
         {
             frmQCConcentrationSelector frm = new frmQCConcentrationSelector(lstQCCon, 1, m_objBatch.GetConcentrations().Count);
             Point p = m_rdbZChart.Parent.PointToScreen(m_rdbZChart.Location);
             frm.Location = new Point(p.X, p.Y + 15);
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 m_lstChoiceConcentration = frm.Concentrations;
                 m_cmdAnalysis.Enabled    = true;
                 this.m_lsvQCResult.Items.Clear();
                 m_mthDrawZChart();
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void m_rdbYouDen_CheckedChanged(object sender, EventArgs e)
 {
     if (m_rdbYoudenChart.Checked)
     {
         frmQCConcentrationSelector frm = new frmQCConcentrationSelector(m_objBatch.GetConcentrations(), 2, 2);
         Point p = m_rdbYoudenChart.Parent.PointToScreen(m_rdbYoudenChart.Location);
         frm.Location = new Point(p.X, p.Y + 15);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             m_lstChoiceConcentration = frm.Concentrations;
             this.m_lsvQCResult.Items.Clear();
             m_cmdAnalysis.Enabled = false;
             m_mthDrawYouDenChart();
         }
     }
 }