//////////////////////////////////////////////////////////////////////////// // イベント名 : exChangeButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/08/11 HuyTX 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void exChangeButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (!IsValidData()) return; IExChangeBtnClickALInput alInput = new ExChangeBtnClickALInput(); //count up shisho array CountUpShishoArray(alInput); if (!string.IsNullOrEmpty(_errMsgExistCheck.ToString())) { MessageForm.Show2(MessageForm.DispModeType.Error, _errMsgExistCheck.ToString()); return; } alInput.IsUpdate = true; alInput.HoshoTorokuInfoDataGridView = oldHoshoTorokuInfoDataGridView; alInput.ShishoArr = _shishoCdArr; IExChangeBtnClickALOutput alOutput = new ExChangeBtnClickApplicationLogic().Execute(alInput); KinoMenuForm frm = new KinoMenuForm(); Program.mForm.ShowForm(frm); } catch (Exception ex) { TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString()); MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message); } finally { Cursor.Current = preCursor; TraceLog.EndWrite(MethodInfo.GetCurrentMethod()); } }
//////////////////////////////////////////////////////////////////////////// // イベント名 : closeButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/08/11 HuyTX 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void closeButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; if (oldHoshoTorokuInfoDataGridView.RowCount > 1 && MessageForm.Show2(MessageForm.DispModeType.Question, "編集内容が破棄されます。よろしいですか?") != DialogResult.Yes) return; KinoMenuForm frm = new KinoMenuForm(); Program.mForm.ShowForm(frm); } catch (Exception ex) { TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString()); MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message); } finally { Cursor.Current = preCursor; TraceLog.EndWrite(MethodInfo.GetCurrentMethod()); } }
private void button4_Click(object sender, EventArgs e) { KinoMenuForm frm = new KinoMenuForm(); this.ShowForm(frm); }