public MapForm() { ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop); InitializeComponent(); m_menuMap = new ToolbarMenuClass(); //添加事件 AddEnvet(); mapControlTemp = this.axMapControl1; ArcGisUtils.axMapControl = this.axMapControl1; ArcGisUtils.axPageLayoutControl = PageLayoutForm.GetInstance().GetAxPageLayoutControl(); //检查数据库以前是否有 SoftwareConfig mxdConfig = SoftwareConfig.FindConfig(JTSYQMxdPathReids); if (mxdConfig != null) { if (this.axMapControl1.CheckMxFile(mxdConfig.Value)) { LoadMXD(mxdConfig.Value); ArcGisUtils.MXDPath = mxdConfig.Value; } else { SoftwareConfig.Delete(JTSYQMxdPathReids); } } }
public static ExportDataPageViewModel GetRedis() { SoftwareConfig config = SoftwareConfig.FindConfig(ExportDataPageRides); if (config != null) { ExportDataPageViewModel model = JObejctReflect.ToObejct <ExportDataPageViewModel>(config.Value); return(model); } else { return(new ExportDataPageViewModel()); } }
public static FileConfigPageViewModel GetRedis() { SoftwareConfig config = SoftwareConfig.FindConfig(FileConfigPageRides); if (config != null) { FileConfigPageViewModel model = JObejctReflect.ToObejct <FileConfigPageViewModel>(config.Value); if (!MyUtils.Utils.CheckFileExists(model.PhotoExcelPath)) { model.PhotoExcelPath = ""; } return(model); } else { return(new FileConfigPageViewModel()); } }