diff --git a/Database.cs b/Database.cs index 47722dc..b545ff6 100644 --- a/Database.cs +++ b/Database.cs @@ -666,6 +666,49 @@ namespace FAtoPA } } + class FSMConditionVX : INotifyPropertyChanged + { + private string _condition; + public string Condition + { + get => _condition; + set + { + if (_condition != value) + { + _condition = value; + OnPropertyChanged(nameof(Condition)); + } + } + } + + private short _status; + public short Status + { + get { return _status; } + set + { + if (_status != value) + { + _status = value; + OnPropertyChanged(nameof(Status)); + } + } + } + + public FSMConditionVX(string condition,short status) + { + this._condition = condition; + this._status = status; + } + + public event PropertyChangedEventHandler PropertyChanged; + protected void OnPropertyChanged(string propertyName) + { + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); + } + } + class VXData : INotifyPropertyChanged { private String _siid; diff --git a/MainWindow.xaml b/MainWindow.xaml index 141636b..5db0960 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -182,8 +182,8 @@ -