Esempio n. 1
0
 ///<summary>
 ///judGyoshuKeyDown
 ///コード入力項目でのキー入力判定
 ///</summary>
 private void judGyoshuKeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F9)
     {
         if (this.Parent is GroupBox || this.Parent is Panel)
         {
             GyoshuList GyoshuList = new GyoshuList(this.Parent.Parent, this);
             GyoshuList.StartPosition = FormStartPosition.Manual;
             GyoshuList.intFrmKind    = CommonTeisu.FRM_GYOSHU;
             GyoshuList.ShowDialog();
         }
         else
         {
             GyoshuList GyoshuList = new GyoshuList(this.Parent, this);
             GyoshuList.StartPosition = FormStartPosition.Manual;
             GyoshuList.intFrmKind    = CommonTeisu.FRM_GYOSHU;
             GyoshuList.ShowDialog();
         }
     }
     else if (e.KeyCode == Keys.Enter)
     {
         //TABボタンと同じ効果
         SendKeys.Send("{TAB}");
     }
 }
Esempio n. 2
0
        ///<summary>
        ///shoGyoshuLists
        ///コード入力項目でのキー入力判定
        ///</summary>
        private void shoGyoshuList()
        {
            //業種リストのインスタンス生成
            GyoshuList gyoshulist = new GyoshuList(this);

            try
            {
                //業種リストの表示、画面IDを渡す
                gyoshulist.StartPosition = FormStartPosition.Manual;
                gyoshulist.intFrmKind    = CommonTeisu.FRM_GYOSHU;
                gyoshulist.ShowDialog();
            }
            catch (Exception ex)
            {
                //データロギング
                new CommonException(ex);
                //例外発生メッセージ(OK)
                BaseMessageBox basemessagebox = new BaseMessageBox(this, CommonTeisu.TEXT_ERROR, CommonTeisu.LABEL_ERROR_MESSAGE, CommonTeisu.BTN_OK, CommonTeisu.DIAG_ERROR);
                basemessagebox.ShowDialog();
                return;
            }
        }