Exemplo n.º 1
0
 private void createNewVendorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CNV == null)
     {
         CNV             = new CreateNewVendor();
         CNV.MdiParent   = this;
         CNV.FormClosed += new FormClosedEventHandler(CNV_FormClosed);
         CNV.Show();
         //this.Close();
     }
     else
     {
         CNV.Activate();
     }
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (cnv == null)
     {
         cnv             = new CreateNewVendor();
         cnv.MdiParent   = this.MdiParent;
         cnv.FormClosed += new FormClosedEventHandler(cnv_FormClosed);
         cnv.Show();
         //this.Close();
     }
     else
     {
         cnv.Activate();
         cnv.FormClosed += new FormClosedEventHandler(cnv_FormClosed);
         cnv.Show();
     }
     this.Close();
 }
Exemplo n.º 3
0
 void CNV_FormClosed(object sender, FormClosedEventArgs e)
 {
     CNV = null;
 }
Exemplo n.º 4
0
 void cnv_FormClosed(object sender, FormClosedEventArgs e)
 {
     cnv = null;
 }