/// <summary>
 /// Initializes a new instance of the <see cref="SubmitException"/> class.
 /// </summary>
 /// <param name="bugTracker">The bug tracker.</param>
 /// <param name="ex">The ex.</param>
 public SubmitException(BugTracker bugTracker, Exception ex)
 {
     InitializeComponent();
     this.Size              = new Size(471, 152);
     this._exception        = ex;
     this.textdetails.Text  = ex.ToString();
     this.errorMessage.Text = string.Format("An error has occured in {0}.\n{1}\n\nDo you want to submit the error to the development group so this issue can be resolved?", ex.Source, ex.Message);
     this._bugTracker       = bugTracker;
     this._bugTracker.SubmissionCompleted += new EventHandler(_bugTracker_SubmissionCompleted);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SubmitBugDialog"/> class.
 /// </summary>
 /// <param name="bugTracker">The bug tracker.</param>
 internal SubmitBugDialog(BugTracker bugTracker)
 {
     InitializeComponent( );
     this._bugTracker = bugTracker;
     this._bugTracker.SubmissionCompleted += new EventHandler(_bugTracker_SubmissionCompleted);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubmitException"/> class.
 /// </summary>
 /// <param name="bugTracker">The bug tracker.</param>
 /// <param name="ex">The ex.</param>
 /// <param name="loadedFile">The loaded file.</param>
 public SubmitException(BugTracker bugTracker, Exception ex, FileInfo loadedFile)
     : this(bugTracker, ex)
 {
     _loadedFile = loadedFile;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubmitException"/> class.
 /// </summary>
 /// <param name="bugTracker">The bug tracker.</param>
 /// <param name="ex">The ex.</param>
 /// <param name="configDoc">The config doc.</param>
 public SubmitException(BugTracker bugTracker, Exception ex, XmlDocument configDoc)
     : this(bugTracker, ex)
 {
     _configDoc = configDoc;
 }