C# Class NetSparkle.DefaultNetSparkleUIFactory

UI factory for default interface
Inheritance: INetSparkleUIFactory
ファイルを表示 Open project: Deadpikle/NetSparkle

Public Methods

Method Description
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

Method Details

CreateProgressWindow() public method

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
return INetSparkleDownloadProgress

CreateSparkleForm() public method

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
return INetSparkleForm

Init() public method

Initialize UI. Called when Sparkle is constructed.
public Init ( ) : void
return void

ShowCannotDownloadAppcast() public method

Show message that appcast is not available
public ShowCannotDownloadAppcast ( string appcastUrl ) : void
appcastUrl string
return void

ShowDownloadErrorMessage() public method

Show message on download error
public ShowDownloadErrorMessage ( string message, string appCastUrl ) : void
message string Error message from exception
appCastUrl string
return void

ShowToast() public method

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
return void

ShowUnknownInstallerFormatMessage() public method

Show user a message saying downloaded update format is unknown
public ShowUnknownInstallerFormatMessage ( string downloadFileName ) : void
downloadFileName string
return void

ShowVersionIsSkippedByUserRequest() public method

Show message that latest update was skipped by user
public ShowVersionIsSkippedByUserRequest ( ) : void
return void

ShowVersionIsUpToDate() public method

Show user that current installed version is up-to-date
public ShowVersionIsUpToDate ( ) : void
return void