This commit is contained in:
@@ -236,7 +236,8 @@ namespace Volian.Controls.Library
|
||||
if (_LookupStepItems.ContainsKey(id)) // Expanding Parent should have added it to _LookupStepItems
|
||||
{
|
||||
StepItem itm = _LookupStepItems[id];
|
||||
if (itm.Visible == false)
|
||||
ItemInfo ii = myItemInfo.ActiveParent as ItemInfo;
|
||||
if (itm.Visible == false && ii != null)
|
||||
ExpandAsNeeded((ItemInfo)myItemInfo.ActiveParent);
|
||||
itm.AutoExpand(); // Expand it if it should expand
|
||||
}
|
||||
@@ -269,6 +270,15 @@ namespace Volian.Controls.Library
|
||||
//// TIMING: DisplayItem.TimeIt("pMyItem End");
|
||||
}
|
||||
}
|
||||
public void Reset()
|
||||
{
|
||||
ItemInfo parent = SelectedItemInfo.ActiveParent as ItemInfo;
|
||||
if (parent != null) ItemInfo.ResetParts(parent.ItemID); // Force data to reload
|
||||
// The following line actually reloads the procedure item
|
||||
MyProcedureItemInfo = MyProcedureItemInfo; // see get/set above. - Load Procedure and Sections
|
||||
// The following line expands the items needed to display SelectedItemInfo
|
||||
ExpandAsNeeded(SelectedItemInfo);
|
||||
}
|
||||
/// <summary>
|
||||
/// Get or Set currently selected RichTextBox (StepRTB)
|
||||
/// </summary>
|
||||
@@ -303,6 +313,8 @@ namespace Volian.Controls.Library
|
||||
_SelectedItemInfo = value;
|
||||
int id = value.ItemID;
|
||||
ExpandAsNeeded(value);
|
||||
// reset the entire step panel if the item isn't found.
|
||||
if (!_LookupStepItems.ContainsKey(id)) Reset();
|
||||
StepItem itm = _LookupStepItems[id];
|
||||
itm.ItemSelect();
|
||||
OnItemSelectedChanged(this, new ItemSelectedChangedEventArgs(itm));
|
||||
@@ -333,7 +345,7 @@ namespace Volian.Controls.Library
|
||||
OnItemSelectedChanged(this, new ItemSelectedChangedEventArgs(SelectedStepItem));
|
||||
}
|
||||
}
|
||||
public void MouseWheel(MouseEventArgs e)
|
||||
public new void MouseWheel(MouseEventArgs e)
|
||||
{
|
||||
base.OnMouseWheel(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user