From a6241eb0c704b8decb36020267a9b8411b7d7fb3 Mon Sep 17 00:00:00 2001 From: JohnnyBravo75 Date: Thu, 24 Jul 2014 23:44:08 +0200 Subject: [PATCH] renamed timervariable --- .../Src/OutlinePad/CSharpOutlineContentHost.xaml.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/OutlinePad/CSharpOutlineContentHost.xaml.cs b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/OutlinePad/CSharpOutlineContentHost.xaml.cs index ae470525c2..46c9b4d9b4 100644 --- a/src/AddIns/BackendBindings/CSharpBinding/Project/Src/OutlinePad/CSharpOutlineContentHost.xaml.cs +++ b/src/AddIns/BackendBindings/CSharpBinding/Project/Src/OutlinePad/CSharpOutlineContentHost.xaml.cs @@ -42,13 +42,14 @@ namespace CSharpBinding.OutlinePad { ITextEditor editor; DispatcherTimer updateTreeTimer = new DispatcherTimer(); + const double updateDelayMilliseconds = 1000; DispatcherTimer scrollToNodeTimer = new DispatcherTimer(); + const double scrollDelayMilliseconds = 200; SyntaxTree syntaxTree; TextLocation? lastCaretLocation; - CSharpOutlineNode selectedNode = null; - static double refreshDelayInMilliSec = 1000; - static bool optionSelectActiveTreeNode = true; - static bool optionSelectRange = false; + CSharpOutlineNode selectedNode = null; + const bool optionSelectActiveTreeNode = true; + const bool optionSelectRange = false; public CSharpOutlineContentHost(ITextEditor editor) { this.editor = editor; @@ -58,10 +59,10 @@ namespace CSharpBinding.OutlinePad SD.ParserService.ParseInformationUpdated += ParseInfoUpdated; - this.updateTreeTimer.Interval = TimeSpan.FromMilliseconds(refreshDelayInMilliSec); + this.updateTreeTimer.Interval = TimeSpan.FromMilliseconds(updateDelayMilliseconds); this.updateTreeTimer.Tick += this.UpdateTreeTimer_Tick; - this.scrollToNodeTimer.Interval = TimeSpan.FromMilliseconds(200); + this.scrollToNodeTimer.Interval = TimeSpan.FromMilliseconds(scrollDelayMilliseconds); this.scrollToNodeTimer.Tick += this.ScrollToNodeTimer_Tick; }