Show / Hide Table of Contents

Class RenameDataModel

A class that represents a model for renaming existing data to something different.

Inheritance
object
BindableBase
RenameDataModel
Implements
INotifyPropertyChanged
INotifyDataErrorInfo
Inherited Members
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.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class RenameDataModel : BindableBase, INotifyPropertyChanged, INotifyDataErrorInfo
Remarks

Initializes a new instance of the RenameDataModel class.

Constructors

View Source

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

ExistingName

Gets the existing name.

Declaration
public string ExistingName { get; }
Property Value
Type Description
string
View Source

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.

View Source

NewName

Gets or sets the new name for the data.

Declaration
public string NewName { get; set; }
Property Value
Type Description
string

Methods

View Source

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

ErrorsChanged

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>

Implements

INotifyPropertyChanged
INotifyDataErrorInfo
  • View Source
In this article
Back to top Generated by DocFX