Use the TreeView timer to select the newly created step when a step is added from the TreeView. This assures that it will get focus.
Changed OnChange to be called for a specific instance Don't select newly created Step if it was created from the TreeView Adjust the locations of steps properly if a caution or note is deleted Reduce repeated setup of the RTF data in a step Add an event that fires after the Step is added from the TreeView so that the newly created step can get focus
This commit is contained in:
@@ -31,16 +31,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private void OnChange(ContentInfo contentInfo)
|
||||
{
|
||||
if (Changed != null)
|
||||
{
|
||||
//if (ContentItems[0].ItemID == 54)
|
||||
//Console.WriteLine("OnChange: ItemID = {0}, Unique = {1}", ContentItems[0].ItemID, ContentItems[0].MyItemInfoUnique);
|
||||
//Console.WriteLine("'Tab Bug','OnChange','{0}',{1},{2},{3},{4}", ContentItems[0].Path, ContentItems[0].ItemID, ContentItems[0].MyItemInfoUnique,
|
||||
//ContentID,MyContentInfoUnique);
|
||||
Changed(this);
|
||||
}
|
||||
//else
|
||||
//Console.WriteLine("'Tab Bug','OnChange NoChange','{0}',{1},{2},{3},{4}", ContentItems[0].Path, ContentItems[0].ItemID, ContentItems[0].MyItemInfoUnique,
|
||||
//ContentID, MyContentInfoUnique);
|
||||
}
|
||||
private void OnChange()
|
||||
{
|
||||
@@ -553,7 +544,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// _MyZContent = null;// Reset related value
|
||||
// }
|
||||
_ContentZContentCount = -1;// Reset Count
|
||||
OnChange();// raise an event
|
||||
OnChange(this);// raise an event only for this instance
|
||||
}
|
||||
public static void Refresh(FormatContent tmp)
|
||||
{
|
||||
@@ -598,7 +589,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// _MyZContent = null;// Reset related value
|
||||
// }
|
||||
_ContentZContentCount = -1;// Reset Count
|
||||
OnChange();// raise an event
|
||||
OnChange(this);// raise an event only for this instance
|
||||
}
|
||||
public static ContentInfo Get(int contentID)
|
||||
{
|
||||
|
Reference in New Issue
Block a user