コード例 #1
0
ファイル: Custom.cs プロジェクト: DoctorDump/NBug-Easy
        public override bool Send(string fileName, Stream file, Report report, SerializableException exception)
        {
            if (Settings.CustomSubmissionHandle == null)
                return false;

            var e = new CustomSubmissionEventArgs(fileName, file, report, exception);
            Settings.CustomSubmissionHandle.DynamicInvoke(this, e);
            return e.Result;
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: DoctorDump/NBug-Easy
 /// <summary>
 /// Handles CustomSubmissionEvent to submit bug
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Settings_CustomSubmissionEvent(object sender, CustomSubmissionEventArgs e)
 {
     Debug.WriteLine(string.Format("Custom submission for exception {0}", e.Exception.Message));
     e.Result = true;
 }