8a73b3cab8
-introdotto crea customconfig json
111 lines
4.5 KiB
XML
111 lines
4.5 KiB
XML
<Grid x:Class="StrategyManagerV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Optmizer="clr-namespace:EgtBEAMWALL.Optimizer">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TreeView Grid.RowSpan="2"
|
|
Width="300"
|
|
Height="900"
|
|
ItemsSource="{Binding AvailableStrategyList}">
|
|
<TreeView.Resources>
|
|
<HierarchicalDataTemplate DataType="{x:Type Optmizer:AvailableStrategy}"
|
|
ItemsSource="{Binding TopologyList}">
|
|
<StackPanel Style="{StaticResource OnlyProdPartManager_StackPanel}">
|
|
<TextBlock Text="{Binding sName}" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding nGRP}" Style="{StaticResource DialogWindow_TextBlock}" Margin="5,0,0,0"/>
|
|
<TextBlock Text="{Binding nPRC}" Style="{StaticResource DialogWindow_TextBlock}" Margin="0,0,5,0"/>
|
|
</StackPanel>
|
|
</HierarchicalDataTemplate>
|
|
<DataTemplate DataType="{x:Type Optmizer:Topology}">
|
|
<TextBlock Text="{Binding sName}" Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</DataTemplate>
|
|
</TreeView.Resources>
|
|
<TreeView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
|
|
</Style>
|
|
</TreeView.ItemContainerStyle>
|
|
</TreeView>
|
|
|
|
<Grid Grid.Column="1"
|
|
Grid.RowSpan="2"
|
|
Width="900"
|
|
Height="900">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ListBox ItemsSource="{Binding DeactivateStrategyList, Mode=TwoWay}"
|
|
SelectedItem="{Binding SelectedStrategy, Mode=TwoWay}"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
Style="{StaticResource NewAddFeature_ListBox}">
|
|
<ListBox.Resources>
|
|
<DataTemplate DataType="{x:Type Optmizer:StrategyConfiguration}">
|
|
<TextBlock Text="{Binding sStrategyID}"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</DataTemplate>
|
|
</ListBox.Resources>
|
|
</ListBox>
|
|
|
|
<StackPanel Grid.Column="1"
|
|
Orientation="Vertical"
|
|
Background="White"
|
|
Width="100"
|
|
VerticalAlignment="Center">
|
|
<Button Content="→"
|
|
Command="{Binding AddSelectedStrategyCommand}"/>
|
|
<Button Content="←"
|
|
Command="{Binding RemoveSelectedStrategyCommand}"/>
|
|
</StackPanel>
|
|
|
|
<ListBox Grid.Column="2"
|
|
ItemsSource="{Binding ActiveStrategyList, Mode=TwoWay}"
|
|
SelectedItem="{Binding SelectedActiveStrategy, Mode=TwoWay}"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
Style="{StaticResource NewAddFeature_ListBox}">
|
|
<ListBox.Resources>
|
|
<DataTemplate DataType="{x:Type Optmizer:StrategyConfiguration}">
|
|
<TextBlock Text="{Binding sStrategyID}"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
</DataTemplate>
|
|
</ListBox.Resources>
|
|
</ListBox>
|
|
</Grid>
|
|
|
|
<ItemsControl Grid.Column="2" Foreground="Black"
|
|
Width="900"
|
|
ItemsSource="{Binding SelectedStrategy.ParameterList}">
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type Optmizer:GenericParameter}">
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="{Binding sName}" HorizontalAlignment="Left"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBox Text="{Binding sValue}"
|
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
|
</UniformGrid>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<StackPanel Grid.Row="1"
|
|
Grid.Column="2"
|
|
Width="900"
|
|
Background="Blue"/>
|
|
</Grid>
|