Пример #1
0
 private void dataBarangToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (databarang == null)
     {
         databarang             = new dataBarang();
         databarang.MdiParent   = this.MdiParent;
         databarang.FormClosed += new FormClosedEventHandler(Databarang_FormClosed);
         databarang.Show();
     }
     else
     {
         databarang.Activate();
     }
 }
Пример #2
0
 private void Databarang_FormClosed(object sender, FormClosedEventArgs e)
 {
     databarang = null;
 }