设备编辑管理界面
This commit is contained in:
@@ -18,6 +18,7 @@ namespace MainModule.ViewModels
|
||||
#region 私有字段
|
||||
private string _testStatus;
|
||||
private readonly IScopedProvider _scope;
|
||||
private bool IsInitialized =false;
|
||||
#endregion
|
||||
|
||||
#region 属性
|
||||
@@ -119,7 +120,11 @@ namespace MainModule.ViewModels
|
||||
#region 命令处理与事件
|
||||
private async Task OnLoad()
|
||||
{
|
||||
await _deviceManager.ConnectAllDevices();
|
||||
if (!IsInitialized)
|
||||
{
|
||||
await _deviceManager.ConnectAllDevices();
|
||||
IsInitialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnRefresh()
|
||||
|
||||
Reference in New Issue
Block a user