alielie
7 天以前 e57938fbda9bff702004038f76d009422968bff5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using DeviceService.Device;
using System.Windows.Controls;
 
namespace DeviceService;
 
/// <summary>
/// CanDevice 的配置控件。命名规则:设备类型名 CanDevice + ConfigControl。
/// DataContext 由 MainWindow 注入为对应的 IDevice 实例。
/// </summary>
public partial class CanDeviceConfigControl : UserControl
{
    public CanDeviceConfigControl()
    {
        InitializeComponent();
        DataContext = new CanDevice();
    }
}