using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace SlnMesnac.WPF.ViewModel { public class TechnologicalViewModel : INotifyPropertyChanged { /// /// 按钮文字转换事件 /// public event PropertyChangedEventHandler PropertyChanged = delegate { }; /// /// 显示工艺信息,需要讨论显示哪些数据 /// public TechnologicalViewModel() { Information1 = "001"; Information2 = "002"; Information3 = "003"; Information4 = "004"; Information5 = "005"; } #region 界面参数 /// /// 信息1 /// private string information1; public string Information1 { get { return information1; } set { information1 = value; OnPropertyChanged("Information1"); } } /// /// 信息2 /// private string information2; public string Information2 { get { return information2; } set { information2 = value; OnPropertyChanged("Information2"); } } /// /// 信息3 /// private string information3; public string Information3 { get { return information3; } set { information3 = value; OnPropertyChanged("Information3"); } } /// /// 信息4 /// private string information4; public string Information4 { get { return information4; } set { information4 = value; OnPropertyChanged("Information4"); } } /// /// 信息5 /// private string information5; public string Information5 { get { return information5;} set { information5 = value; OnPropertyChanged("Information5"); } } #endregion public void OnPropertyChanged([CallerMemberName] string propertyName = "") { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } }