public void AddLineName(string deviceKey, string lineName, string displayName)
        {
            // TODO:
            if (lineName.IndexOf("Doserate") >= 0)
            {
                displayName = displayName.Replace("μSv/h", "nSv/h");
            }

            Config      cfg   = Config.Instance();
            ConfigEntry entry = cfg[deviceKey];

            ConfigItem item = entry.GetConfigItem(lineName);

            this.SearchChartView.SetCurveDisplayName("剂量率(nGy/h)");
            this.SearchChartView.SetValueRange(item.Min, item.Max);
            this.SearchChartView.HideTimeAxis();

            this.SearchChartView2.Interval = 30;
            this.SearchChartView2.SetCurveDisplayName("感雨");
            this.SearchChartView2.SetValueRange(0, 100);
            this.SearchChartView2.HideResetButton();
            this.SearchChartView2.DisableTrackingLine();
            this.SearchChartView2.DisableGridLine();
            this.SearchChartView2.DisplayNameTop = 180;
            // 方波颜色
            this.SearchChartView2.SetCurveColor(Color.FromRgb(0x00, 0x00, 0xCC));
        }
Beispiel #2
0
        internal void SelectChanged(string lineName)
        {
            Config      cfg   = Config.Instance();
            ConfigEntry entry = cfg["scada.weather"];

            ConfigItem item = entry.GetConfigItem(lineName);

            this.SearchChartView.SetValueRange(item.Min, item.Max);
        }
Beispiel #3
0
        public void AddLineName(string deviceKey, string lineName, string displayName)
        {
            this.DeviceKey = deviceKey;
            Config      cfg   = Config.Instance();
            ConfigEntry entry = cfg[deviceKey];

            ConfigItem item = entry.GetConfigItem(lineName);

            if (deviceKey == DataProvider.DeviceKey_AIS)
            {
                this.ChartView.SetCurveDisplayName("瞬时流量(L/h)");
            }
            else if (deviceKey == DataProvider.DeviceKey_MDS)
            {
                this.ChartView.SetCurveDisplayName("瞬时流量(m³/h)");
            }
            this.ChartView.SetValueRange(item.Min, item.Max);
            this.ChartView.HideResetButton();
            this.StartRealTimeChart();
        }
        public void AddLineName(string deviceKey, string lineName, string displayName)
        {
            // TODO:
            if (lineName.IndexOf("Doserate") >= 0)
            {
                displayName = displayName.Replace("μSv/h", "nSv/h");
            }

            Config      cfg   = Config.Instance();
            ConfigEntry entry = cfg[deviceKey];

            ConfigItem item = entry.GetConfigItem(lineName);

            SearchCurveView curveView = this.SearchChartView.AddCurveView(lineName, displayName);

            curveView.Max    = item.Max;
            curveView.Min    = item.Min;
            curveView.Height = item.Height;
            CurveDataContext dataContext = curveView.CreateDataContext(lineName, displayName);

            this.dataSources.Add(lineName.ToLower(), dataContext);
        }
Beispiel #5
0
        public void AddLineName(string deviceKey, string lineName, string displayName)
        {
            // TODO:
            if (lineName.IndexOf("DoseRate") >= 0)
            {
                displayName = displayName.Replace("μSv/h", "nSv/h");
            }

            Config      cfg   = Config.Instance();
            ConfigEntry entry = cfg[deviceKey];

            ConfigItem item = entry.GetConfigItem(lineName);

            if (deviceKey == DataProvider.DeviceKey_AIS)
            {
                this.SearchChartView.SetCurveDisplayName("瞬时流量(L/h)");
            }
            else if (deviceKey == DataProvider.DeviceKey_MDS)
            {
                this.SearchChartView.SetCurveDisplayName("瞬时流量(m³/h)");
            }
            else if (deviceKey == DataProvider.DeviceKey_NaI)
            {
                this.SearchChartView.SetCurveDisplayName("总剂量率(nSv/h)");
            }
            else if (deviceKey == DataProvider.DeviceKey_Weather)
            {
                this.SearchChartView.SetCurveDisplayName("温度(℃)");
            }
            if (this.Interval == 0)
            {
                this.Interval = 30;
                if (deviceKey == DataProvider.DeviceKey_NaI)
                {
                    this.Interval = 300;
                }
            }
            this.SearchChartView.SetValueRange(item.Min, item.Max);
        }