Esempio n. 1
0
 private void izradaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (narudbenice == null)
     {
         narudbenice             = new narudjbenice(korisnikIme, pravaA);
         narudbenice.MdiParent   = this;
         narudbenice.FormClosed += narudbenice_FormClosed;
         narudbenice.Show();
         narudbenice.WindowState = FormWindowState.Maximized;
     }
     else
     {
         narudbenice.Close();
         narudbenice             = new narudjbenice(korisnikIme, pravaA);
         narudbenice.MdiParent   = this;
         narudbenice.FormClosed += narudbenice_FormClosed;
         narudbenice.Show();
         narudbenice.WindowState = FormWindowState.Maximized;
     }
 }
Esempio n. 2
0
 void narudbenice_FormClosed(object sender, FormClosedEventArgs e)
 {
     narudbenice = null;
     //throw new NotImplementedException();
 }