C# Class Hourglass.AppEntry

Handles application start up, command-line arguments, and ensures that only one instance of the application is running at any time.
Inheritance: WindowsFormsApplicationBase
Mostrar archivo Open project: Dziemborowicz/Hourglass Class Usage Examples

Public Methods

Method Description
AppEntry ( ) : System

Initializes a new instance of the AppEntry class.

Protected Methods

Method Description
OnStartup ( Microsoft.VisualBasic.ApplicationServices.StartupEventArgs e ) : bool

Invoked when the application starts.

OnStartupNextInstance ( Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs e ) : void

Invoked when a subsequent instance of this application starts.

Private Methods

Method Description
AppExit ( object sender, System.Windows.ExitEventArgs e ) : void

Invoked just before the application shuts down, and cannot be canceled.

Main ( string args ) : void
SetGlobalSettingsFromArguments ( CommandLineArguments arguments ) : void

Sets global options from parsed command-line arguments.

ShowNewTimerWindow ( CommandLineArguments arguments ) : void

Shows a new timer window. The window will run the TimerStart specified in the , or it will display in input mode if there is no TimerStart.

ShowSavedTimerWindows ( CommandLineArguments arguments ) : void

Shows windows for all saved timers.

ShowTimerWindowsForArguments ( CommandLineArguments arguments ) : void

Shows a new timer window or windows for all saved timers, depending on whether the specify to open saved timers.

Method Details

AppEntry() public method

Initializes a new instance of the AppEntry class.
public AppEntry ( ) : System
return System

OnStartup() protected method

Invoked when the application starts.
protected OnStartup ( Microsoft.VisualBasic.ApplicationServices.StartupEventArgs e ) : bool
e Microsoft.VisualBasic.ApplicationServices.StartupEventArgs Contains the command-line arguments of the application and indicates whether the /// application startup should be canceled.
return bool

OnStartupNextInstance() protected method

Invoked when a subsequent instance of this application starts.
protected OnStartupNextInstance ( Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs e ) : void
e Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs Contains the command-line arguments of the subsequent application instance and indicates /// whether the first application instance should be brought to the foreground.
return void