コード例 #1
0
 private void viewPurchaseOrderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (VPO == null)
     {
         VPO             = new ViewPurchaseOrder();
         VPO.MdiParent   = this;
         VPO.FormClosed += new FormClosedEventHandler(VPO_FormClosed);
         VPO.Show();
         // this.Close();
     }
     else
     {
         VPO.Activate();
     }
 }
コード例 #2
0
 private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     purchaseOrder = this.dataGridView2.CurrentRow.Cells[0].Value.ToString();
     if (vpo == null)
     {
         vpo             = new ViewPurchaseOrder();
         vpo.MdiParent   = this.MdiParent;
         vpo.FormClosed += new FormClosedEventHandler(vpo_FormClosed);
         vpo.Show();
         //this.Close();
     }
     else
     {
         vpo.Activate();
         vpo.FormClosed += new FormClosedEventHandler(vpo_FormClosed);
         vpo.Show();
     }
 }
コード例 #3
0
 void VPO_FormClosed(object sender, FormClosedEventArgs e)
 {
     VPO = null;
 }
コード例 #4
0
 void vpo_FormClosed(object sender, FormClosedEventArgs e)
 {
     vpo = null;
 }