public IDEEditor OpenFile(FileBaseItem aFile, int aLine) { IDEEditor ret = OpenFile(aFile); ret.Editor.TextArea.Caret.Line = aLine; ret.Editor.ScrollToLine(aLine); ret.InvalidateArrange(); return(ret); }
public IDEEditor OpenFile(FileBaseItem aFile, int aLine) { if (Intellisense.Sources.SourceBuilder.HandlesExtension(System.IO.Path.GetExtension(aFile.Path))) { IDEEditor ret = OpenFile(aFile); ret.InvalidateArrange(); new Thread(delegate() { Thread.Sleep(10); MainWindow.inst().Dispatcher.Invoke(delegate() { ret.Editor.TextArea.Caret.Line = aLine; ret.Editor.ScrollToLine(aLine); ret.InvalidateArrange(); }); }).Start(); return(ret); } return(null); }
public IDEEditor OpenFile(FileBaseItem aFile, int aLine) { if (aFile.Name.Contains(".as")) { IDEEditor ret = OpenFile(aFile); ret.Editor.TextArea.Caret.Line = aLine; ret.Editor.ScrollToLine(aLine); ret.InvalidateArrange(); return(ret); } return(null); }