예제 #1
0
 private void ShowWindowForFailingFile(Location errorLocation)
 {
     Cursor.Current = Cursors.WaitCursor;
     try
     {
         Form form = CreateEmptyWindowForFile(errorLocation.FileName);
         ViewSourceControl viewSource = new ViewSourceControl();
         viewSource.Text = errorLocation.FileSource;
         viewSource.Dock = DockStyle.Fill;
         form.Controls.Add(viewSource);
         form.Show();
         viewSource.ScrollToOffset(errorLocation.Offset);
     }
     finally
     {
         Cursor.Current = Cursors.Default;
     }
 }
예제 #2
0
 private void ShowWindowForFailingFile(Location errorLocation)
 {
     Cursor.Current = Cursors.WaitCursor;
     try
     {
         Form form = CreateEmptyWindowForFile(errorLocation.FileName);
         ViewSourceControl viewSource = new ViewSourceControl();
         viewSource.Text = errorLocation.FileSource;
         viewSource.Dock = DockStyle.Fill;
         form.Controls.Add(viewSource);
         form.Show();
         viewSource.ScrollToOffset(errorLocation.Offset);
     }
     finally
     {
         Cursor.Current = Cursors.Default;
     }
 }