Ejemplo n.º 1
0
 private void InitPumpType()
 {
     cbPumpType.Items.Clear();
     cbPumpType.Items.AddRange(ProductIDConvertor.GetAllPumpIDString().ToArray());
     cbPumpType.SelectedIndex = 0;
     m_LocalPid = ProductIDConvertor.String2PumpID(cbPumpType.Items[cbPumpType.SelectedIndex].ToString());
     chart1.SetPid(m_LocalPid);
     chart2.SetPid(m_LocalPid);
     chart1.SetChannel(1);
     chart2.SetChannel(2);
 }
Ejemplo n.º 2
0
        private void cbPumpType_SelectedIndexChanged(object sender, EventArgs e)
        {
            m_LocalPid = ProductIDConvertor.String2PumpID(cbPumpType.Items[cbPumpType.SelectedIndex].ToString());
#if DEBUG
            chart2.Enabled = true;
#else
            if (m_LocalPid == PumpID.GrasebyF6 || m_LocalPid == PumpID.WZS50F6 || m_LocalPid == PumpID.GrasebyF6_2 || m_LocalPid == PumpID.WZS50F6_2)
            {
                chart2.Enabled = true;
            }
            else
            {
                chart2.Enabled = false;
            }
#endif
            chart1.SetPid(m_LocalPid);
            chart2.SetPid(m_LocalPid);
            chart1.SetChannel(1);
            chart2.SetChannel(2);
        }