This commit is contained in:
@@ -8,7 +8,7 @@ using MembranePoreTester.Services;
|
||||
|
||||
namespace MembranePoreTester.ViewModels
|
||||
{
|
||||
public partial class MainViewModel : ViewModelBase
|
||||
public partial class ParameterViewModel : ViewModelBase
|
||||
{
|
||||
private readonly IHardwareService _hardwareService;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace MembranePoreTester.ViewModels
|
||||
[ObservableProperty]
|
||||
private SolidColorBrush _statusColor = new SolidColorBrush(Colors.Red);
|
||||
|
||||
public MainViewModel()
|
||||
public ParameterViewModel()
|
||||
{
|
||||
// 注入硬件服务(实际项目中可用依赖注入)
|
||||
_hardwareService = new HardwareService();
|
||||
|
||||
Reference in New Issue
Block a user