123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <Window x:Class="PRSDesktop.V6ProjectImport"
- 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:PRSDesktop"
- xmlns:system="clr-namespace:System;assembly=System.Runtime"
- xmlns:classes="clr-namespace:Comal.Classes;assembly=PRSClasses"
- xmlns:wpf="clr-namespace:InABox.WPF;assembly=InABox.Wpf"
- xmlns:dynamicGrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
- mc:Ignorable="d"
- Title="Import from V6" Height="600" Width="1200" WindowStartupLocation="CenterScreen">
-
- <Window.Resources>
- <wpf:EnumToStringConverter x:Key="EnumToStringConverter" />
-
- <ObjectDataProvider x:Key="V6ImportDesigns" MethodName="GetValues"
- ObjectType="{x:Type system:Enum}">
- <ObjectDataProvider.MethodParameters>
- <x:Type TypeName="classes:V6ImportDesigns"/>
- </ObjectDataProvider.MethodParameters>
- </ObjectDataProvider>
-
- <ObjectDataProvider x:Key="V6ImportParts" MethodName="GetValues"
- ObjectType="{x:Type system:Enum}">
- <ObjectDataProvider.MethodParameters>
- <x:Type TypeName="classes:V6ImportCosts"/>
- </ObjectDataProvider.MethodParameters>
- </ObjectDataProvider>
-
- </Window.Resources>
-
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="40"/>
- </Grid.RowDefinitions>
- <local:V6ProjectImportGrid
- x:Name="Projects"
- OnSelectItem="Projects_OnOnSelectItem"/>
- <DockPanel
- Grid.Row="1"
- Margin="0,5,0,0"
- LastChildFill="False">
- <Button
- DockPanel.Dock="Right"
- Content="Cancel"
- Margin="5,0,0,0"
- Width="80"
- Click="Cancel_Click"/>
- <Button
- x:Name="Ok"
- DockPanel.Dock="Right"
- Margin="5,0,0,0"
- Width="80"
- Content="OK"
- IsEnabled="False"
- Click="OK_Click"/>
-
- <Label
- DockPanel.Dock="Left"
- Margin="5,0,0,0"
- Content = "Import Designs"
- VerticalContentAlignment="Center"/>
- <ComboBox
- x:Name="ImportDesigns"
- DockPanel.Dock="Left"
- VerticalAlignment="Center"
- Width="130"
- Margin="5,0,0,0"
- ItemsSource="{Binding Source={StaticResource V6ImportDesigns}}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <Label Content="{Binding ., Converter={StaticResource EnumToStringConverter}}" />
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
-
- <Label
- DockPanel.Dock="Left"
- Content = "Import Costs"
- Margin="5,0,0,0"
- VerticalContentAlignment="Center"/>
- <ComboBox
- x:Name="ImportCosts"
- DockPanel.Dock="Left"
- VerticalAlignment="Center"
- Width="130"
- Margin="5,0,0,0"
- ItemsSource="{Binding Source={StaticResource V6ImportParts}}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <Label Content="{Binding ., Converter={StaticResource EnumToStringConverter}}" />
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
-
- </DockPanel>
-
- </Grid>
- </Window>
|