private void frmperson_Load(object sender, EventArgs e) { txtshobe.Text = db1.getValueRecord("SELECT sBranchName FROM tbl_branch"); db1.GetSourceText("SELECT codemeli FROM tbl_person", txtcode, "codemeli"); db1.GetSourceText("SELECT fname FROM tbl_person", txtname, "fname"); db1.GetSourceText("SELECT lname FROM tbl_person", txtfamily, "lname"); txtcode.Select(); }
private void frmperson_Load(object sender, EventArgs e) { //string myID; if (Applicant.txtcode != "" && Applicant.txtcode != null) { if (Zamens.Zamen1 == true) { btnprint.Text = "تعین ضامن شماره 2"; } if (sZamenNumber != "" && sZamenNumber != null && sZamenNumber == "1" && Zamen.txtcode != null && Zamen.txtcode != "") { btnprint.Text = "عدم تعین ضامن"; autocomplete(Zamen.txtcode); return; } else if (sZamenNumber != "" && sZamenNumber != null && sZamenNumber == "2" && Zamen2.txtcode != null && Zamen2.txtcode != "") { btnprint.Text = "عدم تعین ضامن"; autocomplete(Zamen2.txtcode); return; } //frmlistzamen fm1 = new frmlistzamen(); //fm1.sID = Applicant.txtcode; //fm1.ShowDialog(); //myID = fm1.sID; //if (myID != "" && myID != null) //{ // txtcode.Text = myID; // autocomplete(myID); //} } db1.GetSourceText("SELECT codemeli FROM tbl_zamen", txtcode, "codemeli"); db1.GetSourceText("SELECT fname FROM tbl_zamen", txtname, "fname"); db1.GetSourceText("SELECT lname FROM tbl_zamen", txtfamily, "lname"); txtcode.Select(); }