cloudflight
2024-05-15 0a6c1d69626e7a9af49c76a73ef5ff8051ebf419
Hydraulic/Hydro.MapView/Template/Template.cs
@@ -19,12 +19,12 @@
    public class Template
    {
        private string _ID;
        [Category("1、基本信息")]
        [Category("基本信息")]
        [Description("对象的ID唯一标识")]
        [DisplayName("模板ID")]
        [Browsable(true)]
        public string ID { get { if (_ID == null || _ID == "") _ID = Guid.NewGuid().ToString(); return _ID; } set { _ID = value; } }
        [Category("1、基本信息")]
        [Category("基本信息")]
        [DisplayName("名称")]
        public string Name { get; set; }
@@ -32,7 +32,7 @@
        private string _filePath = null;
        [Category("2、计算参数")]
        [Category("计算参数")]
        [DisplayName("路径INP")]
        public string filePath
        {
@@ -117,10 +117,10 @@
        [Category("2、计算参数")]
        [Category("计算参数")]
        [DisplayName("最高级数")]
        public int MaxLevel { get; set; } = 99;
        [Category("1、基本信息")]
        [Category("基本信息")]
        [Description("类型")]
        [DisplayName("类型")]
        [Browsable(true)]
@@ -145,7 +145,7 @@
        }
        [Category("4、其他参数")]
        [Category("其他参数")]
        [Description("对象的ID唯一标识")]
        [Browsable(false)]
        [NonSerialized]
@@ -153,12 +153,12 @@
        [Category("5、楼层")]
        [Category("楼层")]
        [DisplayName("楼层")]
        public List<TRegion> Regions { get; set; } = null;// new List<TRegion>();
        [Category("1、基本信息")]
        [Category("基本信息")]
        [DisplayName("标高")]
        [Browsable(false)]
        public float Elev { get { return 0; } }
@@ -172,12 +172,12 @@
        [Category("4、其他参数")]
        [Category("其他参数")]
        [DisplayName("开始节点")]
        public string Node1 { get; set; }
        [Category("4、其他参数")]
        [Category("其他参数")]
        [DisplayName("结束节点")]
        public string Node2 { get; set; }
@@ -189,13 +189,13 @@
        [Browsable(false)]
        public string Visible { get; set; }
        [Category("4、默认视角")]
        [Category("默认视角")]
        [DisplayName("视角")]
        [Browsable(false)]
        public MapDimensions view { get; set; } = null;
        [Category("4、默认视角")]
        [Category("默认视角")]
        [DisplayName("中心X")]
        [Browsable(true)]
        public float CenterX
@@ -211,7 +211,7 @@
                view.Center = new PointF(value, view.Center.Y);
            }
        }
        [Category("4、默认视角")]
        [Category("默认视角")]
        [DisplayName("中心Y")]
        [Browsable(true)]
        public float CenterY
@@ -228,7 +228,7 @@
            }
        }
        [Category("4、默认视角")]
        [Category("默认视角")]
        [DisplayName("缩放")]
        [Browsable(true)]
        public float zoom
@@ -246,7 +246,7 @@
            }
        }
        [Category("4、默认视角")]
        [Category("默认视角")]
        [DisplayName("旋转角度")]
        [Browsable(true)]
        public double rotation
@@ -259,7 +259,7 @@
            }
        }
        [Category("4、默认视角")]
        [Category("默认视角")]
        [DisplayName("俯视角度")]
        [Browsable(true)]
        public double rotationF