alielie
2026-09-10 9ec80cafc23f5ee3278cacce3c9f86f4087b435a
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
40
41
42
43
44
45
46
47
48
49
50
51
52
using CommunityToolkit.Mvvm.ComponentModel;
using OpenTap;
using OpenTap.Addin;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
 
namespace OpenTapEditor
{
    /// <summary>
    /// VariablesControl.xaml 的交互逻辑
    /// </summary>
    [ObservableObject]
    public partial class RunVariableControl : UserControl
    {
        public event EventHandler SequencePropertyChanged;
 
        public static DependencyProperty VariablesProperty = DependencyProperty.Register("Variables",
            typeof(ObservableCollection<RunningVar>),
            typeof(RunVariableControl),
            new PropertyMetadata(null));
 
        public event EventHandler<TestStepList> selectedSequenceChanged;
        public event EventHandler<TestStepList> SelectedSequenceChanged
        {
            add
            {
                selectedSequenceChanged += value;
            }
 
            remove
            {
                selectedSequenceChanged -= value;
            }
        }
 
        public ObservableCollection<RunningVar> Variables
        {
            get => (ObservableCollection<RunningVar>)GetValue(VariablesProperty);
            set
            {
                SetValue(VariablesProperty, value);
            }
        }
 
        public RunVariableControl()
        {
            DataContext = this;
            InitializeComponent();
        }
    }
}