| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System.ComponentModel;
- namespace SWRIS.Models
- {
- public class SwitchInstanceDataModel : INotifyPropertyChanged
- {
- private string instanceName;
- private string progressName;
- private string imageSource;
- public string InstanceName
- {
- get => instanceName;
- set
- {
- instanceName = value;
- OnPropertyChanged(nameof(InstanceName));
- }
- }
- public string ProgressName
- {
- get => progressName;
- set
- {
- progressName = value;
- OnPropertyChanged(nameof(ProgressName));
- }
- }
- public string ImageSource
- {
- get => imageSource;
- set
- {
- imageSource = value;
- OnPropertyChanged(nameof(ImageSource));
- }
- }
- public event PropertyChangedEventHandler PropertyChanged;
- protected internal virtual void OnPropertyChanged(string propertyName)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
|