C# Class SIL.Utils.UsageEmailDialog

Summary description for UsageEmailDialog.
Inheritance: System.Windows.Forms.Form, IFWDisposable
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
m_emailAddress string
m_emailBody string
m_emailSubject string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

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

ClearLaunchCount() public static méthode

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

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DoTrivialUsageReport() public static méthode

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.
Résultat void

DoTrivialUsageReport() public static méthode

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).
Résultat void

IncrementLaunchCount() public static méthode

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.
Résultat void

Property Details

m_emailAddress protected_oe property

protected string m_emailAddress
Résultat string

m_emailBody protected_oe property

protected string m_emailBody
Résultat string

m_emailSubject protected_oe property

protected string m_emailSubject
Résultat string