Beispiel #1
0
 /// <summary>
 /// Cascade the event from the vsa site to external listeners.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CodeComProvider_CompilerErrorEvent(object sender, CompilerErrorEventArgs e)
 {
     //
     // Invoke the delegates
     //
     if (CompilerErrorEvent != null)
     {
         CompilerErrorEvent(this, e);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Cascade the event from the vsa site to external listeners.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void _VsaSite_CompilerErrorEvent(object sender, CompilerErrorEventArgs e)
 {
     //
     // Invoke the delegates
     //
     if (CompilerErrorEvent != null)
     {
         CompilerErrorEvent(this, e);
     }
 }
Beispiel #3
0
        public bool OnCompilerError(Microsoft.Vsa.IVsaError error)
        {
            CompilerErrorEventArgs e = new CompilerErrorEventArgs(error);

            //
            // Invoke the delegates
            //
            if (CompilerErrorEvent != null)
            {
                CompilerErrorEvent(this, e);
            }
            // Returns TRUE if the compiler is directed to continue reporting further errors
            // to the IVsaSite object.
            // Returns FALSE if the compiler is directed to stop reporting further errors
            // to the IVsaSite object.
            bool continueErrorReports = false;

            return(continueErrorReports);
        }
Beispiel #4
0
 public bool OnCompilerError(Microsoft.Vsa.IVsaError error)
 {
     CompilerErrorEventArgs e = new CompilerErrorEventArgs(error);
     //
     // Invoke the delegates
     //
     if (CompilerErrorEvent != null) CompilerErrorEvent(this, e);
     // Returns TRUE if the compiler is directed to continue reporting further errors
     // to the IVsaSite object.
     // Returns FALSE if the compiler is directed to stop reporting further errors
     // to the IVsaSite object.
     bool continueErrorReports = false;
     return continueErrorReports;
 }
Beispiel #5
0
 /// <summary>
 /// Cascade the event from the vsa site to external listeners.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void _VsaSite_CompilerErrorEvent(object sender, CompilerErrorEventArgs e)
 {
     //
     // Invoke the delegates
     //
     if (CompilerErrorEvent != null) CompilerErrorEvent(this, e);
 }
 private void scriptHostCompilerErrorEvent(object sender, CompilerErrorEventArgs e)
 {
     System.Console.WriteLine(e.LineText);
     System.String message = System.String.Format("Error on line {0}:\t{1}\n", e.Line, e.Description);
     System.Console.WriteLine(message);
 }
Beispiel #7
0
 private void script_host_CompilerErrorEvent(object sender, CompilerErrorEventArgs e)
 {
     this._RichTextBoxActivityLoggingAppendText (e.LineText);
     this._RichTextBoxActivityLoggingAppendText (
         string.Format("Error on line {0}:\t{1}\n", e.Line, e.Description));
     this.RichTextBoxActivityLogging.ScrollToCaret();
 }