private void TextFilter_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         e.SuppressKeyPress = true;
         ButtonSearch.PerformClick();
     }
 }
Exemplo n.º 2
0
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (keyData == Keys.Enter)
     {
         ButtonSearch.PerformClick();
         return true;
     }
     return base.ProcessCmdKey(ref msg, keyData);
 }
Exemplo n.º 3
0
        private void TextBoxSerialNumber_Leave(object sender, EventArgs e)
        {
            ButtonSearch.PerformClick();
            ReturnInfo getMeter = _meter.GetMeterBySerialNumber(new SmartDB(), TextBoxSerialNumber.Text);
            bool       flag     = getMeter.Code == ErrorEnum.NoError;

            if (flag)
            {
                ButtonEdit.PerformClick();
            }
        }
Exemplo n.º 4
0
 private void TextBoxKeyword_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         if (e.KeyCode == Keys.Enter)
         {
             ButtonSearch.PerformClick();
         }
     }
     catch (Exception oExcep)
     {
         ShowLogMessage(TraceEventType.Error, "情報検索フォーム検索キーワード入力時エラー:\n" + oExcep.Message);
         ShowLogMessage(TraceEventType.Verbose, " スタックトレース:\n" + oExcep.StackTrace);
     }
 }