Added MyItemInfo property
Fixed format of ToString for AnnotationAuditInfo Fixed format of ToString for ContentAuditInfo Fixed Restore if no next item Fixed ActiveParent logic after restore Added Timing logic and then Commented it Fixed Logic when there is not a NextNode Timing Debug code Update UserID when saving annotation Commented Timing Debug Created and used FixPath - StepPath Use MyItemInfo.SearchPath if Content doesn't have path Refresh Change List from Timer.Tick Added Timer for Refresh Added code to refresh ChangeBar Added and Commented timing debug Changed logic for saving ROUsages Added Closed Property that is set when the handle is destroyed Don't refresh StepRTB if it is closed
This commit is contained in:
@@ -372,8 +372,15 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public void RefreshDisplay()
|
||||
{
|
||||
if (Disposing) return;
|
||||
RefreshDisplay(ActiveMode);
|
||||
if (Closed) return;
|
||||
try
|
||||
{
|
||||
RefreshDisplay(ActiveMode);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_MyLog.Error(string.Format("MyItemInfo: {0} - {1} Problem doing RefreshDisplay",MyItemInfo.ItemID,MyItemInfo.ShortPath), ex);
|
||||
}
|
||||
}
|
||||
// RefreshDisplay is used to update the rtb for an entire Item as defined by MyItemInfo.
|
||||
public void RefreshDisplay(bool activeMode)
|
||||
@@ -576,6 +583,7 @@ namespace Volian.Controls.Library
|
||||
this.SelectionChanged -= new EventHandler(StepRTB_SelectionChanged);
|
||||
this.ContextMenuStripChanged -= new EventHandler(StepRTB_ContextMenuStripChanged);
|
||||
this.RTBSelectionChanged -= new StepRTBEvent(StepRTB_RTBSelectionChanged);
|
||||
this.HandleDestroyed -= new EventHandler(StepRTB_HandleDestroyed);
|
||||
}
|
||||
private void AddEventHandlers()
|
||||
{
|
||||
@@ -594,6 +602,18 @@ namespace Volian.Controls.Library
|
||||
this.SelectionChanged +=new EventHandler(StepRTB_SelectionChanged);
|
||||
this.ContextMenuStripChanged += new EventHandler(StepRTB_ContextMenuStripChanged);
|
||||
this.RTBSelectionChanged += new StepRTBEvent(StepRTB_RTBSelectionChanged);
|
||||
this.HandleDestroyed += new EventHandler(StepRTB_HandleDestroyed);
|
||||
}
|
||||
private bool _Closed = false;
|
||||
public bool Closed
|
||||
{
|
||||
get { return _Closed; }
|
||||
set { _Closed = value; }
|
||||
}
|
||||
void StepRTB_HandleDestroyed(object sender, EventArgs e)
|
||||
{
|
||||
Closed = true;
|
||||
RemoveEventHandlers();
|
||||
}
|
||||
void StepRTB_RTBSelectionChanged(object sender, EventArgs args)
|
||||
{
|
||||
|
Reference in New Issue
Block a user