C# Класс SIL.Utils.UsageEmailDialog

Summary description for UsageEmailDialog.
Наследование: System.Windows.Forms.Form, IFWDisposable
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
m_emailAddress string
m_emailBody string
m_emailSubject string

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
InitializeComponent ( ) : void
UsageEmailDialog ( ) : System
btnNope_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void
btnSend_Click ( object sender, System e ) : void

Описание методов

CheckDisposed() публичный Метод

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Результат void

ClearLaunchCount() публичный статический Метод

used for testing purposes
public static ClearLaunchCount ( RegistryKey applicationKey ) : void
applicationKey Microsoft.Win32.RegistryKey The application registry key.
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

DoTrivialUsageReport() публичный статический Метод

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.
Результат void

DoTrivialUsageReport() публичный статический Метод

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).
Результат void

IncrementLaunchCount() публичный статический Метод

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.
Результат void

Описание свойств

m_emailAddress защищенное свойство

protected string m_emailAddress
Результат string

m_emailBody защищенное свойство

protected string m_emailBody
Результат string

m_emailSubject защищенное свойство

protected string m_emailSubject
Результат string