示例#1
0
 private void btnWholeseler_Click(object sender, EventArgs e)
 {
     if (wh == null)
     {
         wh             = new Wholesaler();
         wh.MdiParent   = this;
         wh.FormClosed += new FormClosedEventHandler(wh_FormClosed);
         wh.Show();
     }
     else
     {
         wh.Activate();
     }
 }
示例#2
0
 void wh_FormClosed(object sender, FormClosedEventArgs e)
 {
     wh = null;
 }