예제 #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();
            }
        }