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
Afficher le fichier Open project: Dziemborowicz/Hourglass Class Usage Examples

Méthodes publiques

Méthode Description
AppEntry ( ) : System

Initializes a new instance of the AppEntry class.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Initializes a new instance of the AppEntry class.
public AppEntry ( ) : System
Résultat System

OnStartup() protected méthode

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.
Résultat bool

OnStartupNextInstance() protected méthode

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.
Résultat void