using System; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace JY.Inspection.ViewModel { public class ObservableObject : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged([CallerMemberName] string propertyName = null) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } public class FrmMesSettingVM : ObservableObject { private string stationArrivalUrl; /// /// Mes电池进站接口地址 /// public string StationArrivalUrl { get { return stationArrivalUrl; } set { stationArrivalUrl = value; OnPropertyChanged(); } } private string stationExitUrl; /// /// Mes电池出站接口地址 /// public string StationExitUrl { get { return stationExitUrl; } set { stationExitUrl = value; OnPropertyChanged(); } } private string loginMesUrl; /// /// Mes登录接口地址 /// public string LoginMesUrl { get { return loginMesUrl; } set { loginMesUrl = value; OnPropertyChanged(); } } private string equipAlarmUrl; /// /// 设备报警接口地址 /// public string EquipAlarmUrl { get { return equipAlarmUrl; } set { equipAlarmUrl = value; OnPropertyChanged(); } } private string productType; /// /// 产品型号 /// public string ProductType { get { return productType; } set { productType = value; OnPropertyChanged(); } } } }