Пример #1
0
 private void vozilaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (auto == null)
     {
         auto             = new automobili(pravaA, korisnikIme);
         auto.MdiParent   = this;
         auto.FormClosed += auto_FormClosed;
         auto.Show();
         auto.WindowState = FormWindowState.Maximized;
     }
     else
     {
         auto.Close();
         auto             = new automobili(pravaA, korisnikIme);
         auto.MdiParent   = this;
         auto.FormClosed += auto_FormClosed;
         auto.Show();
         auto.WindowState = FormWindowState.Maximized;
     }
 }
Пример #2
0
 void auto_FormClosed(object sender, FormClosedEventArgs e)
 {
     auto = null;
     //throw new NotImplementedException();
 }