コード例 #1
0
 private void EditingReasonCustomerForm_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.Enter)
     {
         SelectionReason?.Invoke();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         TSB_Save.PerformClick();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         Close();
     }
 }
コード例 #2
0
 private void LL_Reason_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     SelectionReason?.Invoke();
 }