From c992dc6a83785323488310613e35611307a534df Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 04 一月 2024 13:34:31 +0800 Subject: [PATCH] 添加空间查询接口 --- TEWin/FrmTree.cs | 46 ---------------------------------------------- 1 files changed, 0 insertions(+), 46 deletions(-) diff --git a/TEWin/FrmTree.cs b/TEWin/FrmTree.cs index 0fe82fd..2c8c73f 100644 --- a/TEWin/FrmTree.cs +++ b/TEWin/FrmTree.cs @@ -14,55 +14,9 @@ { public partial class FrmTree : Form { - public SGWorld74 SG = null; - - public static string StartupPath - { - get - { - return System.Windows.Forms.Application.StartupPath; - } - } - - public FrmTree() { InitializeComponent(); - this.Load += FrmWeb_Load; - this.FormClosed += FrmWin_FormClosed; - } - - void FrmWeb_Load(object sender, EventArgs e) - { - try - { - LogOut.Info("寮�濮嬭繍琛�.."); - - string fly = Path.Combine(StartupPath, "Resources\\sample.fly"); - if (!File.Exists(fly)) - { - LogOut.Error("Fly鏂囦欢涓嶅瓨鍦細" + fly); - return; - } - - SG = new SGWorld74(); - SG.OnLoadFinished += SG_OnLoadFinished; - SG.Open(fly); - } - catch (Exception ex) - { - LogOut.Error(ex.Message + "\r\n" + ex.StackTrace); - } - } - - void SG_OnLoadFinished(bool bSuccess) - { - // - } - - void FrmWin_FormClosed(object sender, FormClosedEventArgs e) - { - LogOut.Info("鍏抽棴绋嬪簭."); } } } -- Gitblit v1.9.3