/* * private void ManHinhDangKy_Load(object sender, EventArgs e) * { * // TODO: This line of code loads data into the 'qLNSDataSet.USERINFO' table. You can move, or remove it, as needed. * this.uSERINFOTableAdapter.Fill(this.qLNSDataSet.USERINFO); * }*/ private void Reset_Click(object sender, EventArgs e) { BoxID.Clear(); BoxPW.Clear(); BoxPW2.Clear(); BoxName.Clear(); BoxAddress.Clear(); BoxPhone.Clear(); BoxCMND.Clear(); BoxMail.Clear(); }
private void ButtonSubmit_Click(object sender, EventArgs e) { if (DatabaseTools.IsInDatabase("Employee", "Employee Code", BoxID.Text)) { LabelError.Hide(); userID = BoxID.Text; Main main = new Main(userID); main.Show(); this.Hide(); BoxID.Clear(); } else { LabelError.Show(); } }
public string GetCommonCharacters(BoxID other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } var common = new List <char>(); for (var index = 0; index < id.Length && index < other.id.Length; index++) { if (id[index].Equals(other.id[index])) { common.Add(id[index]); } } return(new string(common.ToArray())); }
public bool DiffersByOnlyOneCharAtSamePosition(BoxID other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } var differences = 0; for (var index = 0; index < id.Length && index < other.id.Length; index++) { if (!id[index].Equals(other.id[index])) { differences++; } } return(differences == 1); }
// Use this for initialization void Start() { displayManager = GameObject.FindGameObjectWithTag("DisplayManager").GetComponent <DisplayManager>(); originColor = BackSprite.color; BoxID.boxId = this; }