Class HydraViewModel
Hydra view model.
Inherited Members
Namespace: Phoenix.Hydra
Assembly: Phoenix.Plugin.Hydra.dll
Syntax
public sealed class HydraViewModel : TabItemViewModel<HydraView>, IViewInitialize, IHydraViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceHydraViewModel(HydraView, IWindowingControl, IEventAggregator, IPhoenixLogger)
Initializes a new instance of the HydraViewModel class.
Declaration
public HydraViewModel(HydraView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger)
Parameters
Type | Name | Description |
---|---|---|
HydraView | view | The view for the view model. |
IWindowingControl | windowing | |
IEventAggregator | eventAggregator | The event aggregator for the view model. |
IPhoenixLogger | logger | The logger for the view model. |
Fields
View SourceName
The tab header name.
Declaration
public const string Name = "Hydra"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceCanRunHydra
Gets or sets a value indicating whether Hydra functionality can be used.
Declaration
public bool CanRunHydra { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanStopLag
Gets or sets a value indicating whether the lag switch can be stopped.
Declaration
public bool CanStopLag { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ConstrainApplication
Gets the constrain application delegate command.
Declaration
public DelegateCommand ConstrainApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ExportFromKitBrowse
Gets the export from kit browse delegate command.
Declaration
public DelegateCommand ExportFromKitBrowse { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ExportFromKitExport
Gets the export from kit export delegate command.
Declaration
public DelegateCommand ExportFromKitExport { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ExportSaveTo
Gets or sets the location to save a save file on your PC.
Declaration
public string ExportSaveTo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ForceIsChecked
Gets or sets a value indicating whether copying a save should be forced.
Declaration
public bool ForceIsChecked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
GetRunningApplication
Gets the get running application delegate command.
Declaration
public DelegateCommand GetRunningApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
GetRunningServiceId
Gets the get running SCID command.
Declaration
public DelegateCommand GetRunningServiceId { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
InBandwidthLimit
Gets or sets the desired in bandwidth limit.
Declaration
public string InBandwidthLimit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LagIntervalOff
Gets or sets the desired time to turn off network simulation.
Declaration
public string LagIntervalOff { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LagIntervalOn
Gets or sets the desired time to turn on network simulation.
Declaration
public string LagIntervalOn { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LagSwitchStart
Gets the lag switch start delegate command.
Declaration
public DelegateCommand LagSwitchStart { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
LagSwitchStop
Gets the lag switch stop delegate command.
Declaration
public DelegateCommand LagSwitchStop { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
LatencyMS
Gets or sets the desired latency for simulation.
Declaration
public string LatencyMS { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NetworkSpeed
Gets or sets the desired network speed for simulation.
Declaration
public string NetworkSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OutBandwidthLimit
Gets or sets the desired out bandwidth limit for simulation.
Declaration
public string OutBandwidthLimit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OutOfStorageStart
Gets the out of storage start delegate command.
Declaration
public DelegateCommand OutOfStorageStart { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
PacketLoss
Gets or sets the desired packet loss for simulation.
Declaration
public string PacketLoss { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PushSaveFrom
Gets or sets the location to push a save from.
Declaration
public string PushSaveFrom { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PushToKitBrowse
Gets the push to kit browse delegate command.
Declaration
public DelegateCommand PushToKitBrowse { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
PushToKitPush
Gets the push to kit push delegate command.
Declaration
public DelegateCommand PushToKitPush { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
RefreshApplications
Gets the refresh applications delegate command.
Declaration
public DelegateCommand RefreshApplications { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ReleaseApplication
Gets the release (unconstrain) applications delegate command.
Declaration
public DelegateCommand ReleaseApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ReplaceIsChecked
Gets or sets a value indicating whether a save file is to be replaced.
Declaration
public bool ReplaceIsChecked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ReserveRemainingStart
Gets the reserve remaining start delegate command.
Declaration
public DelegateCommand ReserveRemainingStart { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ResumeApplication
Gets the resume application delegate command.
Declaration
public DelegateCommand ResumeApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
RunningApp
Gets or sets a value indicating the currently running app.
Declaration
public string RunningApp { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RunningAppUserModelId
Gets or sets a value indicating the AUMID of the currently running application
Declaration
public string RunningAppUserModelId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RunningServiceId
Gets or sets the SCID of the currently running application.
Declaration
public string RunningServiceId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SimulateNetwork
Gets or sets a value indicating whether or not to simulate network conditions.
Declaration
public bool SimulateNetwork { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SimulateNetworkStart
Gets the simulate network start delegate command.
Declaration
public DelegateCommand SimulateNetworkStart { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
SimulateUI
Gets or sets a value indicating whether or not to simulate UI latency.
Declaration
public bool SimulateUI { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SnapApplication
Gets the snap application delegate command.
Declaration
public DelegateCommand SnapApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
StartNetworkSpeed
Gets the start network speed delegate command.
Declaration
public DelegateCommand StartNetworkSpeed { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
StopNetworkSimulations
Gets the stop network simulation delegate command.
Declaration
public DelegateCommand StopNetworkSimulations { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
StorageSimulationStop
Gets the storage simulation stop delegate command.
Declaration
public DelegateCommand StorageSimulationStop { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
SuspendApplication
Gets the suspend application delegate command.
Declaration
public DelegateCommand SuspendApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
TerminateApplication
Gets the terminate application delegate command.
Declaration
public DelegateCommand TerminateApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
UnsnapApplication
Gets the unsnap application delegate command.
Declaration
public DelegateCommand UnsnapApplication { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
UseInBWLimit
Gets or sets a value indicating whether or not to simulate in bandwidth limits.
Declaration
public bool UseInBWLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseLatencyMS
Gets or sets a value indicating whether or not to simulate latency.
Declaration
public bool UseLatencyMS { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseOutBWLimit
Gets or sets a value indicating whether or not to simulate out bandwidth limits.
Declaration
public bool UseOutBWLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UsePacketLoss
Gets or sets a value indicating whether or not to simulate packet loss.
Declaration
public bool UsePacketLoss { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceInitialize()
Initializes phoenix managed resources when all modules are loaded.
Declaration
protected override void Initialize()
Overrides
OnViewChanged(Object, DependencyPropertyChangedEventArgs)
Updates the logger with the active tabs.
Declaration
protected override void OnViewChanged(object sender, DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The tab being updated. |
System.Windows.DependencyPropertyChangedEventArgs | e | The tab's status (whether or not it is visible). |
Overrides
Uninitialize()
Uninitializes phoenix managed resources when closed.
Declaration
protected override void Uninitialize()