Save Item only once when text is updated

Adjust AER to reflect changes in the RNO column
Added AnnotationColor property
Set Active or Inactive BackColor for StepRTB
This commit is contained in:
Rich
2010-10-18 15:40:29 +00:00
parent b39ee1b05b
commit ecb9f7f872
4 changed files with 42 additions and 4 deletions

View File

@@ -172,7 +172,10 @@ namespace Volian.Controls.Library
public void SetBackColor()
{
if (MyStepItem == null || MyStepItem.MyStepPanel == null) return;
if (!Focused)BackColor = _MyItemInfo.ItemAnnotationCount == 0 ? MyStepItem.MyStepPanel.InactiveColor : Color.FromArgb(255, 255, 128);
if (Focused) // If active Set BackColor to the active color
BackColor = MyStepItem.MyStepPanel.ActiveColor;
else // Otherwise Set the BackColor to either the InactiveColor or the AnnotationColor
BackColor = _MyItemInfo.ItemAnnotationCount == 0 ? MyStepItem.MyStepPanel.InactiveColor : MyStepItem.MyStepPanel.AnnotationColor;
}
public void HighlightBackColor()
{