qin
2024-06-04 9490957edfc694a0378ee52af47e921b8ac44e7a
Hydraulic/Hydro.ConfigModel/HostExt.cs
@@ -1,11 +1,19 @@
using System;
using Hydro.CommonBase;
using MetroFramework;
using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
namespace Hydro.ConfigModel
{
    public class HostExt
    {
        /// <summary>
        /// 标识
        /// </summary>
        public string Tag { get; set; } = null;
        /// <summary>
        /// 共享剪切板
        /// </summary>
@@ -24,8 +32,27 @@
        /// 对象类型
        /// </summary>
        public string ObjectType { get; set; }
        /// <summary>
        /// 当前显示时刻,默认值为0
        /// </summary>
        public int Period { get; set; } = 0;
        [JsonIgnore]
        public double[] Result_Arr { get; set; }
        [JsonIgnore]
        public dict<double, string> ResultFormat { get; set; } = null;
        /// <summary>
        /// 显示模式,0:默认,1:显示曲线
        /// </summary>
        [JsonIgnore]
        public int ResultShowType { get; set; } = 0;
        [JsonIgnore]
        public dict<double, Color> ResultColorFormat { get; set; } = null;
        [JsonIgnore]
        public string bestObj { get; set; } = null;
        public int 小数位数 { get; set; } = 3;
@@ -52,6 +79,10 @@
        public bool Enable { get; set; } = true;
        public bool Visible { get; set; } = true;
        public bool Prefer { get; set; } = false;
        //public MetroColorStyle_Inner TitleColor { get; set; }
        public MetroColorStyle_Inner ContentColor { get; set; }
        public bool isUseCustomColor { get; set; } = false;
    }