| | |
| | | mainUrl = Application.StartupPath; |
| | | bool isTest = "1" == ConfigurationManager.AppSettings["isTest"]; |
| | | |
| | | this.fly = isTest ? ConfigurationManager.AppSettings["testFly"] : Path.Combine(Application.StartupPath, "Resources\\sample.fly"); |
| | | //this.fly = isTest ? ConfigurationManager.AppSettings["testFly"] : Path.Combine(Application.StartupPath, "Resources\\sample.fly"); |
| | | this.fly = ConfigurationManager.AppSettings["fly"] ?? ConfigurationManager.AppSettings["testFly"]; |
| | | if (!this.fly.Contains(":\\")) this.fly = Path.Combine(Application.StartupPath, this.fly); |
| | | if (!File.Exists(this.fly)) |
| | | { |
| | | LogOut.Error("Fly文件不存在:" + this.fly); |
| | |
| | | break; |
| | | case 0xc7: // 模型数据(*.obj) |
| | | SG.Command.Execute(1012, 13); break; |
| | | case 0xc8: // 基础编辑(选择对象,开启编辑) |
| | | case 0xc8: // 编辑数据(选择对象,开启编辑) |
| | | SG.Command.Execute(1021, null); break; |
| | | case 0xc9: // 点量算(坐标+高程) |
| | | SG.Command.Execute(1023, null); break; |
| | |
| | | { |
| | | Process p = new Process(); |
| | | p.StartInfo.FileName = path; |
| | | p.StartInfo.Arguments = args; |
| | | if (!string.IsNullOrEmpty(args)) p.StartInfo.Arguments = args; |
| | | p.StartInfo.CreateNoWindow = noWindow; |
| | | p.StartInfo.UseShellExecute = false; |
| | | p.Start(); |
| | |
| | | |
| | | private void SpaceStatistics() |
| | | { |
| | | // |
| | | this.ShowHtml("空间统计", mainUrl + @"\Resources\SpaceStatistics\SpaceStatistics.html", 20, 20, 420, 285); |
| | | } |
| | | |
| | | private void SpatialAnalysis() |
| | |
| | | |
| | | private void InvokeOsgbLab() |
| | | { |
| | | // |
| | | ExecCmd(new List<string> { "taskkill /f /t /im OSGBLab.exe" }); |
| | | RunExe(ConfigurationManager.AppSettings["osgblabPath"], null, false); |
| | | } |
| | | #endregion |
| | | } |