Esempio n. 1
0
 private void SafeShowCompileError()
 {
     if (Application.OpenForms[0].InvokeRequired)
     {
         ShowCompileError d = new ShowCompileError(SafeShowCompileError);
         Application.OpenForms[0].Invoke(d, new object[] { });
         return;
     }
     if (MessageBox.Show("View compile errors?", "Compile Error",
                         MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         Process.Start(this.logFile);
     }
 }
Esempio n. 2
0
 private void SafeShowCompileError()
 {
     if (Application.OpenForms[0].InvokeRequired)
     {
         ShowCompileError d = new ShowCompileError(SafeShowCompileError);
         Application.OpenForms[0].Invoke(d, new object[] { });
         return;
     }
     if (MessageBox.Show("View compile errors?", "Compile Error",
         MessageBoxButtons.YesNo) == DialogResult.Yes)
         Process.Start(this.logFile);
 }