using CommunityToolkit.Mvvm.ComponentModel; using NationalInstruments.TestStand.Interop.API; using Plugin.SeqEditor.Entity; using Plugin.SeqEditor.Util; using System.ComponentModel; using System.Windows.Controls; namespace Plugin.SeqEditor.SettingPanel { /// /// CommonProperty.xaml 的交互逻辑 /// [INotifyPropertyChanged] public partial class CallSeqPanel : UserControl { public event EventHandler SettingChanged; public StepUI stepUI; public Step step; public PropertyObject propertyObject; protected void CustomPropertyChanged(string name) { OnPropertyChanged(name); SettingChanged?.Invoke(this, EventArgs.Empty); } public CallSeqPanel(StepUI stepUI) { this.stepUI = stepUI; this.step = stepUI.step; propertyObject = this.step?.AsPropertyObject(); this.DataContext = stepUI; InitializeComponent(); CbRunMode.ItemsSource = RunModeData.ItemSource; //CbAdapter.ItemsSource = StepAdapterData.ItemSource; } } }