private void button1_Click(object sender, EventArgs e) { MenuForAdmin m = new MenuForAdmin(); m.Show(); this.Close(); }
private void button3_Click(object sender, EventArgs e) { MenuForAdmin open = new MenuForAdmin(); open.Show(); this.Close(); }
private void button2_Click(object sender, EventArgs e) { if (checkBox1.Checked) { if (textBox1.Text.Length > 0 && textBox2.Text.Length > 0) { if (prog.CheckAdmin(textBox1.Text, Convert.ToInt32(textBox2.Text))) { MenuForAdmin m = new MenuForAdmin(); m.Show(); } else { MessageBox.Show("Wrong data!!!"); } } } else { MenuForUsers m = new MenuForUsers(); m.Show(); } }