public static bool duplicatecheck_first_middle_last_name(string firstname, string middlename, string lastname) { //Data.dc = "NO"; if (firstname == "MANOHAR" && middlename == "SAMBHAJI" && lastname == "KHILLARE") { DuplicateData dd = new DuplicateData(); //dd.MdiParent = (Home.ActiveForm); dd.ShowDialog(); return true; } else { // Data.dc = "YES"; return false; } }
private void btnnext_Click(object sender, EventArgs e) { duplicatecheck_first_middle_last_name(txtfirstname.Text, txtmiddlename.Text, txtlastname.Text); Employee_Personal_Details ep = new Employee_Personal_Detail(); ep.displayemployeepersonaldetails(); this.Hide(); ep.ShowDialog(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)