void WindowManagerOnCaretChanged(object sender, CaretChangedEventArgs e) { Invoke(new Action(() => { tsLineLabel.Text = "" + (e.Line); tsColLabel.Text = "" + (e.Column); })); }
private void FireCaretChange(Scintilla sender) { if (OnCaretChanged != null) { var scintilla = sender as Scintilla; int line = 1; int column = 1; if (scintilla != null) { line = scintilla.Caret.LineNumber + 1; column = scintilla.GetColumn(scintilla.Caret.Position) + 1; } var ccea = new CaretChangedEventArgs { Editor = scintilla, Line = line, Column = column }; OnCaretChanged(this, ccea); } }