'open' valves in paths and sequences are displayed with 'LightGray' background for easy reading, ver. 2.9.330

This commit is contained in:
Milan Hanajik
2016-08-01 17:41:43 +02:00
parent dcadd29791
commit b9ea2087de
6 changed files with 57 additions and 11 deletions
@@ -2,6 +2,7 @@
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using log4net;
using Config.Entities;
@@ -175,6 +176,11 @@ namespace TBF.UiControls
// e.Cancel = true;
// }
//}
if (e.SubItem >= fixedCount)
{
e.Item.SubItems[e.SubItem].BackColor = e.DisplayText == Strings.open ? Color.LightGray : Color.White;
}
}
public override void DrawOne(object myItem)