Exemple #1
0
        // --- ボタンイベント ---

        /// <summary>
        /// 「新規追加」ボタン
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnNew_Click(object sender, EventArgs e)
        {
            EditStaffMasterDetail frmEditStaffMasterDetail = new EditStaffMasterDetail("", true);

            this.Hide();
            frmEditStaffMasterDetail.ShowDialog();
            this.Show();

            // データ再取得
            InitialProcess();

            // マスタ情報を表示
            SetStaffList();
        }
Exemple #2
0
        /// <summary>
        /// 「編集」ボタン
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, EventArgs e)
        {
            EditStaffMasterDetail frmEditStaffMasterDetail = new EditStaffMasterDetail(
                grdStaff[0, grdStaff.CurrentCell.RowIndex].Value.ToString(), false);

            this.Hide();
            frmEditStaffMasterDetail.ShowDialog();
            this.Show();

            // データ再取得
            InitialProcess();

            // マスタ情報を表示
            SetStaffList();
        }