Exemple #1
0
 private void viewReceivingReportToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (rec_rep2 == null)
     {
         rec_rep2             = new ViewReceivingReport();
         rec_rep2.MdiParent   = this;
         rec_rep2.FormClosed += new FormClosedEventHandler(rec_rep2_FormClosed);
         rec_rep2.Show();
     }
     else
     {
         rec_rep2.Activate();
     }
 }
Exemple #2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            receivingReportId = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();

            if (vrr == null)
            {
                vrr             = new ViewReceivingReport();
                vrr.MdiParent   = this.MdiParent;
                vrr.FormClosed += new FormClosedEventHandler(vrr_FormClosed);
                vrr.Show();

                //this.Close();
            }
            else
            {
                vrr.Activate();
                vrr.FormClosed += new FormClosedEventHandler(vrr_FormClosed);
                vrr.Show();
            }
        }