public bool Find(String Name) { if (Name == "") { return(false); } DataRow r = oMySql.GetDataRow("Select * From Orders Where CompanyID='" + this.CompanyID + "' And CustomerID='" + this.CustomerID + "' And Teacher=\"" + Name + "\"", "Teacher"); if (r == null) { /*if ((MessageBox.Show("Is this a new teacher?", "Teacher", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)) * { * ID = ""; * _Name = ""; * return false; * }*/ ID = Name; _Name = Name; return(false); } ID = Name; _Name = Name; return(true); }