<UserControl x:Class="Alarms2PageUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="768" d:DesignWidth="1280">
   
   <Border Style="{DynamicResource OmagCut_PageBorder}">
      <Grid>
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="4*"/>
            <ColumnDefinition Width="3*"/>
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="1.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
         </Grid.RowDefinitions>

         <!--Parametri Taglio Lama: 5 Parametri-->
         <GroupBox Name="SawGpBx" Style="{DynamicResource OmagCut_GroupBox}" Grid.RowSpan="4" Margin="5,0,5,0">
            <!--definizione della grigli ainterna-->
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
               </Grid.ColumnDefinitions>
               <Grid.RowDefinitions>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
               </Grid.RowDefinitions>

               <TextBlock Name="CutExtraLenTxBl" Grid.Column="0" Grid.Row="0"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}"/>
               <EgtWPFLib:EgtTextBox Name="CutExtraLenTxBx" Grid.Column="1" Grid.Row="0" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="AngleCutExtraLenTxBl" Grid.Column="0" Grid.Row="1" 
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}"/>
               <EgtWPFLib:EgtTextBox Name="AngleCutExtraLenTxBx" Grid.Column="1" Grid.Row="1" Margin="10,0,10,0" IsLength="False"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="ExtArcMinRadTxBl" Grid.Column="0" Grid.Row="2"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}"/>
               <EgtWPFLib:EgtTextBox Name="ExtArcMinRadTxBx" Grid.Column="1" Grid.Row="2" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}"/>

               <TextBlock Name="IntArcMaxSideAngTxBl" Grid.Column="0" Grid.Row="3"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}"/>
               <EgtWPFLib:EgtTextBox Name="IntArcMaxSideAngTxBx" Grid.Column="1" Grid.Row="3" Margin="10,0,10,0" IsLength="False"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}"/>

               <TextBlock Name="PreCutExitTxBl" Grid.Column="0" Grid.Row="4"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}"/>
               <CheckBox Name="PreCutExitChBx" Grid.Column="1" Grid.Row="4" Margin="10,0,10,0"
                         Style="{DynamicResource OmagCut_CheckBox_Single}" 
                         HorizontalAlignment="Right"/>

            </Grid>
         </GroupBox>

         <!--Parametri fori: 4 Parametri-->
         <GroupBox Name="HolesGpBx" Grid.Column="1" Grid.RowSpan="3" Margin="0,0,5,0"
                   Style="{DynamicResource OmagCut_GroupBox}">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="145*"/>
                  <ColumnDefinition Width="23*"/>
                  <ColumnDefinition Width="169*"/>
               </Grid.ColumnDefinitions>
               <Grid.RowDefinitions>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
               </Grid.RowDefinitions>

               <TextBlock Name="HolesOffsetTxBl" Grid.Column="0" Grid.Row="0"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Grid.ColumnSpan="2" Margin="10,0,10,0"/>
               <EgtWPFLib:EgtTextBox Name="HolesOffsetTxBx" Grid.Column="2" Grid.Row="0" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="HolesOverlapTxBl" Grid.Column="0" Grid.Row="1"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Grid.ColumnSpan="2" Margin="10,0,10,0"/>
               <EgtWPFLib:EgtTextBox Name="HolesOverlapTxBx" Grid.Column="2" Grid.Row="1" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="HolesToleranceTxBl" Grid.Column="0" Grid.Row="2"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Grid.ColumnSpan="2" Margin="10,0,10,0"/>
               <EgtWPFLib:EgtTextBox Name="HolesToleranceTxBx" Grid.Column="2" Grid.Row="2" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="OneHoleInCornerTxBl" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="3"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Margin="10,0,10,0" />
               <CheckBox Name="OneHoleInCornerChBx" Grid.Column="2" Grid.Row="3" 
                         Style="{DynamicResource OmagCut_CheckBox_Single}"
                         HorizontalAlignment="Right" Margin="10,0,10,0"/>

            </Grid>
         </GroupBox>

         <!--Parametri rettifica tagli sottosquadra: 1 Parametro -->
         <GroupBox Name="RectificationWJParamGpBx"  Grid.Column="1" Grid.Row="4" Margin="0,0,5,0"
                   Style="{DynamicResource OmagCut_GroupBox}" >
            <Grid Grid.Column="3" Grid.Row="2">
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
               </Grid.ColumnDefinitions>
               <Grid.RowDefinitions>
                  <RowDefinition Height="*"/>
               </Grid.RowDefinitions>

               <TextBlock Name="EnableRectificationTxBl" Grid.Row="0" Grid.ColumnSpan="2"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" />
               <CheckBox Name="EnableRectificationChBx" Grid.Row="0" Grid.ColumnSpan="2" 
                         Style="{DynamicResource OmagCut_CheckBox_Single}"
                         HorizontalAlignment="Right" Margin="0,0,10,0"/>

            </Grid>
         </GroupBox>

         <!--Parametri WaterJet: 5 Parametro (se questo GroupBox attivo allora nascondo Fori/Fresatura)-->
         <GroupBox Name="WjsParamGpBx" Grid.Column="1" Grid.RowSpan="4" Margin="0,0,5,0"
                   Style="{DynamicResource OmagCut_GroupBox}">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="145*"/>
                  <ColumnDefinition Width="23*"/>
                  <ColumnDefinition Width="169*"/>
               </Grid.ColumnDefinitions>
               <Grid.RowDefinitions>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
                  <RowDefinition Height="0.5*"/>
               </Grid.RowDefinitions>

               <TextBlock Name="WjIntCutsTxBl" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Margin="10,0,10,0" />
               <CheckBox Name="WjIntCutsChBx" Grid.Column="2" Grid.Row="0" 
                         Style="{DynamicResource OmagCut_CheckBox_Single}"
                         HorizontalAlignment="Right" Margin="10,0,10,0"/>

               <TextBlock Name="HolesDiameterWJTxBl" Grid.Column="0" Grid.Row="1"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Grid.ColumnSpan="2" Margin="10,0,10,0"/>
               <EgtWPFLib:EgtTextBox Name="HolesDiameterWJTxBx" Grid.Column="2" Grid.Row="1" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="HolesOffsetWJTxBl" Grid.Column="0" Grid.Row="2"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Grid.ColumnSpan="2" Margin="10,0,10,0"/>
               <EgtWPFLib:EgtTextBox Name="HolesOffsetWJTxBx" Grid.Column="2" Grid.Row="2" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="MinRadiusWJTxBl" Grid.Column="0" Grid.Row="3"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Grid.ColumnSpan="2" Margin="10,0,10,0"/>
               <EgtWPFLib:EgtTextBox Name="MinRadiusWJTxBx" Grid.Column="2" Grid.Row="3" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}" />

               <TextBlock Name="OneHoleInCornerWJTxBl" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="3"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Margin="10,0,10,0" />
               <CheckBox Name="OneHoleInCornerWJChBx" Grid.Column="2" Grid.Row="4" 
                         Style="{DynamicResource OmagCut_CheckBox_Single}"
                         HorizontalAlignment="Right" Margin="10,0,10,0"/>

            </Grid>
         </GroupBox>

         <!--Parametri Fresatura: 3 Parametri-->
         <GroupBox Name="MillingsParamGpBx" Grid.Column="2" Grid.RowSpan="3" Margin="0,0,5,0"
                   Style="{DynamicResource OmagCut_GroupBox}">
            <Grid>
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="2*"/>
                  <ColumnDefinition Width="2*"/>
               </Grid.ColumnDefinitions>
               <Grid.RowDefinitions>
                  <RowDefinition Height="*"/>
                  <RowDefinition Height="*"/>
                  <RowDefinition Height="*"/>
               </Grid.RowDefinitions>

               <TextBlock Name="CornerCutsTxBl" Grid.Row="0" Grid.ColumnSpan="2"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" />
               <CheckBox Name="CornerCutsChBx" Grid.Row="0" Grid.ColumnSpan="2" 
                         Style="{DynamicResource OmagCut_CheckBox_Single}"
                         HorizontalAlignment="Right" Margin="0,0,10,0"/>

               <TextBlock Name="InternalCutsTxBl" Grid.Row="1" Grid.ColumnSpan="2"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}" Margin="10,0,0,10" VerticalAlignment="Bottom" />
               <CheckBox Name="InternalCutsChBx" Grid.Row="1" Grid.ColumnSpan="2" 
                         Style="{DynamicResource OmagCut_CheckBox_Single}"
                         HorizontalAlignment="Right" Margin="0,0,10,0"/>

               <TextBlock Name="ShortTxBl" Grid.Column="0" Grid.Row="2"
                          Style="{DynamicResource OmagCut_ToolsDBTextBlock}"/>
               <EgtWPFLib:EgtTextBox Name="ShortTxBx" Grid.Column="1" Grid.Row="2" Margin="10,0,10,0"
                                     Style="{DynamicResource OmagCut_CalculatorTextBox}"/>

            </Grid>
         </GroupBox>

      </Grid>
   </Border>
</UserControl>
