RadioDld.ReportError.ShowReport C# (CSharp) Method

ShowReport() public method

public ShowReport ( ErrorReporting report ) : void
report ErrorReporting
return void
        public void ShowReport(ErrorReporting report)
        {
            this.report = report;

            lock (showingLock)
            {
                if (showing)
                {
                    // Another instance of this form is currently being shown
                    return;
                }

                showing = true;
            }

            this.ShowDialog();

            lock (showingLock)
            {
                showing = false;
            }
        }

Usage Example

Ejemplo n.º 1
0
        private static void ReportException(Exception exp)
        {
            ErrorReporting report = new ErrorReporting(exp);

            using (ReportError showError = new ReportError())
            {
                showError.ShowReport(report);
            }
        }
All Usage Examples Of RadioDld.ReportError::ShowReport