'open' valves in paths and sequences are displayed with 'LightGray' background for easy reading, ver. 2.9.330
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user