Class OvermindViewModel
The overmind section view model.
Inheritance
Inherited Members
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class OvermindViewModel : AutomationViewModelBase<OvermindView>, INotifyPropertyChanged, IDisposable, IHandleOnClosingEvent
Constructors
View SourceOvermindViewModel(OvermindView, IEventAggregator, IOvermindHelper, OvermindUIHelpers, BotBrainLogForwarder, QualityPassViewModel, IServiceProvider, Transient<BrainLogViewModel>)
Initializes a new instance of the OvermindViewModel class.
Declaration
public OvermindViewModel(OvermindView view, IEventAggregator events, IOvermindHelper overmindHelper, OvermindUIHelpers uiHelpers, BotBrainLogForwarder logForwarder, QualityPassViewModel qualityPass, IServiceProvider services, Transient<BrainLogViewModel> logViewModel)
Parameters
Type | Name | Description |
---|---|---|
OvermindView | view | The overmind view. |
IEventAggregator | events | The event aggregator. |
IOvermindHelper | overmindHelper | The overmind helper. |
OvermindUIHelpers | uiHelpers | The overmind UI helpers. |
BotBrainLogForwarder | logForwarder | The log forwarder. |
QualityPassViewModel | qualityPass | The quality pass view model. |
IServiceProvider | services | The service provider. |
Transient<BrainLogViewModel> | logViewModel | The log view model. |
Properties
View SourceBrainUpdater
Gets the overmind brain updater.
Declaration
protected IOvermindUpdater BrainUpdater { get; }
Property Value
Type | Description |
---|---|
IOvermindUpdater |
Canvas
Gets the canvas view model.
Declaration
public CanvasViewModel Canvas { get; }
Property Value
Type | Description |
---|---|
CanvasViewModel |
IsChoosingQualityPass
Gets a value indicating whether or not the user is choosing a new quality pass.
Declaration
public bool IsChoosingQualityPass { get; }
Property Value
Type | Description |
---|---|
bool |
LogViewModel
Gets the brain log view model.
Declaration
public BrainLogViewModel LogViewModel { get; }
Property Value
Type | Description |
---|---|
BrainLogViewModel |
PopoutLogViewCommand
Gets the command to pop out the log view in a new window.
Declaration
public DelegateCommand PopoutLogViewCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
QualityPass
Gets the current quality pass.
Declaration
public QualityPassViewModel QualityPass { get; }
Property Value
Type | Description |
---|---|
QualityPassViewModel |
SelectedQualityPassName
Gets or sets the selected quality pass name in the dropdown.
Declaration
public string? SelectedQualityPassName { get; set; }
Property Value
Type | Description |
---|---|
string |
Serializer
Gets the overmind brain serializer.
Declaration
protected IOvermindSerializer Serializer { get; }
Property Value
Type | Description |
---|---|
IOvermindSerializer |
ShowEngineerView
Gets a value indicating whether or not the user is viewing as an engineer.
Declaration
public bool ShowEngineerView { get; }
Property Value
Type | Description |
---|---|
bool |
ShowLogView
Gets or sets a value indicating whether or not the log view is visible.
Declaration
public bool ShowLogView { get; set; }
Property Value
Type | Description |
---|---|
bool |
ShowLogWithDetailsView
Gets a value indicating whether or not the log view should be within the details section.
Declaration
public bool ShowLogWithDetailsView { get; }
Property Value
Type | Description |
---|---|
bool |
ShowTesterView
Gets a value indicating whether or not the user is viewing as a tester.
Declaration
public bool ShowTesterView { get; }
Property Value
Type | Description |
---|---|
bool |
ToggleActiveViewCommand
Gets the command to toggle the active view.
Declaration
public DelegateCommand ToggleActiveViewCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ToggleLogPositionCommand
Gets the command to toggle the position of the log view.
Declaration
public DelegateCommand ToggleLogPositionCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ToggleQualityPassSelectionCommand
Gets the command to choose a new quality pass.
Declaration
public DelegateCommand ToggleQualityPassSelectionCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
UI
Gets the overmind UI helpers, including the lists of quality passes, scenarios, and roles.
Declaration
public OvermindUIHelpers UI { get; }
Property Value
Type | Description |
---|---|
OvermindUIHelpers |
Methods
View SourceDispose()
Removes all event handlers.
Declaration
public override void Dispose()
Overrides
View SourcePromptToSaveChanges()
Prompts the user to save changes to a file.
Declaration
public bool? PromptToSaveChanges()
Returns
Type | Description |
---|---|
bool? | A value indicating whether a prompt was not canceled. |
ShouldCancelClosing(CancelEventArgs)
Determines whether or not the tab should prevent closing.
Declaration
public bool ShouldCancelClosing(CancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
CancelEventArgs | e | The event arguments. |
Returns
Type | Description |
---|---|
bool | True if it should cancel. |
ToggleActiveView()
Switches the view to the appropriate UI
Declaration
public void ToggleActiveView()