Example #1
0
        private void buildingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new FrmBuilding {
                MdiParent = this
            };

            form.Show();
        }
Example #2
0
        private void buildingDefineToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form fc           = Application.OpenForms["FrmUserManagement"];
            Form fcParentMenu = Application.OpenForms["FrmMainScreen"];

            if (fc != null)
            {
                fc.Focus();
            }
            else
            {
                FrmBuilding f1 = new FrmBuilding();
                f1.MdiParent = fcParentMenu;
                f1.Show();
            }
        }
Example #3
0
        void mnuBuilding_Click(object sender, EventArgs e)
        {
            Form fc           = Application.OpenForms["FrmBuilding"];
            Form fcParentMenu = Application.OpenForms["FrmMainScreen"];

            if (fc != null)
            {
                fc.Focus();
            }
            else
            {
                FrmBuilding f1 = new FrmBuilding();
                f1.MdiParent = fcParentMenu;
                f1.Show();
            }
        }