///<summary> ///showDaibunList ///大分類リストの表示 ///</summary> private void showDaibunList() { //大分類リストのインスタンス生成 DaibunruiList daibunruiList = new DaibunruiList(this); try { //大分類リストの表示、画面IDを渡す daibunruiList.StartPosition = FormStartPosition.Manual; daibunruiList.intFrmKind = CommonTeisu.FRM_DAIBUNRUI; daibunruiList.ShowDialog(); } catch (Exception ex) { //エラーロギング new CommonException(ex); return; } }
///<summary> ///judDaibunruiKeyDown ///コード入力項目でのキー入力判定(大分類) ///</summary> private void judDaibunruiKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F9) { //グループボックスかパネル内にいる場合 if (this.Parent is GroupBox || this.Parent is Panel) { DaibunruiList daibunruiList = new DaibunruiList(this.Parent.Parent, this); daibunruiList.ShowDialog(); } //親画面がBaseFormの場合 else if (this.Parent is BaseForm) { DaibunruiList daibunruiList = new DaibunruiList(this.Parent, this); daibunruiList.ShowDialog(); } //親画面がLIST画面の場合 else { //他と判別させるために空のオブジェクトを作成する object obj = new object(); DaibunruiList daibunruiList = new DaibunruiList(this.Parent, this, obj); daibunruiList.ShowDialog(); } } else if (e.KeyCode == Keys.Enter) { //TABボタンと同じ効果 SendKeys.Send("{TAB}"); } else if (e.KeyCode == Keys.Space) { e.Handled = true; } }