Exemple #1
0
        private void eXITAPPLICATIONToolStripMenuItem_Click(object sender, EventArgs e)
        {
            admincontrols ac = new admincontrols();

            ac.Hide();
            Form1 al = new Form1();

            al.Show();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            MANAGER M = new MANAGER();

            if (textBox1.Text == M.username && textBox2.Text == M.password)
            {
                admincontrols ac = new admincontrols();
                ac.Show();
            }
            else
            {
                MessageBox.Show("ACCESS DENIED");
            }
        }