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); } }
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); }