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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Book Book.Book

Защищенные свойства (Protected)

Свойство Тип Описание
_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