void AddClick(object sender, EventArgs e) { GF.selected_id = 0; using (program_type_manage managePage = new program_type_manage()) { managePage.Owner = this; managePage.manage_btn.Text = "ADD"; managePage.Text = "ADD SPA PROGRAM TYPE"; managePage.ShowDialog(); } }
void EditClick(object sender, EventArgs e) { GF.selected_id = Convert.ToInt32(btn_dgv.DGV.SelectedRows[0].Cells["spa_program_type_id"].Value); using (program_type_manage managePage = new program_type_manage()) { managePage.Owner = this; managePage.manage_btn.Text = "UPDATE"; managePage.Text = "EDIT SPA PROGRAM TYPE"; managePage.ShowDialog(); } }