C# Класс NetSparkle.DefaultNetSparkleUIFactory

UI factory for default interface
Наследование: INetSparkleUIFactory
Показать файл Открыть проект

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

Метод Описание
CreateProgressWindow ( NetSparkleAppCastItem item, Icon applicationIcon ) : INetSparkleDownloadProgress

Create download progress window

CreateSparkleForm ( Sparkle sparkle, NetSparkleAppCastItem updates, Icon applicationIcon ) : INetSparkleForm

Create sparkle form implementation

Init ( ) : void

Initialize UI. Called when Sparkle is constructed.

ShowCannotDownloadAppcast ( string appcastUrl ) : void

Show message that appcast is not available

ShowDownloadErrorMessage ( string message, string appCastUrl ) : void

Show message on download error

ShowToast ( NetSparkleAppCastItem updates, Icon applicationIcon, Action clickHandler ) : void

Show 'toast' window to notify new version is available

ShowUnknownInstallerFormatMessage ( string downloadFileName ) : void

Show user a message saying downloaded update format is unknown

ShowVersionIsSkippedByUserRequest ( ) : void

Show message that latest update was skipped by user

ShowVersionIsUpToDate ( ) : void

Show user that current installed version is up-to-date

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

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

Create download progress window
public CreateProgressWindow ( NetSparkleAppCastItem item, Icon applicationIcon ) : INetSparkleDownloadProgress
item NetSparkleAppCastItem Appcast item to download
applicationIcon System.Drawing.Icon Application icon to use
Результат INetSparkleDownloadProgress

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

Create sparkle form implementation
public CreateSparkleForm ( Sparkle sparkle, NetSparkleAppCastItem updates, Icon applicationIcon ) : INetSparkleForm
sparkle Sparkle
updates NetSparkleAppCastItem Sorted array of updates from latest to previous
applicationIcon System.Drawing.Icon Icon
Результат INetSparkleForm

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

Initialize UI. Called when Sparkle is constructed.
public Init ( ) : void
Результат void

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

Show message that appcast is not available
public ShowCannotDownloadAppcast ( string appcastUrl ) : void
appcastUrl string
Результат void

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

Show message on download error
public ShowDownloadErrorMessage ( string message, string appCastUrl ) : void
message string Error message from exception
appCastUrl string
Результат void

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

Show 'toast' window to notify new version is available
public ShowToast ( NetSparkleAppCastItem updates, Icon applicationIcon, Action clickHandler ) : void
updates NetSparkleAppCastItem Appcast updates
applicationIcon System.Drawing.Icon Icon to use in window
clickHandler Action handler for click
Результат void

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

Show user a message saying downloaded update format is unknown
public ShowUnknownInstallerFormatMessage ( string downloadFileName ) : void
downloadFileName string
Результат void

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

Show message that latest update was skipped by user
public ShowVersionIsSkippedByUserRequest ( ) : void
Результат void

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

Show user that current installed version is up-to-date
public ShowVersionIsUpToDate ( ) : void
Результат void