Class LaunchModel
The model for a particular launch.
Inheritance
Namespace: Phoenix.Applications.Launch
Assembly: Phoenix.Plugin.AppLaunch.dll
Syntax
public class LaunchModel : BindableBase
Constructors
View SourceLaunchModel(LaunchModel)
Initializes a new instance of the LaunchModel class.
Declaration
public LaunchModel(LaunchModel cloneSource)
Parameters
Type | Name | Description |
---|---|---|
LaunchModel | cloneSource | The target launch to clone. |
LaunchModel(IEnumerable<IDevice>)
Initializes a new instance of the LaunchModel class.
Declaration
public LaunchModel(IEnumerable<IDevice> selectedDevices)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IDevice> | selectedDevices | The target devices for the launch. |
Properties
View SourceConfigurationName
Gets or sets the current configuration name.
Declaration
public string ConfigurationName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CustomCommandLine
Gets or sets the custom command line for the launch.
Declaration
public string CustomCommandLine { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DisplayName
Gets the long display name for the current launch.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
Expanded
Gets or sets a value indicating whether or not the window is expanded.
Declaration
public bool Expanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsCommandLineCreated
Gets or sets a value indicating whether the current configuration was created by the user entering command args.
Declaration
public bool IsCommandLineCreated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LaunchingApplication
Gets or sets a value indicating whether or not the application is being launched currently.
Declaration
public bool LaunchingApplication { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LaunchLocked
Gets or sets a value indicating whether or not the launch expander is locked and settings can be changed.
Declaration
public bool LaunchLocked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MatchingApplications
Gets the matching applications between all the target devices.
Declaration
public ObservableCollection<IApplication> MatchingApplications { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<IApplication> |
RefreshingApplications
Gets or sets a value indicating whether or not the applications are currently refreshing.
Declaration
public bool RefreshingApplications { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SelectedApplication
Gets or sets the selected application.
Declaration
public IApplication SelectedApplication { get; set; }
Property Value
Type | Description |
---|---|
IApplication |
SelectedConfiguration
Gets or sets the active configuration.
Declaration
public LaunchConfiguration SelectedConfiguration { get; set; }
Property Value
Type | Description |
---|---|
LaunchConfiguration |
SelectedEditableParameters
Gets the selected parameters that have an editable portion.
Declaration
public ObservableCollection<LaunchParameterModel> SelectedEditableParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<LaunchParameterModel> |
SelectedParameters
Gets the selected parameters that cannot be edited.
Declaration
public ObservableCollection<LaunchParameterModel> SelectedParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<LaunchParameterModel> |
ShowSystemApplications
Gets or sets a value indicating whether or not the model should show system applications.
Declaration
public bool ShowSystemApplications { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TargetDevices
Gets the target devices.
Declaration
public ObservableCollection<IDevice> TargetDevices { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<IDevice> |
Methods
View SourceChangeDeviceSelection(IEnumerable<IDevice>)
Changes the selected devices for a launch model to a new selection, and updates application choices based on the change.
Declaration
public async Task<bool> ChangeDeviceSelection(IEnumerable<IDevice> newDevices)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IDevice> | newDevices | The new devices being selected. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | Whether or not the change device selection was successful. |
Launch(LaunchConfiguration)
Launches the application with a configuration.
Declaration
public async Task Launch(LaunchConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
LaunchConfiguration | config | The config to launch with (can be different than the active one.) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that runs the launch. |
RefreshMatchingApplications(Boolean)
Refreshes the matching applications for the devices.
Declaration
public async Task RefreshMatchingApplications(bool forceRecache)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | forceRecache | If true, forces the cache to rebuild upon request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that refreshes the matching applications between the devices. |