Browse Source

renamed timervariable

pull/520/head
JohnnyBravo75 11 years ago
parent
commit
a6241eb0c7
  1. 13
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/OutlinePad/CSharpOutlineContentHost.xaml.cs

13
src/AddIns/BackendBindings/CSharpBinding/Project/Src/OutlinePad/CSharpOutlineContentHost.xaml.cs

@ -42,13 +42,14 @@ namespace CSharpBinding.OutlinePad
{ {
ITextEditor editor; ITextEditor editor;
DispatcherTimer updateTreeTimer = new DispatcherTimer(); DispatcherTimer updateTreeTimer = new DispatcherTimer();
const double updateDelayMilliseconds = 1000;
DispatcherTimer scrollToNodeTimer = new DispatcherTimer(); DispatcherTimer scrollToNodeTimer = new DispatcherTimer();
const double scrollDelayMilliseconds = 200;
SyntaxTree syntaxTree; SyntaxTree syntaxTree;
TextLocation? lastCaretLocation; TextLocation? lastCaretLocation;
CSharpOutlineNode selectedNode = null; CSharpOutlineNode selectedNode = null;
static double refreshDelayInMilliSec = 1000; const bool optionSelectActiveTreeNode = true;
static bool optionSelectActiveTreeNode = true; const bool optionSelectRange = false;
static bool optionSelectRange = false;
public CSharpOutlineContentHost(ITextEditor editor) { public CSharpOutlineContentHost(ITextEditor editor) {
this.editor = editor; this.editor = editor;
@ -58,10 +59,10 @@ namespace CSharpBinding.OutlinePad
SD.ParserService.ParseInformationUpdated += ParseInfoUpdated; SD.ParserService.ParseInformationUpdated += ParseInfoUpdated;
this.updateTreeTimer.Interval = TimeSpan.FromMilliseconds(refreshDelayInMilliSec); this.updateTreeTimer.Interval = TimeSpan.FromMilliseconds(updateDelayMilliseconds);
this.updateTreeTimer.Tick += this.UpdateTreeTimer_Tick; this.updateTreeTimer.Tick += this.UpdateTreeTimer_Tick;
this.scrollToNodeTimer.Interval = TimeSpan.FromMilliseconds(200); this.scrollToNodeTimer.Interval = TimeSpan.FromMilliseconds(scrollDelayMilliseconds);
this.scrollToNodeTimer.Tick += this.ScrollToNodeTimer_Tick; this.scrollToNodeTimer.Tick += this.ScrollToNodeTimer_Tick;
} }

Loading…
Cancel
Save