Example #1
0
 private void submenu_pelanggan_Click(object sender, EventArgs e)
 {
     if (plgn == null)
     {
         plgn           = new FormPelanggan();
         plgn.MdiParent = this;
         //panggil void form close
         plgn.FormClosed += new FormClosedEventHandler(plgn_FormClosed);
         plgn.Show();
     }
     else
     {
         plgn.Activate();
     }
 }
Example #2
0
 void plgn_FormClosed(object sender, EventArgs e)
 {
     plgn = null;
 }