V6ProjectImport.xaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <Window x:Class="PRSDesktop.V6ProjectImport"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PRSDesktop"
  7. xmlns:system="clr-namespace:System;assembly=System.Runtime"
  8. xmlns:wpf="clr-namespace:InABox.WPF;assembly=InABox.Wpf"
  9. xmlns:v6="clr-namespace:PRSDesktop.Integations.V6"
  10. mc:Ignorable="d"
  11. Title="Import from V6" Height="600" Width="1200" WindowStartupLocation="CenterScreen">
  12. <Window.Resources>
  13. <wpf:EnumToStringConverter x:Key="EnumToStringConverter" />
  14. <ObjectDataProvider x:Key="V6ImportDesigns" MethodName="GetValues"
  15. ObjectType="{x:Type system:Enum}">
  16. <ObjectDataProvider.MethodParameters>
  17. <x:Type TypeName="v6:V6ImportDesigns"/>
  18. </ObjectDataProvider.MethodParameters>
  19. </ObjectDataProvider>
  20. <ObjectDataProvider x:Key="V6ImportParts" MethodName="GetValues"
  21. ObjectType="{x:Type system:Enum}">
  22. <ObjectDataProvider.MethodParameters>
  23. <x:Type TypeName="v6:V6ImportCosts"/>
  24. </ObjectDataProvider.MethodParameters>
  25. </ObjectDataProvider>
  26. </Window.Resources>
  27. <Grid Margin="5">
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="*"/>
  30. <RowDefinition Height="40"/>
  31. </Grid.RowDefinitions>
  32. <local:V6ProjectImportGrid
  33. x:Name="Projects"
  34. OnSelectItem="Projects_OnOnSelectItem"/>
  35. <DockPanel
  36. Grid.Row="1"
  37. Margin="0,5,0,0"
  38. LastChildFill="False">
  39. <Button
  40. DockPanel.Dock="Right"
  41. Content="Cancel"
  42. Margin="5,0,0,0"
  43. Width="80"
  44. Click="Cancel_Click"/>
  45. <Button
  46. x:Name="Ok"
  47. DockPanel.Dock="Right"
  48. Margin="5,0,0,0"
  49. Width="80"
  50. Content="OK"
  51. IsEnabled="False"
  52. Click="OK_Click"/>
  53. <Label
  54. DockPanel.Dock="Left"
  55. Margin="5,0,0,0"
  56. Content = "Import Designs"
  57. VerticalContentAlignment="Center"/>
  58. <ComboBox
  59. x:Name="ImportDesigns"
  60. DockPanel.Dock="Left"
  61. VerticalAlignment="Center"
  62. Width="130"
  63. Margin="5,0,0,0"
  64. ItemsSource="{Binding Source={StaticResource V6ImportDesigns}}">
  65. <ComboBox.ItemTemplate>
  66. <DataTemplate>
  67. <Label Content="{Binding ., Converter={StaticResource EnumToStringConverter}}" />
  68. </DataTemplate>
  69. </ComboBox.ItemTemplate>
  70. </ComboBox>
  71. <Label
  72. DockPanel.Dock="Left"
  73. Content = "Import Costs"
  74. Margin="5,0,0,0"
  75. VerticalContentAlignment="Center"/>
  76. <ComboBox
  77. x:Name="ImportCosts"
  78. DockPanel.Dock="Left"
  79. VerticalAlignment="Center"
  80. Width="130"
  81. Margin="5,0,0,0"
  82. ItemsSource="{Binding Source={StaticResource V6ImportParts}}">
  83. <ComboBox.ItemTemplate>
  84. <DataTemplate>
  85. <Label Content="{Binding ., Converter={StaticResource EnumToStringConverter}}" />
  86. </DataTemplate>
  87. </ComboBox.ItemTemplate>
  88. </ComboBox>
  89. </DockPanel>
  90. </Grid>
  91. </Window>