f903f80433
-cambio versione -introdotto finestre EgtMessageBox e EgtManageDialog al posto di quello di Windows -spostato immagni in dizionario -aggiunto messaggi
156 lines
7.8 KiB
XML
156 lines
7.8 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:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
|
Height="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}">
|
|
<Grid.Resources>
|
|
<OPTIMIZER:StrategyTypeToFocusableConverter x:Key="StrategyTypeToFocusableConverter"/>
|
|
</Grid.Resources>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Command="{Binding ConfigurationParametersCommand}"
|
|
ToolTip="Parametri Configurazione"
|
|
Style="{StaticResource ConfigurationParameters_Button}">
|
|
<Image Source="{StaticResource Adjustment_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
<StackPanel Grid.Column="1"
|
|
Style="{StaticResource StrategyManager_StackPanel}">
|
|
<ComboBox ItemsSource="{Binding StrategyTypeList}"
|
|
SelectedItem="{Binding SelStrategyType}"
|
|
Visibility="{Binding StrategyType_Visibility}"
|
|
Style="{StaticResource StrategyManager_ComboBox}"/>
|
|
<CheckBox IsChecked="{Binding DefaultConfig_IsChecked}"
|
|
Style="{StaticResource FreeContourInput_CheckBox}"/>
|
|
<ComboBox ItemsSource="{Binding StrategySetupList}"
|
|
SelectedItem="{Binding SelStrategySetup}"
|
|
DisplayMemberPath="sName"
|
|
Style="{StaticResource Strategy_ComboBox}"/>
|
|
<Button Command="{Binding New_Command}"
|
|
ToolTip="{Binding NewToolTip}"
|
|
Style="{StaticResource ConfigurationParameters_Button}">
|
|
<Image Source="{StaticResource NewDocument_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
<Button Command="{Binding OpenFileNameCustomConfigCommand}"
|
|
ToolTip="{Binding SaveAsToolTip}"
|
|
Style="{StaticResource ConfigurationParameters_Button}">
|
|
<Image Source="{StaticResource Plus_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
<Button Command="{Binding SaveCommand}"
|
|
ToolTip="{Binding SaveToolTip}"
|
|
Style="{StaticResource SaveOptionPanel_Button}">
|
|
<Image Source="{Binding SaveImage}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Grid.RowSpan="2"
|
|
Style="{StaticResource StrategyManager_Border}">
|
|
<TreeView Name="StrategyFeature_TreeView"
|
|
Height="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType={x:Type Border}}}"
|
|
ItemsSource="{Binding SelStrategySetup.StrategyFeatureList}"
|
|
Style="{StaticResource StrategyManager_TreeView}">
|
|
<TreeView.Resources>
|
|
<HierarchicalDataTemplate DataType="{x:Type OPTIMIZER:StrategyFeature}"
|
|
ItemsSource="{Binding TopologyList}">
|
|
<CheckBox IsChecked="{Binding RelativeSource={RelativeSource AncestorType=TreeViewItem}, Path=IsExpanded}">
|
|
<CheckBox.Template>
|
|
<ControlTemplate>
|
|
<Border Background="{Binding Background, RelativeSource={RelativeSource AncestorType={x:Type TreeView}}}">
|
|
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
|
<TextBlock Text="["
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding nGrp}"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="-"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding nPrcDesc}"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="]"
|
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
|
<TextBlock Text="{Binding sName}"
|
|
Style="{StaticResource StrategyManager_TextBlock}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</CheckBox.Template>
|
|
</CheckBox>
|
|
</HierarchicalDataTemplate>
|
|
<DataTemplate DataType="{x:Type OPTIMIZER: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}"/>
|
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/>
|
|
<Setter Property="Focusable" Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource StrategyTypeToFocusableConverter}}"/>
|
|
</Style>
|
|
</TreeView.ItemContainerStyle>
|
|
</TreeView>
|
|
</Border>
|
|
|
|
<OPTIMIZER:StrategyV Grid.Column="1"
|
|
Grid.RowSpan="2"
|
|
Height="{Binding ActualHeight, ElementName=StrategyFeature_TreeView}"/>
|
|
|
|
<Grid Grid.Column="2"
|
|
Grid.RowSpan="2"
|
|
Height="{Binding ActualHeight, ElementName=StrategyFeature_TreeView}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.93*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox x:Name="GR"
|
|
Style="{StaticResource ProjectParameters_GroupBox}">
|
|
<GroupBox.Header>
|
|
<TextBlock Text="{Binding SelTreeItem.SelParamStrategy.sStrategyName}"
|
|
Style="{StaticResource StrategyName_TextBlock}"/>
|
|
</GroupBox.Header>
|
|
<OPTIMIZER:ParameterStrategyV Tag="{Binding SelTreeItem.SelParamStrategy}"/>
|
|
</GroupBox>
|
|
|
|
<Border Grid.Row="1"
|
|
Height="{Binding ActualHeight, ElementName=GR}"
|
|
Style="{StaticResource Name_Border}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="{Binding SelTreeItem.sName}"
|
|
Style="{StaticResource TreeItemName_TextBlock}"/>
|
|
<Image Grid.Row="1"
|
|
Source="{Binding SelTreeItem.sImage}"
|
|
Style="{StaticResource StrategyManager_Image}"/>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid> |