Пример #1
0
        private void stockSetupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Warehouse
            frmWarehouse frmWarehouse = Application.OpenForms["frmWarehouse"] as frmWarehouse;

            if (frmWarehouse != null)
            {
                frmWarehouse.WindowState = FormWindowState.Normal;
                frmWarehouse.BringToFront();
                frmWarehouse.Activate();
            }
            else
            {
                frmWarehouse           = new frmWarehouse();
                frmWarehouse.MdiParent = this;
                frmWarehouse.Dock      = DockStyle.Fill;
                frmWarehouse.Show();
            }
        }
Пример #2
0
        private void btnDefaultWarehouse_Click(object sender, EventArgs e)
        {
            //Warehouse
            frmWarehouse frmWarehouse = Application.OpenForms["frmWarehouse"] as frmWarehouse;

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