Beispiel #1
0
        private void itemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Item information
            frmItemInformation frmItemInformation = Application.OpenForms["frmItemInformation"] as frmItemInformation;

            if (frmItemInformation != null)
            {
                frmItemInformation.WindowState = FormWindowState.Normal;
                frmItemInformation.BringToFront();
                frmItemInformation.Activate();
            }
            else
            {
                frmItemInformation           = new frmItemInformation("0", "0");
                frmItemInformation.MdiParent = this;
                frmItemInformation.Dock      = DockStyle.Fill;
                frmItemInformation.Show();
            }
        }
Beispiel #2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string             ITEM_ID            = dataGridView1.Rows[e.RowIndex].Cells["Column11"].Value.ToString();
            string             WarehouseID        = dataGridView1.Rows[e.RowIndex].Cells["Column10"].Value.ToString();
            frmItemInformation frmItemInformation = Application.OpenForms["frmItemInformation"] as frmItemInformation;

            if (frmItemInformation != null)
            {
                frmItemInformation.WindowState = FormWindowState.Normal;
                frmItemInformation.BringToFront();
                frmItemInformation.Activate();
            }
            else
            {
                frmItemInformation           = new frmItemInformation(ITEM_ID, WarehouseID);
                frmItemInformation.MdiParent = this.ParentForm;
                frmItemInformation.Dock      = DockStyle.Fill;
                frmItemInformation.Show();
            }
        }