AddCompDlg.xaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <Window x:Class="MeterVision.Patch.AddCompDlg"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MeterVision.Patch"
  7. mc:Ignorable="d"
  8. Background="WhiteSmoke"
  9. ResizeMode="NoResize"
  10. ShowInTaskbar="False"
  11. WindowStartupLocation="CenterOwner"
  12. Title="选择要比较的批量任务" Height="800" Width="400">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="*" />
  16. <RowDefinition Height="40" />
  17. </Grid.RowDefinitions>
  18. <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="1" Background="White" Margin="10 10 10 0">
  19. <StackPanel Margin="20" VerticalAlignment="Top">
  20. <TextBlock Text="注意:先选择新任务,再选择时间小于新任务的任务,新旧任务必须来源与一个模板"
  21. Foreground="Red" Margin="0 0 0 10" TextWrapping="Wrap"/>
  22. <TextBlock Text="选择新的批量任务:" FontSize="14px" Foreground="#333333" HorizontalAlignment="Left" VerticalAlignment="Center" />
  23. <!--<TextBox x:Name="txtNPatchName" Text="" FontSize="14" Margin="0,5,0,10" Padding="2" />-->
  24. <!--<ComboBox x:Name="cmbNPatch" FontSize="14px" Foreground="#000000" DisplayMemberPath="StandName2"
  25. SelectionChanged="CmbNPatch_SelectionChanged"
  26. Margin="0,5,0,10" Padding="2"/>-->
  27. <ComboBox x:Name="cmbNPatch" FontSize="14px" Foreground="#000000" DisplayMemberPath="PatchNameAndTime"
  28. SelectionChanged="CmbNPatch_SelectionChanged"
  29. Margin="0,5,0,20" Padding="2">
  30. <!--<ComboBox.ItemTemplate>
  31. <DataTemplate>
  32. <TextBlock>
  33. <Run Text="{Binding PatchName}" />
  34. <Run Text=" - " />
  35. <Run Text="{Binding CreateTime}" />
  36. </TextBlock>
  37. </DataTemplate>
  38. </ComboBox.ItemTemplate>-->
  39. </ComboBox>
  40. <TextBlock Text="选择旧的批量任务:" FontSize="14px" Foreground="#333333" HorizontalAlignment="Left" VerticalAlignment="Center" />
  41. <ComboBox x:Name="cmbOPatch" FontSize="14px" Foreground="#000000" DisplayMemberPath="PatchNameAndTime"
  42. SelectionChanged="CmbOPatch_SelectionChanged"
  43. Margin="0,5,0,0" Padding="2"/>
  44. <ListView x:Name="lvNPatch" Width="300" Height="200">
  45. <ListView.View>
  46. <GridView>
  47. <GridViewColumn Header="Name" DisplayMemberBinding="{Binding PatchName}" />
  48. <GridViewColumn Header="Age" DisplayMemberBinding="{Binding CreateTime}" />
  49. </GridView>
  50. </ListView.View>
  51. <!--<ListView.Items>
  52. <ListViewItem>
  53. <TextBlock Text="Alice" />
  54. </ListViewItem>
  55. <ListViewItem>
  56. <TextBlock Text="Bob" />
  57. </ListViewItem>
  58. <ListViewItem>
  59. <TextBlock Text="Charlie" />
  60. </ListViewItem>
  61. </ListView.Items>-->
  62. </ListView>
  63. </StackPanel>
  64. </Border>
  65. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
  66. <Button Name="btnOK" Content="确定" HorizontalAlignment="Center" Margin="0 0 20 0"
  67. VerticalAlignment="Center" Width="80" Height="26" Click="BtnOK_Click" />
  68. <Button Name="btnClose" Content="取消" HorizontalAlignment="Center"
  69. VerticalAlignment="Center" Width="80" Height="26" Click="BtnClose_Click" />
  70. </StackPanel>
  71. </Grid>
  72. </Window>