コード例 #1
0
 private void txtCondition_KeyDown(object sender, KeyEventArgs e)
 {
     switch (e.KeyCode)
     {
     case Keys.F2:
         using (HelpFillDataDialog dlg = new HelpFillDataDialog(eHelpType.LightCondition))
         {
             if (dlg.ShowDialog(this) == DialogResult.OK)
             {
                 txtCondition.Text = dlg.SelectedText;
             }
         }
         break;
     }
 }
コード例 #2
0
 private void lCondition_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         if (txtCondition.Enabled)
         {
             using (HelpFillDataDialog dlg = new HelpFillDataDialog(eHelpType.LightCondition))
             {
                 if (dlg.ShowDialog(this) == DialogResult.OK)
                 {
                     txtCondition.Text = dlg.SelectedText;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         rMessageBox.ShowException(this, ex);
     }
 }