Exemple #1
0
        private void MarkAlarm(Dictionary <string, object> d, string key, SmartDataPane pane, int index)
        {
            string v     = this.GetDisplayString(d, key.ToLower());
            bool   alarm = (v == "1");

            pane.SetDataColor(index, alarm);
        }
Exemple #2
0
        private void MarkHpicAlarm(string v, double alarm, SmartDataPane pane, int index)
        {
            double dv;

            if (double.TryParse(v, out dv))
            {
                pane.SetDataColor(index, dv > alarm);
            }
        }