2017-05-09 19:38:45 +08:00
|
|
|
|
using rabi_splitter_WPF.Annotations;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
|
|
|
|
namespace rabi_splitter_WPF
|
|
|
|
|
{
|
|
|
|
|
public class VariableExportContext : INotifyPropertyChanged
|
|
|
|
|
{
|
|
|
|
|
private List<VariableExportSetting> _variableExportSettings;
|
|
|
|
|
|
|
|
|
|
public VariableExportContext()
|
|
|
|
|
{
|
2017-05-09 23:49:37 +08:00
|
|
|
|
_variableExportSettings = new List<VariableExportSetting>();
|
2017-05-09 19:38:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<VariableExportSetting> VariableExportSettings
|
|
|
|
|
{
|
|
|
|
|
get { return _variableExportSettings; }
|
|
|
|
|
}
|
2017-05-09 22:55:11 +08:00
|
|
|
|
|
2017-05-09 19:38:45 +08:00
|
|
|
|
internal void Add(VariableExportSetting ves)
|
|
|
|
|
{
|
|
|
|
|
_variableExportSettings.Add(ves);
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-09 22:55:11 +08:00
|
|
|
|
internal void Delete(VariableExportSetting ves)
|
|
|
|
|
{
|
|
|
|
|
_variableExportSettings.Remove(ves);
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-09 19:38:45 +08:00
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
|
|
|
|
|
|
[NotifyPropertyChangedInvocator]
|
|
|
|
|
protected virtual void OnPropertyChanged(string propertyName)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|