示例#1
0
        /*
         * 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();
        }
示例#2
0
 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();
     }
 }
示例#3
0
            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()));
            }
示例#4
0
            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);
            }
示例#5
0
 // Use this for initialization
 void Start()
 {
     displayManager = GameObject.FindGameObjectWithTag("DisplayManager").GetComponent <DisplayManager>();
     originColor    = BackSprite.color;
     BoxID.boxId    = this;
 }