Ejemplo n.º 1
0
        private void MnuFloor_Click(object sender, EventArgs e)
        {
            var frm = new FrmFloor
            {
                MdiParent     = this,
                StartPosition = FormStartPosition.CenterScreen,
                WindowState   = FormWindowState.Normal
            };

            frm.Show();
        }
Ejemplo n.º 2
0
        private void floorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form fc           = Application.OpenForms["FrmUserManagement"];
            Form fcParentMenu = Application.OpenForms["FrmMainScreen"];

            if (fc != null)
            {
                fc.Focus();
            }
            else
            {
                FrmFloor f1 = new FrmFloor();
                f1.MdiParent = fcParentMenu;
                f1.Show();
            }
        }
Ejemplo n.º 3
0
        void mnuFloor_Click(object sender, EventArgs e)
        {
            Form fc           = Application.OpenForms["FrmFloor"];
            Form fcParentMenu = Application.OpenForms["FrmMainScreen"];

            if (fc != null)
            {
                fc.Focus();
            }
            else
            {
                FrmFloor f1 = new FrmFloor();
                f1.MdiParent = fcParentMenu;
                f1.Show();
            }
        }
Ejemplo n.º 4
0
        void TE_OnLButtonDown(int Flags, int X, int Y, ref object pbHandled)
        {
            string strModel = ConfigurationManager.AppSettings["FloorPath"];
            ITerraExplorerObject61 objModel = Program.pCreator6.GetObject(Program.IInfoTree.GetTerraObjectID(Program.IInfoTree.FindItem(strModel)));

            ////model.ModelType = ModelTypeCode.MT_ANIMATION;
            m_ModelFloor = objModel as ITerrainModel61;
            //Type[] types= model.GetType().GetInterfaces();
            m_ModelFloor.Visibility.Show = true;


            if (m_FrmFloor == null || m_FrmFloor.IsDisposed)
            {
                m_FrmFloor             = new FrmFloor();
                m_FrmFloor.FormClosed += new FormClosedEventHandler(m_FrmFloor_FormClosed);
            }

            if (m_FrmFloor.Visible == false)
            {
                m_FrmFloor.Show(this.m_Hook.UIHook.MainForm);
            }
        }