cloudflight
2024-06-08 970022ca59c5c22cf572c458c01e0328be85a253
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing.Design;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.ComponentModel.TypeConverter;
 
namespace Hydro.MapView
{
    [Serializable]
    public class MeterViewModel : NodeViewModel
    {
        public override string ToString()
        {
            if (string.IsNullOrEmpty(PatternID)) PatternID = "";
            return $"{ID}\t{Elev}\t{Demand}\t{PatternID}\t;\t";
        }
 
        /*
                public string GetTemplateID()
                {
                    return Convert.ToString(DlTemplateEditor.ImageComboBoxEdit.EditValue);
                }*/
 
        [Category("基本信息")]
        [DisplayName("当量模板")]
        [Editor(typeof(DlTemplateEditor), typeof(UITypeEditor))]
        [Browsable(true)]
        public string DlTemplateID { get; set; }
    }
}