예제 #1
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Seniorman_page sp = new Seniorman_page();

            sp.Show();
        }
예제 #2
0
        private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
        {
            this.Hide();
            Seniorman_page spf = new Seniorman_page();

            spf.Show();
        }
예제 #3
0
        private void label3_Click(object sender, EventArgs e)
        {
            SqlDataAdapter sda = new SqlDataAdapter("select Count(*)  From SeniorManagement where UserName = '******' and _Password = '******'", con);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            if (dt.Rows[0][0].ToString() == "1")
            {
                MessageBox.Show("You have  Successfully Login!, Welcome ", "Message", MessageBoxButtons.OK, MessageBoxIcon.None);
                this.Close();
                Seniorman_page spf = new Seniorman_page();
                spf.Show();
            }
            else
            {
                MessageBox.Show("Please Check Your Username and Password", "Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }