Пример #1
0
 /// <summary>
 /// 参数类型改变
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件参数</param>
 private void comboBoxEx3_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (beginEdit)
     {
         if (comboBoxEx3.SelectedIndex == 2)
         {
             FieldSelectForm sForm  = new FieldSelectForm(conn);
             DialogResult    result = sForm.ShowDialog();
             if (result == DialogResult.OK)
             {
                 beginEdit            = false;
                 comboBoxEx3.Items[2] = sForm.Value;
                 beginEdit            = true;
             }
         }
     }
 }
Пример #2
0
 /// <summary>
 /// 参数类型改变
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件参数</param>
 private void comboBoxEx3_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (beginEdit)
     {
         if (comboBoxEx3.SelectedIndex == 2)
         {
             FieldSelectForm sForm = new FieldSelectForm(conn);
             DialogResult result = sForm.ShowDialog();
             if (result == DialogResult.OK)
             {
                 beginEdit = false;
                 comboBoxEx3.Items[2] = sForm.Value;
                 beginEdit = true;
             }
         }
     }
 }