Browse Source

renamed timervariable

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

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

@ -42,13 +42,14 @@ namespace CSharpBinding.OutlinePad @@ -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;
const bool optionSelectActiveTreeNode = true;
const bool optionSelectRange = false;
public CSharpOutlineContentHost(ITextEditor editor) {
this.editor = editor;
@ -58,10 +59,10 @@ namespace CSharpBinding.OutlinePad @@ -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;
}

Loading…
Cancel
Save