Show / Hide Table of Contents

Class OvermindViewModel

The overmind section view model.

Inheritance
object
BindableBase
ViewModelBase
AutomationViewModelBase
AutomationViewModelBase<OvermindView>
OvermindViewModel
Implements
INotifyPropertyChanged
IDisposable
IHandleOnClosingEvent
Inherited Members
AutomationViewModelBase<OvermindView>.Content
AutomationViewModelBase<OvermindView>.SelectedDevice
AutomationViewModelBase<OvermindView>.TelemetryClient
AutomationViewModelBase<OvermindView>.HandleDeviceSelected(DeviceCollectionChangeInfo)
AutomationViewModelBase.AllFileTypeFilter
AutomationViewModelBase.Events
AutomationViewModelBase.EventSubscriber
AutomationViewModelBase.PromptToOpenFile(string, string, bool, string)
AutomationViewModelBase.PromptToSaveFile(string, string, string)
AutomationViewModelBase.LoadResourceDictionary(string, Type)
AutomationViewModelBase.AddResourceDictionaryTo(FrameworkElement, string, Type)
ViewModelBase.Services
ViewModelBase.Logger
ViewModelBase.LogVerboseException(Exception, string, string)
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class OvermindViewModel : AutomationViewModelBase<OvermindView>, INotifyPropertyChanged, IDisposable, IHandleOnClosingEvent

Constructors

View Source

OvermindViewModel(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 Source

BrainUpdater

Gets the overmind brain updater.

Declaration
protected IOvermindUpdater BrainUpdater { get; }
Property Value
Type Description
IOvermindUpdater
View Source

Canvas

Gets the canvas view model.

Declaration
public CanvasViewModel Canvas { get; }
Property Value
Type Description
CanvasViewModel
View Source

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
View Source

LogViewModel

Gets the brain log view model.

Declaration
public BrainLogViewModel LogViewModel { get; }
Property Value
Type Description
BrainLogViewModel
View Source

PopoutLogViewCommand

Gets the command to pop out the log view in a new window.

Declaration
public DelegateCommand PopoutLogViewCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

QualityPass

Gets the current quality pass.

Declaration
public QualityPassViewModel QualityPass { get; }
Property Value
Type Description
QualityPassViewModel
View Source

SelectedQualityPassName

Gets or sets the selected quality pass name in the dropdown.

Declaration
public string? SelectedQualityPassName { get; set; }
Property Value
Type Description
string
View Source

Serializer

Gets the overmind brain serializer.

Declaration
protected IOvermindSerializer Serializer { get; }
Property Value
Type Description
IOvermindSerializer
View Source

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
View Source

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
View Source

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
View Source

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
View Source

ToggleActiveViewCommand

Gets the command to toggle the active view.

Declaration
public DelegateCommand ToggleActiveViewCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ToggleLogPositionCommand

Gets the command to toggle the position of the log view.

Declaration
public DelegateCommand ToggleLogPositionCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ToggleQualityPassSelectionCommand

Gets the command to choose a new quality pass.

Declaration
public DelegateCommand ToggleQualityPassSelectionCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

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 Source

Dispose()

Removes all event handlers.

Declaration
public override void Dispose()
Overrides
AutomationViewModelBase.Dispose()
View Source

PromptToSaveChanges()

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.

View Source

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.

View Source

ToggleActiveView()

Switches the view to the appropriate UI

Declaration
public void ToggleActiveView()

Implements

INotifyPropertyChanged
IDisposable
IHandleOnClosingEvent

Extension Methods

INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action)
INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action<object?, string>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<bool>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<object?, string, bool>)
  • View Source
In this article
Back to top Generated by DocFX