9b836645ff
- Gestione dei parametri da visualizzare per ciascun utensile del DB Utensile ora è spostata sulla libreria EgtWPFLib5 (come già fatto per Db Lavorazioni) - Cancellati file non più necessari grazie alla nuova gestione
160 lines
7.7 KiB
XML
160 lines
7.7 KiB
XML
<EgtWPFLib5:EgtCustomWindow x:Class="MyMachiningDbV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
xmlns:local="clr-namespace:EgtCAM5"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
Title="{Binding Title}" Icon="/Resources/EgtCAM5.ico"
|
|
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
|
BorderBrush="{StaticResource EgaltechBlue1}"
|
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
|
CloseCommand="{Binding CloseMachiningsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
|
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}">
|
|
|
|
<EgtWPFLib5:EgtCustomWindow.InputBindings>
|
|
<KeyBinding Key="Escape" Command="{Binding ReloadMachiningCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/>
|
|
</EgtWPFLib5:EgtCustomWindow.InputBindings>
|
|
|
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
|
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
|
|
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
|
|
<sys:Int32 x:Key="Invert">0</sys:Int32>
|
|
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
|
|
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
|
|
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
|
|
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
|
|
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
|
|
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
|
|
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
|
|
<sys:Int32 x:Key="StepType">8</sys:Int32>
|
|
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
|
|
<sys:Int32 x:Key="Speed">10</sys:Int32>
|
|
<sys:Int32 x:Key="Feed">11</sys:Int32>
|
|
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
|
|
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
|
|
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
|
|
<sys:Int32 x:Key="OffSr">15</sys:Int32>
|
|
<sys:Int32 x:Key="OffSl">16</sys:Int32>
|
|
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
|
|
<sys:Int32 x:Key="Approx">18</sys:Int32>
|
|
<sys:Int32 x:Key="StartPos">19</sys:Int32>
|
|
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
|
|
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
|
|
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
|
|
<sys:Int32 x:Key="StepPar">23</sys:Int32>
|
|
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
|
|
<sys:Int32 x:Key="TabLen">25</sys:Int32>
|
|
<sys:Int32 x:Key="TabDist">26</sys:Int32>
|
|
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
|
|
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
|
|
<sys:Int32 x:Key="LiTang">29</sys:Int32>
|
|
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
|
|
<sys:Int32 x:Key="LiElev">31</sys:Int32>
|
|
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
|
|
<sys:Int32 x:Key="LoTang">33</sys:Int32>
|
|
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
|
|
<sys:Int32 x:Key="LoElev">35</sys:Int32>
|
|
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
|
|
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
|
|
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
|
|
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
|
|
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
|
|
<sys:Int32 x:Key="SideStep">41</sys:Int32>
|
|
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
|
|
<sys:Int32 x:Key="NamePar">43</sys:Int32>
|
|
<sys:Int32 x:Key="Tool">44</sys:Int32>
|
|
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
|
|
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
|
|
<sys:Int32 x:Key="OverLap">47</sys:Int32>
|
|
<sys:Int32 x:Key="SubType">49</sys:Int32>
|
|
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
|
|
<sys:Int32 x:Key="AxRotRef">51</sys:Int32>
|
|
<sys:Int32 x:Key="BlockedAxesRef">52</sys:Int32>
|
|
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
|
|
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
|
|
<sys:Int32 x:Key="OscEnable">58</sys:Int32>
|
|
<sys:Int32 x:Key="OscHeight">59</sys:Int32>
|
|
<sys:Int32 x:Key="OscRampLen">60</sys:Int32>
|
|
<sys:Int32 x:Key="OscFlatLen">61</sys:Int32>
|
|
|
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.75*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="11*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<UniformGrid Grid.Row="0" Columns="3">
|
|
<Button Content="New" Command="{Binding NewCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}"/>
|
|
<Button Content="Save" Command="{Binding SaveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}"/>
|
|
<Button Content="Remove" Command="{Binding RemoveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}"/>
|
|
</UniformGrid>
|
|
|
|
<TreeView Name="MachiningsTreeView" Grid.Row="1"
|
|
ItemsSource="{Binding Path=MachiningsList}">
|
|
|
|
<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="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
|
|
</Style>
|
|
</TreeView.ItemContainerStyle>
|
|
|
|
<TreeView.Resources>
|
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyMachiningTreeViewItem}" ItemsSource="{Binding Items}">
|
|
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0,8,6,4" />
|
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="10" />
|
|
|
|
</Grid>
|
|
|
|
</HierarchicalDataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type EgtWPFLib5:MachiningTreeViewItem}">
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
|
|
<TextBlock Grid.Column="1" Text="{Binding NamePar}" Height="18" FontSize="15" Margin="10"/>
|
|
|
|
</Grid>
|
|
</DataTemplate>
|
|
</TreeView.Resources>
|
|
|
|
</TreeView>
|
|
|
|
</Grid>
|
|
|
|
<ContentControl Content="{Binding ParamPageV}" Grid.Column="1" Grid.ColumnSpan="2"/>
|
|
|
|
</Grid>
|
|
|
|
</EgtWPFLib5:EgtCustomWindow>
|