Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            FrmHome frm = new FrmHome(Initialize, a);

            frm.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Boolean chekc = Checekr();

            if (chekc == true)
            {
                FrmHome frm = new FrmHome(Initialize, textBox1.Text);
                frm.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Please check the Username and Password!");
            }
        }