C# Class SDownload.Program

Helper application that runs in the system tray and interacts with with a browser extension.
Inheritance: System.Windows.Forms.Form
Show file Open project: brkastner/SDownload

Public Methods

Method Description
Program ( String args ) : System

Set up the helper service and check for extension installation and updates

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes of the tray icon before disposing of itself

OnClosing ( System e ) : void

Closes any open forms before closing itself

OnLoad ( EventArgs e ) : void

This form should not be visible to the user, contains no data

Private Methods

Method Description
CheckVersion ( bool force = false ) : void

Checks if the current version is the newest version

ConfirmExitApplication ( object sender, EventArgs eventArgs ) : void

Checks if confirmation is needed before exiting, then exits. (Unless cancelled by the user)

Exit ( ) : void

Fully exits the application

IsAlreadyRunning ( ) : bool

Check if SDownload is already running

Main ( String args ) : void
OpenUrlInBrowser ( String url ) : void

Opens a url in Chrome

ShowSettings ( object sender, EventArgs eventArgs ) : void

Show the settings form, creating one of it doesn't already exist

ValidateChromeInstallation ( ) : void

Check for a Google Chrome installation and make sure the helper extension is installed

Method Details

Dispose() protected method

Disposes of the tray icon before disposing of itself
protected Dispose ( bool disposing ) : void
disposing bool
return void

OnClosing() protected method

Closes any open forms before closing itself
protected OnClosing ( System e ) : void
e System Not used
return void

OnLoad() protected method

This form should not be visible to the user, contains no data
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Not used
return void

Program() public method

Set up the helper service and check for extension installation and updates
public Program ( String args ) : System
args String
return System