|
@@ -0,0 +1,156 @@
|
|
|
+<Window x:Class="Saga.PlugIn.VerticalPipeCheck.WinVecticalPipeCheck"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:local="clr-namespace:Saga.PlugIn.ModelCheck"
|
|
|
+ xmlns:gif="https://github.com/XamlAnimatedGif/XamlAnimatedGif"
|
|
|
+ mc:Ignorable="d" Title="立管检查" WindowStartupLocation="CenterScreen"
|
|
|
+ ResizeMode="NoResize" SizeToContent="WidthAndHeight"
|
|
|
+ Height="Auto" Width="600">
|
|
|
+ <Window.Resources>
|
|
|
+ <local:ItemImageVisibleConverter x:Key="ItemImageEqualVisibleConverter" IsEqualCollapsed="True"></local:ItemImageVisibleConverter>
|
|
|
+ <local:ItemImageVisibleConverter x:Key="ItemImageUnEqualVisibleConverter" IsEqualCollapsed="False"></local:ItemImageVisibleConverter>
|
|
|
+ <local:ItemImageConverter x:Key="ItemImageConverter" ></local:ItemImageConverter>
|
|
|
+ </Window.Resources>
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="Auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="Auto"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <StackPanel>
|
|
|
+ <Label Margin="10,10,0,0" Content="请选择相邻两层模型,进行立管连接检查"></Label>
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="100"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="100"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="10" ></RowDefinition>
|
|
|
+ <RowDefinition Height="25" ></RowDefinition>
|
|
|
+ <RowDefinition Height="10" ></RowDefinition>
|
|
|
+ <RowDefinition Height="25"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Image Grid.Row="1" Grid.Column="0"
|
|
|
+ Source="../Image/上一层.png"></Image>
|
|
|
+ <TextBox Grid.Row="1" Grid.Column="1" Name="TxtUpPath"
|
|
|
+ Text="{Binding Path=UpFilePath,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"></TextBox>
|
|
|
+ <Button Grid.Row="1" Grid.Column="2" Click="BtnSelectFileUp_OnClick" Content="选择"
|
|
|
+ Margin="10,0,5,0"></Button>
|
|
|
+ <Image Grid.Row="3" Grid.Column="0"
|
|
|
+ Source="../Image/下一层.png"></Image>
|
|
|
+ <TextBox Grid.Row="3" Grid.Column="1" Name="TxtDownPath"
|
|
|
+ Text="{Binding Path=DownFilePath,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"></TextBox>
|
|
|
+ <Button Grid.Row="3" Grid.Column="2" Click="BtnSelectFileDown_OnClick" Content="选择"
|
|
|
+ Margin="10,0,5,0"></Button>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <!--虚线-->
|
|
|
+ <Line X1="10" Y1="15" X2="590" Y2="15" StrokeDashArray="3" Stroke="LightGray" StrokeThickness="2"></Line>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0" Visibility="{Binding Path=ModelCheckState,
|
|
|
+ Converter={StaticResource ItemImageUnEqualVisibleConverter},
|
|
|
+ ConverterParameter={x:Static local:ModelCheckState.Prepare}}">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="40"></RowDefinition>
|
|
|
+ <RowDefinition Height="40"></RowDefinition>
|
|
|
+ <RowDefinition Height="60"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0" Margin="5,8,0,2">
|
|
|
+ <Label Margin="10,0,0,0" Content="检查结果储存位置:" VerticalAlignment="Center" Foreground="LightGray"></Label>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1" Margin="5,3,0,8">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="100"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBox Margin="10,0,0,0" VerticalContentAlignment="Center" Height="25"
|
|
|
+ Name="txtPath"
|
|
|
+ Text="{Binding Path=SaveDir,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
|
|
|
+ VerticalAlignment="Center"></TextBox>
|
|
|
+ <Button Grid.Column="1" Content="浏览" Height="25" Margin="10,0,5,0"
|
|
|
+ Click="SelectDir_OnClick"></Button>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2" Background="LightGray">
|
|
|
+ <Button Width="100" Height="25" Background="Black" Foreground="White" Content="开始检查"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,0,5,0" VerticalAlignment="Center"
|
|
|
+ Command="{Binding Path=Commands.Execute}"
|
|
|
+ CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window,Mode=FindAncestor}}"
|
|
|
+ ></Button>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1" Visibility="{Binding Path=ModelCheckState,
|
|
|
+ Converter={StaticResource ItemImageUnEqualVisibleConverter},
|
|
|
+ ConverterParameter={x:Static local:ModelCheckState.Progress}}">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="40"></RowDefinition>
|
|
|
+ <RowDefinition Height="60"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0" Margin="5,0">
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1" Margin="15,0">
|
|
|
+ <Image Height="15" gif:AnimationBehavior.SourceUri="../Image/进度条.gif" />
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2" Background="LightGray">
|
|
|
+ <Button Width="100" Height="25"
|
|
|
+ Content="检查中..." IsEnabled="False"
|
|
|
+ HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Center"
|
|
|
+ ></Button>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2" Visibility="{Binding Path=ModelCheckState,
|
|
|
+ Converter={StaticResource ItemImageUnEqualVisibleConverter},
|
|
|
+ ConverterParameter={x:Static local:ModelCheckState.Ending}}">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="40"></RowDefinition>
|
|
|
+ <RowDefinition Height="60"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0" Margin="5,0">
|
|
|
+ <Label Content="当前校验结果:" VerticalAlignment="Center" Foreground="LightGray"></Label>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1" Margin="5,0">
|
|
|
+ <TextBlock Margin="10,0" Height="30" Text="{Binding Path=SavePath}"
|
|
|
+ VerticalAlignment="Center"></TextBlock>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2" Background="LightGray">
|
|
|
+ <Button Width="120" Height="25" Background="White" Foreground="Black" Content="打开文件位置"
|
|
|
+ HorizontalAlignment="Right" Margin="0,0,115,0" VerticalAlignment="Center"
|
|
|
+ Command="{Binding Path=Commands.Execute}"
|
|
|
+ ></Button>
|
|
|
+ <Button Width="100" Height="25" Background="Black" Foreground="White" Content="继续检查"
|
|
|
+ HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Center"
|
|
|
+ Click="ButtonNext_OnClick" ></Button>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+</Window>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|