Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var dlusername1 = "admin";
            var dlpassword1 = "admin";

            if (dlusername1 == textBox1.Text && dlpassword1 == textBox2.Text)
            {
                DliscDatabase button1 = new DliscDatabase();
                //login.MdiParent = this;
                button1.Show();

                this.Hide();
            }
            else
            {
                MessageBox.Show("User Name or Password is Invalid");
            }
        }
Пример #2
0
        private void Gobutton_Click(object sender, EventArgs e)
        {
            var firstname1 = "leighton";
            var lastname1  = "grant";
            var trn1       = "123456789";


            if (firstname1 == textBox1.Text && lastname1 == textBox2.Text && trn1 == textBox3.Text)
            {
                DliscDatabase OK = new DliscDatabase();
                //login.MdiParent = this;
                OK.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Field Empty or User Info Invalid");
            }
        }