c973a78476
- migliorie a generazione e simulazione con visualizzazione messaggi di errore - in generazione e simulazione non si ricarica più il progetto ma si ripristina allo stato precedente - migliorata gestione spessore grezzo (ora 0.1 più basso, mentre pezzi in Z esatta) - unificata gestione inserimento e parcheggio pezzi - inizializzate variabili m_bFirst.
84 lines
3.7 KiB
XML
84 lines
3.7 KiB
XML
<UserControl x:Class="CadCutPageUC"
|
|
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="853.3" d:DesignWidth="1280" Initialized="CadCutPage_Initialized" Loaded="CadCutPage_Loaded" Unloaded="CadCutPage_Unloaded">
|
|
|
|
<!-- Chiamata al Dictionary -->
|
|
<UserControl.Resources>
|
|
<ResourceDictionary Source="OmagCutDictionary.xaml"/>
|
|
</UserControl.Resources>
|
|
|
|
<!-- Definizione della CadCutPage -->
|
|
<Grid Name="CadCutPageGrid" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="3*"/>
|
|
<ColumnDefinition Width="12*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="8*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Definizione della Grid superiore -->
|
|
<Grid Name="UpperButtonGrid" Grid.Column="1" Grid.Row="0" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="7*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button Name="PhotoBtn" Grid.Column="0" >
|
|
<Image Source="Resources/Photo.png" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
<Button Name="RawPartBtn" Grid.Column="1" >
|
|
<Image Source="Resources/RawPart.png" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
<Button Name="DrawBtn" Grid.Column="2" >
|
|
<Image Source="Resources/Draw.png" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
<Button Name="ImportBtn" Grid.Column="3" >
|
|
<Image Source="Resources/Import.png" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
<Button Name="SplitBtn" Grid.Column="4" >
|
|
<Image Name="SplitImage" Width="65" Height="65" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
<ProgressBar Name="PhotoProgress" Grid.Row="2" Width="220" Height="50" Minimum="0" Maximum="100"/>
|
|
<TextBlock Name="OutMessageLbl" Grid.Row="2" Width="240" Height="60" FontSize="22" TextAlignment="Center" TextWrapping="Wrap" />
|
|
|
|
<!-- Definizione della Grid inferiore -->
|
|
<Grid Name="LowerButtonGrid" Grid.Column="1" Grid.Row="2" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="5*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Name="NewBtn" Grid.Column="0" Content="New" FontSize="22" />
|
|
<Button Name="LoadBtn" Grid.Column="1" Content="Load" FontSize="22" />
|
|
<Button Name="SaveBtn" Grid.Column="2" Content="Save" FontSize="22" />
|
|
<Button Name="SimulateBtn" Grid.Column="4" FontSize="22" />
|
|
<Button Name="WorkBtn" Grid.Column="5" FontSize="22" />
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|