Class RenameDataModel
A class that represents a model for renaming existing data to something different.
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class RenameDataModel : BindableBase, INotifyPropertyChanged, INotifyDataErrorInfo
Remarks
Initializes a new instance of the RenameDataModel class.
Constructors
View SourceRenameDataModel(string, string, Collection<IRenameableData>)
A class that represents a model for renaming existing data to something different.
Declaration
public RenameDataModel(string existingSaveName, string newName, Collection<IRenameableData> allExistingData)
Parameters
Type | Name | Description |
---|---|---|
string | existingSaveName | The existing name for the data. |
string | newName | The new name for the data. |
Collection<IRenameableData> | allExistingData | The list of all IRenameableData to check for conflicts. |
Remarks
Initializes a new instance of the RenameDataModel class.
Properties
View SourceExistingName
Gets the existing name.
Declaration
public string ExistingName { get; }
Property Value
Type | Description |
---|---|
string |
HasErrors
Gets a value that indicates whether the entity has validation errors.
Declaration
public bool HasErrors { get; }
Property Value
Type | Description |
---|---|
bool | true if the entity currently has validation errors; otherwise, false. |
NewName
Gets or sets the new name for the data.
Declaration
public string NewName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceGetErrors(string)
Gets the validation errors for a specified property or for the entire entity.
Declaration
public IEnumerable GetErrors(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | The name of the property to retrieve validation errors for; or null or Empty, to retrieve entity-level errors. |
Returns
Type | Description |
---|---|
IEnumerable | The validation errors for the property or entity. |
Events
View SourceErrorsChanged
Occurs when the validation errors have changed for a property or for the entire entity.
Declaration
public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged
Event Type
Type | Description |
---|---|
EventHandler<DataErrorsChangedEventArgs> |