Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Admin Form = new Admin();

            this.Hide();
            Form.ShowDialog();
            this.Show();
        }