public void authorization_verifyClubClass(string employee_FingerID) { DataTable dt = new DataTable(); dt = fingerPrint_Device.auth_ClubClass_Finger(employee_FingerID); if (dt.Rows.Count != 0) { timer1.Stop(); string info_Text = "Are you sure to <b><color=red>void</color></b> this private instruction session ?"; Cst_Form_Short f1 = new Cst_Form_Short(info_Text); if (f1.ShowDialog() == DialogResult.Yes) { Cst_Note formnote = new Cst_Note(_productName, _instructorName + " - " + _room, "Void Private Instruction Session"); if (formnote.ShowDialog() == DialogResult.OK) { string text_note = formnote.Note; void_PrivateSession(text_note); this.DialogResult = DialogResult.OK; } else { this.DialogResult = DialogResult.Cancel; } } else { this.DialogResult = DialogResult.Cancel; } } else { MessageBox.Show("You are not authorize", "Verify Class", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void authorization_verifyClubClass(string employee_FingerID) { DataTable dt = new DataTable(); dt = fingerPrint_Device.auth_ClubClass_Finger(employee_FingerID); if (dt.Rows.Count != 0) { string info_Text = "Are you sure to <b><color=green>verify</color></b> this private instruction session?"; Cst_Form_Short f1 = new Cst_Form_Short(info_Text); if (f1.ShowDialog() == DialogResult.Yes) { this.DialogResult = DialogResult.OK; } else { this.DialogResult = DialogResult.Cancel; } } else { MessageBox.Show("You are not authorize", "Verify Class", MessageBoxButtons.OK, MessageBoxIcon.Error); } }