Exemplo n.º 1
0
 private void submenu_penjualan_Click(object sender, EventArgs e)
 {
     if (trx == null)
     {
         trx           = new FormTransaksi();
         trx.MdiParent = this;
         //panggil void form close
         trx.FormClosed += new FormClosedEventHandler(trx_FormClosed);
         trx.Show();
     }
     else
     {
         trx.Activate();
     }
 }
Exemplo n.º 2
0
 void trx_FormClosed(Object sender, FormClosedEventArgs e)
 {
     trx = null;
 }