Class RoleViewModel
Represents a role in a scenario.
Inheritance
RoleViewModel
Inherited Members
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class RoleViewModel : DetailsViewModel<IRole>, INotifyPropertyChanged, IOnSelected, IRoleViewModel, IScenarioTreeItem
Constructors
View SourceRoleViewModel(IEventAggregator, IParameterFactory, IServiceProvider, QualityPassViewModel)
Initializes a new instance of the RoleViewModel class.
Declaration
public RoleViewModel(IEventAggregator eventAggregator, IParameterFactory parameterFactory, IServiceProvider services, QualityPassViewModel qualityPass)
Parameters
| Type | Name | Description |
|---|---|---|
| IEventAggregator | eventAggregator | The event aggregator. |
| IParameterFactory | parameterFactory | The parameter factory. |
| IServiceProvider | services | The service provider. |
| QualityPassViewModel | qualityPass | The quality pass. |
Properties
View SourceCanEdit
Gets a value indicating whether or not parameters are editable.
Declaration
protected override bool CanEdit { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
View SourceHasUnsavedChanges
Gets a value indicating whether this item has unsaved changes.
Declaration
public bool HasUnsavedChanges { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
QualityPass
Gets the quality pass.
Declaration
public QualityPassViewModel QualityPass { get; }
Property Value
| Type | Description |
|---|---|
| QualityPassViewModel |
Role
Gets or sets the role.
Declaration
public IRole Role { get; set; }
Property Value
| Type | Description |
|---|---|
| IRole |
Scenario
Gets or sets the scenario view model.
Declaration
public IRoleBasedScenarioViewModel? Scenario { get; set; }
Property Value
| Type | Description |
|---|---|
| IRoleBasedScenarioViewModel |
Title
Gets a descriptive title for displaying details about the item.
Declaration
public string Title { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceOnParameterChanged(string)
Called when a parameter value changes.
Declaration
protected override void OnParameterChanged(string parameterName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parameterName | The parameter name. |