Fixed BackColor logic so only one RTB has the active BackColor for a StepPanel

This commit is contained in:
Rich 2010-12-01 22:18:56 +00:00
parent 71fb86effb
commit 926d99cfdc

View File

@ -344,7 +344,7 @@ namespace Volian.Controls.Library
if (lastRTB != null && lastRTB.BeingDisposed == false) if (lastRTB != null && lastRTB.BeingDisposed == false)
{ {
//_SelectedStepRTB.BackColor = InactiveColor; //_SelectedStepRTB.BackColor = InactiveColor;
lastRTB.SetBackColor(); //lastRTB.SetBackColor();
bool shouldDelete = !lastRTB.MyStepItem.BeingRemoved && lastRTB.Text.Length == 0; bool shouldDelete = !lastRTB.MyStepItem.BeingRemoved && lastRTB.Text.Length == 0;
if (shouldDelete) if (shouldDelete)
{ {
@ -387,6 +387,8 @@ namespace Volian.Controls.Library
if (_SelectedItemInfo.ItemID != value.MyItemInfo.ItemID) if (_SelectedItemInfo.ItemID != value.MyItemInfo.ItemID)
SelectedItemInfo = value.MyItemInfo; SelectedItemInfo = value.MyItemInfo;
} }
if(lastRTB != null)
lastRTB.SetBackColor();
//vlnStackTrace.ShowStack("_DisplayRTB = {0}", _DisplayRTB.MyItem.ItemID);// Show StackTrace //vlnStackTrace.ShowStack("_DisplayRTB = {0}", _DisplayRTB.MyItem.ItemID);// Show StackTrace
} }
} }