C# Class NAPS2.Util.Lifecycle

Helps manage the lifecycle of the NAPS2 GUI.
Mostra file Open project: cyanfish/naps2

Public Methods

Method Description
ExitIfRedundant ( ) : void

May terminate the NAPS2 GUI based on the command-line arguments and running processes, sending messages to other processes if appropriate.

Lifecycle ( StillImage sti, AppConfigManager appConfigManager ) : System
ParseArgs ( string args ) : void

Parses the NAPS2 GUI command-line arguments.

Private Methods

Method Description
ActivateProcess ( Process process ) : void
GetOtherNaps2Processes ( ) : IEnumerable

Method Details

ExitIfRedundant() public method

May terminate the NAPS2 GUI based on the command-line arguments and running processes, sending messages to other processes if appropriate.
public ExitIfRedundant ( ) : void
return void

Lifecycle() public method

public Lifecycle ( StillImage sti, AppConfigManager appConfigManager ) : System
sti StillImage
appConfigManager AppConfigManager
return System

ParseArgs() public method

Parses the NAPS2 GUI command-line arguments.
public ParseArgs ( string args ) : void
args string
return void