8using System.ComponentModel;
18 private const string TextSeparator =
", ";
34 if (
Model is INotifyPropertyChanged npc)
36 npc.PropertyChanged += Npc_PropertyChanged;
40 private void Npc_PropertyChanged(
object sender, PropertyChangedEventArgs e)
42 if (e.PropertyName ==
"IsBusy")
43 OnPropertyChanged(nameof(
IsBusy));
52 foreach (var item
in this.GetType().GetProperties())
53 OnPropertyChanged(item.Name);
79 var pi = Core.FieldManager.PropertyInfoManager.GetRegisteredProperty(
Model.GetType(),
PropertyName);
80 return pi.FriendlyName;
98 var result =
string.Empty;
99 if (
Model is Core.BusinessBase obj)
114 var result =
string.Empty;
115 if (
Model is Core.BusinessBase obj)
130 var result =
string.Empty;
131 if (
Model is Core.BusinessBase obj)
146 if (
Model is Security.IAuthorizeReadWrite obj)
162 if (
Model is Security.IAuthorizeReadWrite obj)
178 if (
Model is Core.BusinessBase obj)
190 private void OnPropertyChanged(
string propertyName)
192 PropertyChanged?.Invoke(
this,
new PropertyChangedEventArgs(propertyName));
Exposes metastate for a property.
PropertyInfo(object model, string propertyName)
Creates an instance of the type.
string ErrorText
Gets the validation error messages for a property on the Model
bool IsBusy
Gets a value indicating whether the property on the Model is busy
bool CanRead
Gets a value indicating whether the current user is authorized to read the property on the Model
object Model
Gets the model
bool CanWrite
Gets a value indicating whether the current user is authorized to change the property on the Model
string InformationText
Gets the validation information messages for a property on the Model
string WarningText
Gets the validation warning messages for a property on the Model
string PropertyName
Gets the property name for the property.
PropertyChangedEventHandler PropertyChanged
Event raised when a property changes.
object Value
Gets or sets the value of the property
void Refresh()
Indicate that all properties have changed to trigger a UI refresh of all values.
string FriendlyName
Gets the friendly name for the property.
Exposes metastate for a property.
RuleSeverity
Values for validation rule severities.
CallType
Valid options for calling a property or method via the Csla.Utilities.CallByName method.