B2019-161 Timing of display history

B2019-161 Timing of display RO
B2019-161 Timing of display search
B2019-161 Timing of display tab control
B2019-161 Timing of DSO Tab Panel Refresh
B2019-161 Timing of close word app
B2019-161 Timing of MyStepRTB selection changed
This commit is contained in:
Rich
2019-10-29 13:21:32 +00:00
parent 0bc786f46f
commit ee658d6a6d
7 changed files with 202 additions and 166 deletions

View File

@@ -831,8 +831,12 @@ namespace Volian.Controls.Library
private int lastStart = -1;
private int lastLength = -1;
private string lastText = null;
// B2019-161 When tracking timing time this action
private static VolianTimer _TimeActivity = new VolianTimer("StepTabRibbon.cs _MyStepRTB_SelectionChanged",837);
void _MyStepRTB_SelectionChanged(object sender, EventArgs e)
{
_TimeActivity.Open();
//B2019-154 This will prevent duplicate processing of the ribbon menu and refresh of step items, speeding up the editing experience
if (_MyStepRTB.MyItemInfo == lastItem && _MyStepRTB.SelectionStart == lastStart && _MyStepRTB.SelectionLength == lastLength && _MyStepRTB.SelectedText == lastText)
return;
@@ -841,6 +845,7 @@ namespace Volian.Controls.Library
lastLength = _MyStepRTB.SelectionLength;
lastText = _MyStepRTB.SelectedText;
SetButtonAndMenuEnabling(false);
_TimeActivity.Close();
}
//void _MyStepRTB_MouseUp(object sender, MouseEventArgs e)
//{