Пример #1
0
        private void btnSDetailsExit_Click(object sender, EventArgs e)
        {
            AferLogin afl = new AferLogin();

            afl.Show();
            this.Hide();
        }
        private void btnHRMback_Click(object sender, EventArgs e)
        {
            AferLogin af = new AferLogin();

            af.Show();
            this.Hide();
        }
Пример #3
0
        //private void panel1_Paint(object sender, PaintEventArgs e)
        //{
        //    this.BackColor = Color.Blue;
        //    this.TransparencyKey = Color.Blue;
        //}

        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (txtId.Text == "abc" && txtPassword.Text == "abc")
            {
                //Main mn = new Main();
                //mn.Show();
                AferLogin af = new AferLogin();
                af.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("please insert correct password and correct Id");
            }
        }