using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BPA.Helper; using System.Collections.ObjectModel; namespace BPASmartClient.DosingSystem { public class ViewModelBase : NotifyBase { public int Index { get; set; } = -1; public RelayCommand AddCommand { get; set; }//添加 public RelayCommand CancelCommand { get; set; }//取消 public RelayCommand SaveCommand { get; set; }//保存 public RelayCommand RemoveCommand { get; set; }//移除 public RelayCommand DetailsCommand { get; set; }//编辑 /// /// 错误信息 /// public string ErrorInfo { get { return _mErrorInfo; } set { _mErrorInfo = value; OnPropertyChanged(); } } private string _mErrorInfo = string.Empty; } }