C# Class SIL.Utils.UsageEmailDialog

Summary description for UsageEmailDialog.
Inheritance: System.Windows.Forms.Form, IFWDisposable
显示文件 Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
m_emailAddress string
m_emailBody string
m_emailSubject string

Public Methods

Method Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

ClearLaunchCount ( RegistryKey applicationKey ) : void

used for testing purposes

DoTrivialUsageReport ( string applicationName, RegistryKey applicationKey, string emailAddress, string topMessage, bool addStats, int launchNumber ) : void

if you call this every time the application starts, it will send reports on the specified launch number. It will get version number and name out of the application.

DoTrivialUsageReport ( string applicationName, RegistryKey applicationKey, string emailAddress, string topMessage, bool addStats, int launchNumber, Assembly assembly ) : void

if you call this every time the application starts, it will send reports on the specified launch number. It will get version number and name out of the application.

IncrementLaunchCount ( RegistryKey applicationKey ) : void

call this each time the application is launched if you have launch count-based reporting

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void
UsageEmailDialog ( ) : System
btnNope_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void
btnSend_Click ( object sender, System e ) : void

Method Details

CheckDisposed() public method

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
return void

ClearLaunchCount() public static method

used for testing purposes
public static ClearLaunchCount ( RegistryKey applicationKey ) : void
applicationKey Microsoft.Win32.RegistryKey The application registry key.
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

DoTrivialUsageReport() public static method

if you call this every time the application starts, it will send reports on the specified launch number. It will get version number and name out of the application.
public static DoTrivialUsageReport ( string applicationName, RegistryKey applicationKey, string emailAddress, string topMessage, bool addStats, int launchNumber ) : void
applicationName string Name of the application.
applicationKey Microsoft.Win32.RegistryKey The application registry key.
emailAddress string The e-mail address.
topMessage string The message at the top of the e-mail.
addStats bool True to add crash and application runtime statistics to the /// report.
launchNumber int The needed launch count to show the dialog and ask for /// an e-mail.
return void

DoTrivialUsageReport() public static method

if you call this every time the application starts, it will send reports on the specified launch number. It will get version number and name out of the application.
public static DoTrivialUsageReport ( string applicationName, RegistryKey applicationKey, string emailAddress, string topMessage, bool addStats, int launchNumber, Assembly assembly ) : void
applicationName string Name of the application.
applicationKey Microsoft.Win32.RegistryKey The application registry key.
emailAddress string The e-mail address.
topMessage string The message at the top of the e-mail.
addStats bool True to add crash and application runtime statistics to the /// report.
launchNumber int The needed launch count to show the dialog and ask for /// an e-mail.
assembly System.Reflection.Assembly The assembly to use for getting version information (can be /// null).
return void

IncrementLaunchCount() public static method

call this each time the application is launched if you have launch count-based reporting
public static IncrementLaunchCount ( RegistryKey applicationKey ) : void
applicationKey Microsoft.Win32.RegistryKey The application registry key.
return void

Property Details

m_emailAddress protected_oe property

protected string m_emailAddress
return string

m_emailBody protected_oe property

protected string m_emailBody
return string

m_emailSubject protected_oe property

protected string m_emailSubject
return string