Exemplo n.º 1
0
        private void OpenSourceFile(string FileName)
        {
            SourceView theSourceView;

            if (File.Exists(FileName))
            {
                if (mSourceFiles.TryGetValue(FileName, out theSourceView))
                {
                    Rehighlight(theSourceView);
                }
                else
                {
                    theSourceView            = new SourceView(Path.GetFileName(FileName));
                    mSourceFiles[FileName]   = theSourceView;
                    theSourceView.SourceFile = FileName;
                    Rehighlight(theSourceView);
                    theSourceView.Show(dockPanel);
                }
            }
        }
Exemplo n.º 2
0
 void Rehighlight(SourceView vw)
 {
     vw.ClearHighlight();
     vw.AddHighlight(mCurrentLine, Color.SteelBlue, Color.White);
     vw.ScrollTo(mCurrentLine);
 }
Exemplo n.º 3
0
 void Rehighlight(SourceView vw)
 {
     vw.ClearHighlight();
     vw.AddHighlight(mCurrentLine, Color.SteelBlue, Color.White);
     vw.ScrollTo(mCurrentLine);
 }
Exemplo n.º 4
0
 private void OpenSourceFile(string FileName)
 {
     SourceView theSourceView;
     if (File.Exists(FileName))
     {
         if (mSourceFiles.TryGetValue(FileName, out theSourceView))
             Rehighlight(theSourceView);
         else
         {
             theSourceView = new SourceView(Path.GetFileName(FileName));
             mSourceFiles[FileName] = theSourceView;
             theSourceView.SourceFile = FileName;
             Rehighlight(theSourceView);
             theSourceView.Show(dockPanel);
         }
     }
 }