private void btn_Transfer_cancel_Click(object sender, EventArgs e) { DialogResult cancelPermission; cancelPermission = MessageBox.Show("Do you want to cancel the Patient Transfer", "Permission for Cancel", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (cancelPermission == DialogResult.Yes) { this.Hide(); Ward_Admin_Manage_In_Patient f_manageIn = new Ward_Admin_Manage_In_Patient(); f_manageIn.ShowDialog(); } }
private void btn_Back_Transfer_InPa_Click(object sender, EventArgs e) { DialogResult backPermission; backPermission = MessageBox.Show("Do you want to go to the Previous Form", "Back to Previous", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); if (backPermission == DialogResult.OK) { this.Hide(); Ward_Admin_Manage_In_Patient f_manageIn = new Ward_Admin_Manage_In_Patient(); f_manageIn.ShowDialog(); } }
private void btnManageInPatient_Click(object sender, EventArgs e) { try { this.Hide(); Ward_Admin_Manage_In_Patient f5 = new Ward_Admin_Manage_In_Patient(); f5.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }