Esempio n. 1
0
        public GISForm()
        {
            //GlobalSettings.LoadConfig();

            LoginForm login = new LoginForm();

            if (login.ShowDialog() != DialogResult.OK)
            {
                Application.Exit();
            }
            WelcomeFormJQ wf = new WelcomeFormJQ();

            wf.Show(this);

            //GlobalSettings.InitGlobal();

            gRWScene = new CRailwayScene();
            //GlobalVar.gScene = new ModelInformation.CRailwayScene();


            InitializeComponent();
            sgworld = new SGWorld66();
            this.axTE3DWindow1.Text = "新建济青高速铁路";

            //axTE3DWindow1.ProductName = "蒙内标轨铁路";
            axTE3DWindow1.Caption = "新建济青高速铁路";
            //sgworld.Project.set_Settings("RemoveSkylineCopyright", 1);
            //sgworld.Project.set_Settings("DisplaySun", 0);
            if (mTEScene == null)
            {
                mTEScene = new CTEScene(gRWScene);
            }
            mNavTrain = new CTENavTrain(gRWScene);
            //mNavTrain.OnFlyTo += mNavTrain_OnFlyTo;

            gMapControl1.MapProvider     = GMap.NET.MapProviders.OpenCycleMapProvider.Instance;
            gMapControl1.Zoom            = 6D;
            GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerOnly;
            gMapControl1.Position        = new GMap.NET.PointLatLng(36.6, 118.6);
            gMapControl1.Visible         = true;


            //GlobalSettings.gGForm = this;

            showProject();
            addDVG_Event();
            //bar1.Visible = false;
            //bar1.Hide();
            createMenuSG();
            menuSG.Visible = false;
            mainContainer.Panel2Collapsed = true;
            trackTime.Text = curTime.ToLongDateString();


            wf.Close();
        }
Esempio n. 2
0
        public MainForm()
        {
            GlobalVar.LoadConfig();

            WelcomeFormJQ wf = new WelcomeFormJQ();

            wf.Show();

            LoginForm login = new LoginForm();

            if (login.ShowDialog() != DialogResult.OK)
            {
                Application.Exit();
            }

            GlobalVar.gScene = new ModelInformation.CRailwayScene();
            InitializeComponent();
            sgworld = new SGWorld66();

            this.axTE3DWindow1.Text = "蒙内标轨铁路";

            //buildProjectTree();

            gMapControl1.MapProvider     = GMap.NET.MapProviders.OpenCycleMapProvider.Instance;
            gMapControl1.Zoom            = 6D;
            GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerOnly;
            gMapControl1.Position        = new GMap.NET.PointLatLng(-3.55 + 0.8, 38.5 - 0.3);
            gMapControl1.Visible         = true;
            //this.globeWindow1.StatusBarReleaseInfo = "蒙内标轨铁路";

            //GlobalVar.gGForm = this;

            showProject();
            addDVG_Event();
            bar2.Hide();
            menuSG.Visible = false;
            mainContainer.Panel2Collapsed = true;

            wf.Close();
        }
Esempio n. 3
0
        List <string> gMobileCommand = new List <string>();  //

        //ImageList imgListCmd = new ImageList(); // 命令导航的二维码图像

        //ImageList imgListPrj = new ImageList();

        public FullScreenForm()
        {
            LoginForm login = new LoginForm();

            if (login.ShowDialog() != DialogResult.OK)
            {
                Environment.Exit(-1);
            }
            WelcomeFormJQ wf = new WelcomeFormJQ();

            wf.Show(this);

            gRWScene = new CRailwayScene(CGisDataSettings.gLocalDB, CGisDataSettings.gCurrentProject.projectUrl);

            Random ran = new Random();

            mInstanceID = ran.Next(100, 999);
            InitializeComponent();
            this.Text = "新建济青高速铁路工程:" + mInstanceID;

            sgworld = new SGWorld66();


            // 初始化二维形象进度
            m2DProgressPanel = new PanelProgress2D(gRWScene);
            mainContainer.Panel2.Controls.Add(m2DProgressPanel);
            m2DProgressPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
            m2DProgressPanel.Location = new System.Drawing.Point(0, 0);
            m2DProgressPanel.Name     = "panel2D";

            //initPrj2DImgList();
            //panelPrjOutline.Hide();

            initScanCmd();
            wf.Close();

            formState.Maximize(this);
        }