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

@@ -2049,12 +2049,30 @@ namespace Volian.Controls.Library
return MyItemInfo.MyContent.ToString();
}
}
private StepItem AERStepItem
{
get
{
if (MyParentStepItem != null)
{
if (MyParentStepItem.RNOLevel < RNOLevel)
return MyParentStepItem;
else
return MyParentStepItem.AERStepItem;
}
else
{
return MyPreviousStepItem.AERStepItem;
}
}
}
/// <summary>
/// Adjust the Location of all items below the current item.
/// </summary>
internal void AdjustLocation()
{
if (RNORight) MoveRNO(); // This is needed when an AER is Deleted that has an RNO.
if (RNOLevel>0) AERStepItem.AdjustLocation();
StepItem nextStepItem = NextDownStepItem;
//if (MyID == 2138)
// Console.WriteLine("2138");