alielie
2026-03-02 12e606635c42ea20f4b7c2bdda5204237a4b4c96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
{
    /// <summary>
    /// CommonProperty.xaml 的交互逻辑
    /// </summary>
    [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;
        }
    }
}