Example #1
0
 public ChooseForm(List<FeatureResult> List ,MainForm father)
 {
     InitializeComponent();
     this.Father = father;
     this.ResultList = List;
     Init();
 }
Example #2
0
 public HistoryForm(int fid, IFeatureClass roadFC, IFeatureClass roadHistoryFC, IFeatureClass roadNodeFC, MainForm parent)
 {
     InitializeComponent();
     m_fid = fid;
     m_RoadFC = roadFC;
     m_RoadHistoryFC = roadHistoryFC;
     m_RoadNodeFC = roadNodeFC;
     m_Parent = parent;
 }
Example #3
0
        static void Main()
        {
            /*
            MessageBox.Show("当前CAD文件中不包含路线信息,请检查。", "注意");
            IAoInitialize ao = null;
            try
            {
                if (!RuntimeManager.Bind(ProductCode.Engine))
                {
                    if (!RuntimeManager.Bind(ProductCode.Desktop))
                    {
                        MessageBox.Show("unable to bind to arcgis runtime.application will be shut down");
                        return;
                    }
                }
                ao = new AoInitializeClass();

                ao.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngine);

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "注意");
            }
            var form2 = LoowooTech.Traffic.TForms.TestSuite.TestCase2();
            Application.Run(form2);
            if(ao != null) ao.Shutdown();
            return;*/

            if (!RuntimeManager.Bind(ProductCode.Engine))
            {
                if (!RuntimeManager.Bind(ProductCode.Desktop))
                {
                    MessageBox.Show("unable to bind to arcgis runtime.application will be shut down");
                    return;
                }
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var splash = new SplashForm();
            splash.Show();

            var form = new MainForm();
            splash.Form = form;
            form.Splash = splash;
            Application.Run(form);
        }