public CodeEditorControl() { InitializeComponent(); mAutoCompleteManager = new AutoCompleteManager(); mAutoCompleteManager.Initialize(syntaxBoxControl1); syntaxDocument1.SyntaxFile = @"Content\SyntaxHighlighting\C#.syn"; mTimer = new Timer { Interval = 2000 }; // This means the timer will check every 2 seconds to see if the user has typed anything that should be saved. mTimer.Tick += OnTimerTick; mTimer.Start(); TopText = ""; BottomText = ""; }
public CodeEditorControl() { InitializeComponent(); mAutoCompleteManager = new AutoCompleteManager(); mAutoCompleteManager.Initialize(syntaxBoxControl1); syntaxDocument1.SyntaxFile = @"Content\SyntaxHighlighting\C#.syn"; mTimer = new Timer {Interval = 2000}; // This means the timer will check every 2 seconds to see if the user has typed anything that should be saved. mTimer.Tick += OnTimerTick; mTimer.Start(); TopText = ""; BottomText = ""; }