Commit bdb5c1c7 by liulongfei

重启viz引擎修改

parent fef7abe6
......@@ -56,14 +56,18 @@
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">
<fcommon:IconButton Icon="/VIZ.Package.Module.Resource;component/Icons/preview_refresh_32x32.png"
ToolTip="重启预览引擎"
IsEnabled="{Binding Path=IsVizPreviewRefreshEnabled}"
Style="{StaticResource IconButton_Menu_Mask}" Margin="0,0,40,0"
IconWidth="16" IconHeight="16" Height="30" Width="30"
Command="{Binding Path=RestartPreviewCommand}"></fcommon:IconButton>
<Menu IsEnabled="{Binding Path=IsVizPreviewRefreshEnabled}">
<MenuItem Header="VIZ引擎">
<MenuItem Header="重启预览引擎"
Command="{Binding Path=RestartPreviewCommand}">
<MenuItem.Icon>
<Image Width="14" Height="14" Source="/VIZ.Package.Module.Resource;component/Icons/preview_refresh_32x32.png"></Image>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
<CheckBox Content="TA" Style="{StaticResource CheckBox_Preview_TA}" Margin="5,0,0,0"
<CheckBox Content="TA" Style="{StaticResource CheckBox_Preview_TA}" Margin="50,0,0,0"
ToolTip="Title Safe"
IsChecked="{Binding Path=IsShowTS,Mode=TwoWay}">
</CheckBox>
......
......@@ -288,6 +288,9 @@ namespace VIZ.Package.Module
/// </summary>
private void RestartPreview()
{
if (DXMessageBox.Show("是否重启Viz预览引擎?", "提示", MessageBoxButton.YesNo) != MessageBoxResult.Yes)
return;
// 设置预览引擎未准备完毕
ApplicationDomainEx.IsVizPreviewReadly = false;
this.IsVizPreviewReadly = false;
......
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