Exemplo n.º 1
0
 ///<summary>
 ///judDaibunruiKeyDown
 ///コード入力項目でのキー入力判定
 ///</summary>
 private void judGroupCdKeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F9)
     {
         if (this.Parent is GroupBox || this.Parent is Panel)
         {
             GroupCdList groupcdlist = new GroupCdList(this.Parent.Parent, this);
             groupcdlist.ShowDialog();
         }
         else
         {
             GroupCdList groupcdlist = new GroupCdList(this.Parent, this);
             groupcdlist.ShowDialog();
         }
     }
     else if (e.KeyCode == Keys.Enter)
     {
         //TABボタンと同じ効果
         SendKeys.Send("{TAB}");
     }
 }
Exemplo n.º 2
0
        ///<summary>
        ///showGroupList
        ///コード入力項目でのキー入力判定
        ///</summary>
        private void showGroupList()
        {
            //担当者リストのインスタンス生成
            GroupCdList groupcdlist = new GroupCdList(this);

            try
            {
                //担当者区分リストの表示、画面IDを渡す
                groupcdlist.StartPosition = FormStartPosition.Manual;
                groupcdlist.intFrmKind    = CommonTeisu.FRM_GROUP;
                groupcdlist.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;
            }
        }