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();
|
}
|
}
|
}
|