コード例 #1
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();
        }