Commit b0477eab by liulongfei

添加算法重启调试按钮

parent f899c197
......@@ -45,12 +45,17 @@
</Grid.ColumnDefinitions>
<!-- 调试 -->
<!-- =================================================================================================== -->
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" Grid.ColumnSpan="2">
<TextBlock Text="调试信息 -- " Foreground="Red" FontSize="16" Opacity="0.86"></TextBlock>
<TextBlock Text="视图状态:" Foreground="Red" FontSize="16" Margin="10,0,0,0" Opacity="0.86"></TextBlock>
<TextBlock Foreground="Red" FontSize="16" Margin="10,0,0,0"
<fcommon:DebugBorder VerticalAlignment="Top" Grid.ColumnSpan="2">
<StackPanel Orientation="Horizontal">
<Button Width="60" Height="30" Margin="0,0,30,0" Content="算法重启"
IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter_SettingButton}}"
Command="{Binding RestartCommand}"></Button>
<TextBlock Text="调试信息 -- " Foreground="Red" FontSize="16" Opacity="0.86" VerticalAlignment="Center"></TextBlock>
<TextBlock Text="视图状态:" Foreground="Red" FontSize="16" Margin="10,0,0,0" Opacity="0.86" VerticalAlignment="Center"></TextBlock>
<TextBlock Foreground="Red" FontSize="16" Margin="10,0,0,0" VerticalAlignment="Center"
Text="{Binding ViewStatus}"></TextBlock>
</StackPanel>
</StackPanel>
</fcommon:DebugBorder>
<!-- =================================================================================================== -->
<!-- 标题 -->
......
......@@ -57,6 +57,7 @@ namespace VIZ.H2V.Module
this.LoadedCommand = new VCommand(this.Loaded);
this.SettingCommand = new VCommand<string>(this.Setting);
this.DetectCommand = new VCommand(this.Detect);
this.RestartCommand = new VCommand(this.Restart);
}
/// <summary>
......@@ -606,6 +607,23 @@ namespace VIZ.H2V.Module
#endregion
#region RestartCommand -- 算法重启命令
/// <summary>
/// 算法重启命令
/// </summary>
public VCommand RestartCommand { get; set; }
/// <summary>
/// 算法重启
/// </summary>
private void Restart()
{
this.UpdateModeAsync(true);
}
#endregion
// ======================================================================================
// === Service ===
// ======================================================================================
......
; ============================================================
; === Application ===
; ============================================================
[Application]
;是否是调试模式
APPLICATION_IS_DEBUG=true
; ============================================================
; === Video ===
; ============================================================
[Video]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment