更改
This commit is contained in:
@@ -244,6 +244,8 @@ namespace OrpaonEMS.App.ViewModels
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private DelegateCommand _PcsSendPwBtnCmd;
|
private DelegateCommand _PcsSendPwBtnCmd;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// PCS 手动发送功率操作
|
/// PCS 手动发送功率操作
|
||||||
@@ -310,6 +312,36 @@ namespace OrpaonEMS.App.ViewModels
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private DelegateCommand _BmsResetBtnCmd;
|
||||||
|
/// <summary>
|
||||||
|
/// Bms复位操作
|
||||||
|
/// </summary>
|
||||||
|
public DelegateCommand BmsResetBtnCmd
|
||||||
|
{
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_BmsResetBtnCmd = value;
|
||||||
|
}
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (_BmsResetBtnCmd == null)
|
||||||
|
{
|
||||||
|
_BmsResetBtnCmd = new DelegateCommand(() => BmsResetBtnCmdMethod());
|
||||||
|
}
|
||||||
|
return _BmsResetBtnCmd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bms复位操作 执行方法
|
||||||
|
/// </summary>
|
||||||
|
private async Task BmsResetBtnCmdMethod()
|
||||||
|
{
|
||||||
|
bmsDataService.BmsAlarmReset();
|
||||||
|
await Task.CompletedTask;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private DelegateCommand _PcsGridConBtnCmd;
|
private DelegateCommand _PcsGridConBtnCmd;
|
||||||
|
|||||||
@@ -260,7 +260,7 @@
|
|||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Width="120"
|
Width="120"
|
||||||
Margin="10"
|
Margin="10"
|
||||||
Command="{Binding PcsLocationBtnCmd}"
|
Command="{Binding BmsResetBtnCmd}"
|
||||||
Foreground="White">
|
Foreground="White">
|
||||||
Bms复位
|
Bms复位
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user