27233be859
- Correzzioni e miglioramenti parametri di lavorazione. - Per la visibilità dei parametri ora sia MachiningDb che MachiningOp fanno riferimento agli stessi vettori. - Correzione smarcatura ultima lavorazione selezionata quando si passa alla simulazione. - Aggiunto reset automatico della nuova lavorazione se mentre la creo passo in simulazione o in Draw. - Migliorata ListBox per MachGroup. - Disabilitato cambio macchina quando in modalità lavorazione. - Aggiunta possibilità di cancellare le operazioni con il tasto Canc della tastiera.
48 lines
2.2 KiB
XML
48 lines
2.2 KiB
XML
<UserControl x:Class="MachGroupPanelView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ListBox ItemsSource="{Binding MachGroupList}" SelectedItem="{Binding SelectedMachGroup}"
|
|
Style="{StaticResource MachiningGroupListBox}">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemContainerStyle>
|
|
<Style TargetType="ListBoxItem">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListBoxItem">
|
|
<ContentPresenter/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<RadioButton Content="{Binding}" GroupName="MachiningGroups"
|
|
Height="30" MaxWidth="150" Margin="0,0,2,0" Padding="5,0,5,0" ToolTip="{Binding}"
|
|
Style="{StaticResource {x:Type ToggleButton}}"
|
|
Command="{Binding DataContext.SetCurrMachGroupCommand,
|
|
RelativeSource={RelativeSource FindAncestor,
|
|
AncestorType={x:Type UserControl}}}"
|
|
CommandParameter="{Binding}"
|
|
IsChecked="{Binding Path=IsSelected, RelativeSource={
|
|
RelativeSource AncestorType={x:Type ListBoxItem}},Mode=TwoWay}"/>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<Button Content="+" Height="20" Width="20" VerticalAlignment="Center"
|
|
Margin="3,0,5,0" Command="{Binding AddMachGroupCommand}" IsEnabled="False"/>
|
|
<Button Content="-" Height="20" Width="20" VerticalAlignment="Center"
|
|
Margin="0,0,5,0" Command="{Binding RemoveMachGroupCommand}"/>
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|