示例#1
0
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DialogResult loginRezultat;

            using (var loginForma = new LoginForma())
                loginRezultat = loginForma.ShowDialog();
            if (loginRezultat == DialogResult.OK)
            {
                // login was successful
                Application.Run(new Isprobavanje());
            }
        }
示例#2
0
        private void odjaviSeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Program.Main();
            this.Hide();
            DialogResult loginRezultat;

            using (var loginForma = new LoginForma())

                loginRezultat = loginForma.ShowDialog();

            if (loginRezultat == DialogResult.OK)
            {
                // login was successful
                Isprobavanje iss = new Isprobavanje();
                iss.Show();
            }
        }