예제 #1
0
파일: Editor.cs 프로젝트: zerzic/IcedTech
        public static void InitRadiant(IntPtr ParentWindow)
        {
            Application.EnableVisualStyles();

            progressDialog = new ProgressDialog();
            camWndDialog   = new CamWndDialog();
            xyWndDialog    = new XYWndDialog();
            mainFrm        = new MainFrm();

            inspecterDialog = new InspecterDialog();

            nativeWindow = new NativeWindow();
            nativeWindow.AssignHandle(ParentWindow);

            {
                //camWndDialog.Parent = mainFrm;
                inspecterDialog.TopLevel        = false;
                inspecterDialog.Padding         = new Padding(0, 0, 0, 0);
                inspecterDialog.DisplayHeader   = false;
                inspecterDialog.BorderStyle     = MetroFramework.Drawing.MetroBorderStyle.None;
                inspecterDialog.FormBorderStyle = FormBorderStyle.None;
                inspecterDialog.ShadowType      = MetroFramework.Forms.MetroForm.MetroFormShadowType.None;
                inspecterDialog.ControlBox      = false;
                inspecterDialog.Dock            = DockStyle.Fill;
                inspecterDialog.Show();
                mainFrm.GetLeftSplitContainer().Panel2.Controls.Add(inspecterDialog);
            }

            {
                //camWndDialog.Parent = mainFrm;
                camWndDialog.TopLevel        = false;
                camWndDialog.Padding         = new Padding(0, 0, 0, 0);
                camWndDialog.DisplayHeader   = false;
                camWndDialog.BorderStyle     = MetroFramework.Drawing.MetroBorderStyle.None;
                camWndDialog.FormBorderStyle = FormBorderStyle.None;
                camWndDialog.ShadowType      = MetroFramework.Forms.MetroForm.MetroFormShadowType.None;
                camWndDialog.ControlBox      = false;
                camWndDialog.Dock            = DockStyle.Fill;
                camWndDialog.Show();
                mainFrm.GetLeftSplitContainer().Panel1.Controls.Add(camWndDialog);
            }

            {
                //  xyWndDialog.Parent = mainFrm;
                xyWndDialog.TopLevel        = false;
                xyWndDialog.Padding         = new Padding(0, 0, 0, 0);
                xyWndDialog.DisplayHeader   = false;
                xyWndDialog.BorderStyle     = MetroFramework.Drawing.MetroBorderStyle.None;
                xyWndDialog.FormBorderStyle = FormBorderStyle.None;
                xyWndDialog.ShadowType      = MetroFramework.Forms.MetroForm.MetroFormShadowType.None;
                xyWndDialog.ControlBox      = false;
                xyWndDialog.Dock            = DockStyle.Fill;
                xyWndDialog.Show();
                mainFrm.GetMainSplitContainer().Panel2.Controls.Add(xyWndDialog);
            }

            mainFrm.Show(nativeWindow);

            //   inspectorDialog.Show(nativeWindow);
        }
예제 #2
0
        public static void InitRadiant(IntPtr ParentWindow)
        {
            Application.EnableVisualStyles();

            entiySelectionDialog = new EntitySelection();
            progressDialog       = new ProgressDialog();
            camWndDialog         = new CamWndDialog();
            xyWndDialog          = new XYWndDialog();
            entityCreateDialog   = new EntityCreateDialog();

            //  inspectorDialog = new InspectorDialog();

            nativeWindow = new NativeWindow();
            nativeWindow.AssignHandle(ParentWindow);

            camWndDialog.Show(nativeWindow);
            xyWndDialog.Show(nativeWindow);

            //   inspectorDialog.Show(nativeWindow);
        }