using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Toolkit.Mvvm.ComponentModel; using Microsoft.Toolkit.Mvvm.Input; namespace BPASmartClient.SmallBatchingSystem { public class BaseModel : ObservableObject { 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; } }