private void button2_Click(object sender, EventArgs e) { JokasoDaichoSearchForm frm = new JokasoDaichoSearchForm(); frm.ShowDialog(); }
//////////////////////////////////////////////////////////////////////////// // イベント名 : jokasoSrhButton_Click /// <summary> /// /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <history> /// 日付 担当者 内容 /// 2014/08/18 HuyTX 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private void jokasoSrhButton_Click(object sender, EventArgs e) { TraceLog.StartWrite(MethodInfo.GetCurrentMethod()); Cursor preCursor = Cursor.Current; try { Cursor.Current = Cursors.WaitCursor; JokasoDaichoSearchForm frm = new JokasoDaichoSearchForm(); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { DataGridViewRow returnRow = frm._selectedRow; settisyaCdTextBox.Text = returnRow.Cells["HokenjoCdCol"].Value.ToString() + "-" + Common.Common.ConvertToHoshouNendoWareki(returnRow.Cells["TorokuNendoCol"].Value.ToString()) + "-" + returnRow.Cells["RenbanCol"].Value.ToString(); settisyaTextBox.Text = returnRow.Cells["SetchishaNmCol"].Value.ToString(); shisetsuNmTextBox.Text = returnRow.Cells["ShisetsuNmCol"].Value.ToString(); } } 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()); } }