C# 클래스 Bloom.MiscUI.ProblemReporterDialog

This dialog lets users bring up an issue with us. It can include a description, a screenshot, and the file they were working on. It can try to send directly via internet. If this fails, it can make a single zip file and direct the user to email that to us.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Book Book.Book

보호된 프로퍼티들

프로퍼티 타입 설명
_description System.Windows.Forms.TextBox
_state State
_youTrackProjectKey string

공개 메소드들

메소드 설명
IsLegalEmail ( string emailAddress ) : bool
ProblemReporterDialog ( ) : System
ProblemReporterDialog ( Control targetOfScreenshot ) : System
ProblemReporterDialog ( Control targetOfScreenshot, BookSelection bookSelection ) : System
SetDefaultIncludeBookSetting ( bool include ) : void

보호된 메소드들

메소드 설명
ChangeState ( State state ) : void
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnHandleCreated ( EventArgs e ) : void
UpdateDisplay ( ) : void
_okButton_Click ( object sender, EventArgs e ) : void

비공개 메소드들

메소드 설명
AddAttachment ( string file ) : void
GetAdditionalEnvironmentInfo ( StringBuilder bldr ) : void
GetFullDescriptionContents ( bool appendLog ) : string
GetLogFile ( ) : TempFile
GetScreenshot ( Control targetOfScreenshot ) : void
GetStandardErrorReportingProperties ( StringBuilder bldr, bool appendLog ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

MakeEmailableReportFile ( ) : void

If we are able to directly submit to YouTrack, we do that. But otherwise, this makes a zip file of everything we want to submit, in order to give the user a single thing they need to attach and send.

MakePackageForUserToEmail ( ) : void
ProblemReporterDialog_Load ( object sender, EventArgs e ) : void
Startup ( object sender, EventArgs e ) : void
SubmitToYouTrack ( ) : bool

Using YouTrackSharp here. We can't submit the report as if it were from this person, even if they have an account (well, not without asking them for credentials, which is just not gonna happen). So we submit with an account we created just for this purpose, "auto_report_creator".

UpdateDisplay ( object sender, EventArgs e ) : void
_cancelButton_Click ( object sender, EventArgs e ) : void
_privacyLabel_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void
_seeDetails_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void

메소드 상세

ChangeState() 보호된 메소드

protected ChangeState ( State state ) : void
state State
리턴 void

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

IsLegalEmail() 공개 메소드

public IsLegalEmail ( string emailAddress ) : bool
emailAddress string
리턴 bool

OnHandleCreated() 보호된 메소드

protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
리턴 void

ProblemReporterDialog() 공개 메소드

public ProblemReporterDialog ( ) : System
리턴 System

ProblemReporterDialog() 공개 메소드

public ProblemReporterDialog ( Control targetOfScreenshot ) : System
targetOfScreenshot System.Windows.Forms.Control
리턴 System

ProblemReporterDialog() 공개 메소드

public ProblemReporterDialog ( Control targetOfScreenshot, BookSelection bookSelection ) : System
targetOfScreenshot System.Windows.Forms.Control
bookSelection Bloom.Book.BookSelection
리턴 System

SetDefaultIncludeBookSetting() 공개 메소드

public SetDefaultIncludeBookSetting ( bool include ) : void
include bool
리턴 void

UpdateDisplay() 보호된 메소드

protected UpdateDisplay ( ) : void
리턴 void

_okButton_Click() 보호된 메소드

protected _okButton_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

프로퍼티 상세

Book 공개적으로 프로퍼티

public Book.Book Book
리턴 Book.Book

_description 보호되어 있는 프로퍼티

protected System.Windows.Forms.TextBox _description
리턴 System.Windows.Forms.TextBox

_state 보호되어 있는 프로퍼티

protected State _state
리턴 State

_youTrackProjectKey 보호되어 있는 프로퍼티

protected string _youTrackProjectKey
리턴 string