private void button1_Click_1(object sender, EventArgs e) { String acc = textBox1.Text; if (acc == "Stefan") { Admin ad = new Admin(); this.Hide(); ad.ShowDialog(); this.Show(); } else if (acc.Trim().Length == 0) { MessageBox.Show("Unesite username."); } else { Prezentacija x = new Prezentacija(textBox1.Text); this.Hide(); x.ShowDialog(); this.Show(); return; } }
private void button1_Click(object sender, EventArgs e) { Admin Form = new Admin(); this.Hide(); Form.ShowDialog(); this.Show(); }