Пример #1
0
 private void Form_ZiRO_Load(object sender, EventArgs e)
 {
     using (Login login = new Login())
     {
         if (login.ShowDialog() != DialogResult.OK)
         {
             Application.Exit();
             return;
         }
         else
         {
             Forma = new ZiR();
             lblImeUlogiranogKorinika.Text    = DataBase.TrenutniKorisnik;
             lblUlogaUlogiranogKorisnika.Text = DataBase.UlogaKorisnika;
             if (DataBase.UlogaKorisnika == "Administrator")
             {
                 dodajKorisnikaToolStripMenuItem.Visible = true;
                 OtvoriFormu(Forma);
             }
             else
             {
                 OtvoriFormu(Forma);
             }
         }
     }
 }
Пример #2
0
 private void OtvoriZiRToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Forma = new ZiR();
     OtvoriFormu(Forma);
 }