private void πΙΣΩToolStripMenuItem_Click(object sender, EventArgs e) { Administration administration = new Administration(); administration.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { string[] users = { "Admin", "Admin1", "Admin2" }; string[] password = { "0", "1", "2" }; { for (int i = 0; i < 3; i++) { if (users[i] == textBox1.Text && password[i] == textBox2.Text) { check = true; Administration administration = new Administration(); administration.Show(); this.Hide(); } } if (check == false) { MessageBox.Show("Λάθος Στοιχεία"); } } }