c5afe8df93
- aggiunta possibilità di minimizzare il programma - migliorata lettura parametri modificabili da Options - aggiunti anticipi accensione/spegnimento colla.
245 lines
13 KiB
XML
245 lines
13 KiB
XML
<UserControl x:Class="OptionsPageUC"
|
|
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"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="704" d:DesignWidth="1024" Initialized="OptionsPage_Initialized" Loaded="OptionsPage_Loaded" >
|
|
|
|
<!-- Chiamata al Dictionary -->
|
|
<UserControl.Resources>
|
|
<ResourceDictionary Source="SarmaxWallDictionary.xaml"/>
|
|
</UserControl.Resources>
|
|
|
|
<!-- Definizione della ImportPage -->
|
|
<Grid Name="OptionsPageGrid" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="7*"/>
|
|
<RowDefinition Height="3*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Definizione della Grid per opzioni macchina -->
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="4*"/>
|
|
<ColumnDefinition Width="4*"/>
|
|
<ColumnDefinition Width="4*"/>
|
|
<ColumnDefinition Width="3*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="2.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="3*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="MachineOptionsLbl" Grid.ColumnSpan="2" VerticalAlignment="Center" FontSize="15"
|
|
FontWeight="Bold" />
|
|
|
|
<!-- Definizione della Grid per caratteristiche incollaggio -->
|
|
<Border Grid.Column="0" Grid.Row="1" Grid.RowSpan="3" BorderThickness="1" BorderBrush="Black" CornerRadius="3"
|
|
Margin="1">
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="3*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="GlueingParametersLbl" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" FontWeight="Bold" />
|
|
<TextBlock Name="ExtraRawPartXLbl" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" TextWrapping="WrapWithOverflow" Width="180" TextAlignment="Center" />
|
|
<TextBox Name="ExtraRawPartXTxBx" Grid.Column="1" Grid.Row="1" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60"
|
|
TextAlignment="Right"/>
|
|
<TextBlock Name="ExtraRawPartYLbl" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" TextWrapping="WrapWithOverflow" Width="180" TextAlignment="Center" />
|
|
<TextBox Name="ExtraRawPartYTxBx" Grid.Column="1" Grid.Row="2" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60"
|
|
TextAlignment="Right"/>
|
|
<TextBlock Name="ExtraGlueLbl" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" TextWrapping="WrapWithOverflow" Width="180" TextAlignment="Center" />
|
|
<TextBox Name="ExtraGlueTxBx" Grid.Column="1" Grid.Row="3" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60"
|
|
TextAlignment="Right"/>
|
|
<TextBlock Name="OnAdvanceLbl" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" TextWrapping="WrapWithOverflow" Width="180" TextAlignment="Center" />
|
|
<TextBox Name="OnAdvanceTxBx" Grid.Column="1" Grid.Row="4" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60"
|
|
TextAlignment="Right"/>
|
|
<TextBlock Name="OffAdvanceLbl" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" TextWrapping="WrapWithOverflow" Width="180" TextAlignment="Center" />
|
|
<TextBox Name="OffAdvanceTxBx" Grid.Column="1" Grid.Row="5" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60"
|
|
TextAlignment="Right"/>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<!-- Definizione della Grid per caratteristiche tavole -->
|
|
<Border Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" BorderThickness="1" BorderBrush="Black" CornerRadius="3"
|
|
Margin="1">
|
|
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="3*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="PlankParametersLbl" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" FontWeight="Bold" />
|
|
<TextBlock Name="PlankWidthLbl" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" TextWrapping="WrapWithOverflow" Width="180" TextAlignment="Center" />
|
|
<TextBox Name="PlankWidthTxBx" Grid.Column="1" Grid.Row="1" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60"
|
|
TextAlignment="Right"/>
|
|
<TextBlock Name="PlankNumForLayerLbl" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" TextWrapping="WrapWithOverflow" Width="180" TextAlignment="Center" />
|
|
<TextBox Name="PlankNumForLayerTxBx" Grid.Column="1" Grid.Row="2" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="60"
|
|
TextAlignment="Right"/>
|
|
<CheckBox Name="PlankOnHolesChBx" Grid.Row="3" Grid.ColumnSpan="2" Height="40" Width="220"
|
|
HorizontalAlignment="Center">
|
|
<TextBlock Name="PlankOnHolesTxBl" FontSize="15" TextWrapping="Wrap" Margin="10,0,0,0"/>
|
|
</CheckBox>
|
|
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<!-- Definizione della Grid per attivazione ponte tavole e colla -->
|
|
<Border Grid.Column="2" Grid.Row="1" BorderThickness="1" BorderBrush="Black" CornerRadius="3"
|
|
Margin="1">
|
|
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="GantriesStateLbl" Grid.ColumnSpan="3" VerticalAlignment="Center"
|
|
HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" />
|
|
<CheckBox Name="GlueChBx" Grid.Column="1" Grid.Row="1" Height="40" Width="150"
|
|
HorizontalAlignment="Center">
|
|
<TextBlock Name="GlueTxBl" FontSize="15" TextWrapping="Wrap" Margin="10,0,0,0"/>
|
|
</CheckBox>
|
|
<CheckBox Name="PlankChBx" Grid.Row="2" Height="40" Width="150"
|
|
HorizontalAlignment="Center">
|
|
<TextBlock Name="PlankTxBl" FontSize="15" TextWrapping="Wrap" Margin="10,0,0,0"/>
|
|
</CheckBox>
|
|
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<!-- Definizione della Grid per opzioni software -->
|
|
<Border Grid.Column="0" Grid.Row="1" BorderThickness="0,1,0,0" BorderBrush="Black" >
|
|
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="4*"/>
|
|
<ColumnDefinition Width="4*"/>
|
|
<ColumnDefinition Width="4*"/>
|
|
<ColumnDefinition Width="3*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="SoftwareOptionsLbl" Grid.ColumnSpan="2" VerticalAlignment="Center" FontSize="15"
|
|
FontWeight="Bold" />
|
|
|
|
<!-- Definizione della Grid per selezione lingua -->
|
|
<Border Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" BorderThickness="1" BorderBrush="Black"
|
|
CornerRadius="3" Margin="1">
|
|
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="LanguageLbl" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" FontWeight="Bold" />
|
|
|
|
<ComboBox Grid.Row="1" Name="LanguageCmBx" VerticalAlignment="Center" Width="150" Height="35">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Label Content="{Binding LanguageName}" FontSize="15" />
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
<TextBlock Name="LanguageMsgLbl" Grid.Row="2" VerticalAlignment="Center"
|
|
HorizontalAlignment="Center" FontSize="15" TextWrapping="Wrap" />
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<!-- Definizione della Grid per numero di progetti da salvare -->
|
|
<Border Grid.Column="1" Grid.Row="1" BorderThickness="1" BorderBrush="Black" CornerRadius="3"
|
|
Margin="1">
|
|
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Name="ProjectNumberLbl" VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
FontSize="15" FontWeight="Bold" />
|
|
<TextBox Name="ProjectNumberTxBx" Grid.Column="1" Grid.Row="2" Style="{StaticResource NumericKeyboard}"
|
|
FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150"
|
|
TextAlignment="Right"/>
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<!-- Definizione della Grid Inferiore per i Button V e X -->
|
|
<Grid Grid.Column="4" Grid.Row="2" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="13*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Name="OkBtn" Grid.Column="1" >
|
|
<Image Source="Resources/V.png" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
<Button Name="ExitBtn" Grid.Column="2" >
|
|
<Image Source="Resources/X.png" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</UserControl>
|