12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <Window x:Class="MeterVision.Patch.AddCompDlg"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:MeterVision.Patch"
- mc:Ignorable="d"
- Background="WhiteSmoke"
- ResizeMode="NoResize"
- ShowInTaskbar="False"
- WindowStartupLocation="CenterOwner"
- Title="选择要比较的批量任务" Height="800" Width="400">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="40" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="1" Background="White" Margin="10 10 10 0">
- <StackPanel Margin="20" VerticalAlignment="Top">
- <TextBlock Text="注意:先选择新任务,再选择时间小于新任务的任务,新旧任务必须来源与一个模板"
- Foreground="Red" Margin="0 0 0 10" TextWrapping="Wrap"/>
- <TextBlock Text="选择新的批量任务:" FontSize="14px" Foreground="#333333" HorizontalAlignment="Left" VerticalAlignment="Center" />
- <!--<TextBox x:Name="txtNPatchName" Text="" FontSize="14" Margin="0,5,0,10" Padding="2" />-->
- <!--<ComboBox x:Name="cmbNPatch" FontSize="14px" Foreground="#000000" DisplayMemberPath="StandName2"
- SelectionChanged="CmbNPatch_SelectionChanged"
- Margin="0,5,0,10" Padding="2"/>-->
- <ComboBox x:Name="cmbNPatch" FontSize="14px" Foreground="#000000" DisplayMemberPath="PatchNameAndTime"
- SelectionChanged="CmbNPatch_SelectionChanged"
- Margin="0,5,0,20" Padding="2">
- <!--<ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock>
- <Run Text="{Binding PatchName}" />
- <Run Text=" - " />
- <Run Text="{Binding CreateTime}" />
- </TextBlock>
- </DataTemplate>
- </ComboBox.ItemTemplate>-->
- </ComboBox>
- <TextBlock Text="选择旧的批量任务:" FontSize="14px" Foreground="#333333" HorizontalAlignment="Left" VerticalAlignment="Center" />
- <ComboBox x:Name="cmbOPatch" FontSize="14px" Foreground="#000000" DisplayMemberPath="PatchNameAndTime"
- SelectionChanged="CmbOPatch_SelectionChanged"
- Margin="0,5,0,0" Padding="2"/>
- <ListView x:Name="lvNPatch" Width="300" Height="200">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Name" DisplayMemberBinding="{Binding PatchName}" />
- <GridViewColumn Header="Age" DisplayMemberBinding="{Binding CreateTime}" />
- </GridView>
- </ListView.View>
- <!--<ListView.Items>
- <ListViewItem>
- <TextBlock Text="Alice" />
- </ListViewItem>
- <ListViewItem>
- <TextBlock Text="Bob" />
- </ListViewItem>
- <ListViewItem>
- <TextBlock Text="Charlie" />
- </ListViewItem>
- </ListView.Items>-->
- </ListView>
- </StackPanel>
- </Border>
-
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
- <Button Name="btnOK" Content="确定" HorizontalAlignment="Center" Margin="0 0 20 0"
- VerticalAlignment="Center" Width="80" Height="26" Click="BtnOK_Click" />
- <Button Name="btnClose" Content="取消" HorizontalAlignment="Center"
- VerticalAlignment="Center" Width="80" Height="26" Click="BtnClose_Click" />
- </StackPanel>
- </Grid>
- </Window>
|