| | |
| | | using Yw.WinFrmUI.Q3D; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Serialization; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using static Yw.WinFrmUI.Q3D.MapViewEnum; |
| | | using Yw.WinFrmUI.Q3D; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using Yw.WinFrmUI.Q3d; |
| | | using static Yw.WinFrmUI.Q3d.MapViewEnum; |
| | | |
| | | namespace Yw.WinFrmUI.Q3D |
| | | namespace Yw.WinFrmUI.Q3d |
| | | { |
| | | [Serializable] |
| | | public class TemplateList |
| | |
| | | if (File.Exists(_tempListPath)) |
| | | { |
| | | string jsonString = File.ReadAllText(_tempListPath); |
| | | |
| | | if (jsonString!=null && jsonString!="") |
| | | |
| | | if (jsonString != null && jsonString != "") |
| | | { |
| | | try |
| | | { |
| | |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | if (instance==null) |
| | | if (instance == null) |
| | | { |
| | | instance = new TemplateList(); |
| | | // 添加测试数据 |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |