示例#1
0
        private void m_redlst_DoubleClick(object sender, EventArgs e)
        {
            var elementType = (ElementType)m_redlst.SelectedItem;

            switch (elementType)
            {
            case ElementType.Resistor:
                IDC_ZR_STATIC.Show();
                IDC_ZC_STATIC.Hide();
                IDC_ZI_STATIC.Hide();
                m_n.Focus();
                break;

            case ElementType.Capacitor:
                IDC_ZR_STATIC.Hide();
                IDC_ZC_STATIC.Show();
                IDC_ZI_STATIC.Hide();
                m_n.Focus();
                break;

            case ElementType.Inductor:
                IDC_ZR_STATIC.Hide();
                IDC_ZC_STATIC.Hide();
                IDC_ZI_STATIC.Show();
                m_n.Focus();
                break;
            }
        }
示例#2
0
 public Editor(Parameters parameters)
 {
     InitializeComponent();
     Parameters = parameters;
     IDC_ZR_STATIC.Show();
     IDC_ZC_STATIC.Hide();
     IDC_ZI_STATIC.Hide();
     IDC_IN.Enabled = false;
 }