EgtCAM5 :

- Migliorie varie.
This commit is contained in:
Emmanuele Sassi
2016-07-10 11:34:07 +00:00
parent ec2f7a38ef
commit f8b17066de
41 changed files with 1706 additions and 282 deletions
+1
View File
@@ -132,6 +132,7 @@ Class Application
Friend Const UPDATEHEADERNAME As String = "UpdateHeaderName"
Friend Const UPDATEHEADERCOLOR As String = "UpdateHeaderColor"
Friend Const UPDATEOBJTREEOLDID As String = "UpdateObjTreeOldId"
Friend Const DRAWOPTIONPANEL_CLOSING As String = "DrawOptionPanel_Closing"
' StatusBar messages
Friend Const STATUSGRIDCOMMAND As String = "StatusGridCommand"
+6
View File
@@ -85,6 +85,12 @@ Module ConstIni
Public Const S_MACH As String = "Mach"
Public Const K_MACHINESDIR As String = "MachinesDir"
Public Const K_TOOLMAKERSDIR As String = "ToolMakersDir"
Public Const K_CURRMACH As String = "CurrMach"
Public Const S_SIMUL As String = "Simul"
Public Const K_SLIDERX As String = "SliderX"
Public Const K_SLIDERVAL As String = "SliderVal"
Public Const S_MRUFILES As String = "MruFiles"
Public Const S_MRUSCRIPTS As String = "MruScripts"
+1
View File
@@ -5,6 +5,7 @@
Public Const MSG_EGTCAM5 As Integer = 5000
Public Const MSG_MAINWINDOW As Integer = MSG_EGTCAM5
Public Const MSG_DRAWMODE As Integer = MSG_EGTCAM5 + 200
Public Const MSG_TOOLSDBPAGE As Integer = MSG_EGTCAM5 + 1000
Public Const MSG_TOOLSERRORS As Integer = MSG_EGTCAM5 + 1085
Public Const MSG_MACHININGSDBPAGE As Integer = MSG_EGTCAM5 + 1100
+42 -3
View File
@@ -147,6 +147,10 @@
<DependentUpon>InputExpanderView.xaml</DependentUpon>
</Compile>
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\InputExpander\InputExpanderViewModel.vb" />
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\MachiningsTreeViewExpander\MachiningTreeExpanderView.xaml.vb">
<DependentUpon>MachiningTreeExpanderView.xaml</DependentUpon>
</Compile>
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\MachiningsTreeViewExpander\MachiningTreeExpanderViewModel.vb" />
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\ManageLayerExpander\LayerTreeView.vb" />
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\ManageLayerExpander\ManageLayerExpanderView.xaml.vb">
<DependentUpon>ManageLayerExpanderView.xaml</DependentUpon>
@@ -157,6 +161,14 @@
</Compile>
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\OperationExpander\OperationExpanderViewModel.vb" />
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\OperationExpander\OperationListBox.vb" />
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\OperationPropertyExpander\OperationPropertyExpanderView.xaml.vb">
<DependentUpon>OperationPropertyExpanderView.xaml</DependentUpon>
</Compile>
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\OperationPropertyExpander\OperationPropertyExpanderViewModel.vb" />
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\SimulationExpander\SimulationExpanderView.xaml.vb">
<DependentUpon>SimulationExpanderView.xaml</DependentUpon>
</Compile>
<Compile Include="ProjectPage\OptionPanel\DrawOptionPanel\SimulationExpander\SimulationExpanderViewModel.vb" />
<Compile Include="ProjectPage\ProjectView.xaml.vb">
<DependentUpon>ProjectView.xaml</DependentUpon>
</Compile>
@@ -221,6 +233,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ProjectPage\OptionPanel\DrawOptionPanel\MachiningsTreeViewExpander\MachiningTreeExpanderView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ProjectPage\OptionPanel\DrawOptionPanel\ManageLayerExpander\ManageLayerExpanderView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@@ -229,6 +245,14 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ProjectPage\OptionPanel\DrawOptionPanel\OperationPropertyExpander\OperationPropertyExpanderView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ProjectPage\OptionPanel\DrawOptionPanel\SimulationExpander\SimulationExpanderView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="ProjectPage\ProjectView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
@@ -296,9 +320,7 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Internals\" />
<Folder Include="ProjectPage\OptionPanel\DrawOptionPanel\OperationPropertyExpander\" />
<Folder Include="Resources\OptionPanel\DrawOptionPanel\" />
<Folder Include="Resources\OptionPanel\MachiningOptionPanel\" />
<Folder Include="Resources\ProjectPage\" />
</ItemGroup>
<ItemGroup>
@@ -309,7 +331,6 @@
<Resource Include="Resources\DrawPanel\ChangeColor.png" />
<Resource Include="Resources\DrawPanel\ChangeLayer.png" />
<Resource Include="Resources\DrawPanel\ChangeStart.png" />
<Resource Include="Resources\DrawPanel\Circle.png" />
<Resource Include="Resources\DrawPanel\Delete.png" />
<Resource Include="Resources\DrawPanel\ExplodeCurve.png" />
<Resource Include="Resources\DrawPanel\ExplodeSurf.png" />
@@ -402,6 +423,24 @@
<Resource Include="Resources\TopCommandBar\Save.png" />
<Resource Include="Resources\TopCommandBar\SaveAs.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\DrawPanel\Chamfer.png" />
<Resource Include="Resources\DrawPanel\ChangeColorAlpha.png" />
<Resource Include="Resources\DrawPanel\CircleCD.png" />
<Resource Include="Resources\DrawPanel\CircleCP.png" />
<Resource Include="Resources\DrawPanel\Mirror3D.png" />
<Resource Include="Resources\DrawPanel\PolygonSide.png" />
<Resource Include="Resources\DrawPanel\RemoveColor.png" />
<Resource Include="Resources\DrawPanel\Rotate3D.png" />
<Resource Include="Resources\DrawPanel\Scale3D.png" />
<Resource Include="Resources\DrawPanel\SplitCurve.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\OptionPanel\MachiningOptionPanel\SimulationExpander\Pause.png" />
<Resource Include="Resources\OptionPanel\MachiningOptionPanel\SimulationExpander\Play.png" />
<Resource Include="Resources\OptionPanel\MachiningOptionPanel\SimulationExpander\PlayStep.png" />
<Resource Include="Resources\OptionPanel\MachiningOptionPanel\SimulationExpander\Stop.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<PropertyGroup>
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe
+58 -3
View File
@@ -2,7 +2,8 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:EgtCAM5"
xmlns:ViewModel="clr-namespace:EgtCAM5.EgtCAM5">
xmlns:ViewModel="clr-namespace:EgtCAM5.EgtCAM5"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
<!--ViewModel-View association-->
@@ -64,17 +65,62 @@
<!-- Components -->
<Style x:Key="EgtCAM5_DrawButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Height" Value="30"/>
<Setter Property="Width" Value="30"/>
</Style>
<Style x:Key="EgtCAM5_Button" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Height" Value="30"/>
<Setter Property="Width" Value="30"/>
</Style>
<Style x:Key="EgtCAM5_InputButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Height" Value="30"/>
<Setter Property="Width" Value="30"/>
</Style>
<Style x:Key="EgtCAM5_Expander" TargetType="{x:Type Expander}" BasedOn="{StaticResource {x:Type Expander}}">
</Style>
<Style x:Key="DrawOptionPanel_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
</Style>
<Style x:Key="EgtCAM5_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
<Setter Property="Height" Value="30"/>
<Setter Property="Width" Value="30"/>
</Style>
<Style x:Key="DrawOptionPanel_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
<Style x:Key="EgtCAM5_DrawToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
<Setter Property="Height" Value="30"/>
<Setter Property="Width" Value="30"/>
</Style>
<Style x:Key="EgtCAM5_RadioButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource EgtCAM5_DrawToggleButton}">
</Style>
<Style x:Key="EgtCAM5_MachiningsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
</Style>
<Style x:Key="EgtCAM5_MachiningsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
</Style>
<Style x:Key="EgtCAM5_MachiningsComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
</Style>
<Style x:Key="EgtCAM5_MachiningsToolTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
</Style>
<Style x:Key="EgtCAM5_MachiningsToolTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
</Style>
<Style x:Key="EgtCAM5_MachiningsToolComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
</Style>
<Style x:Key="EgtCAM5_ToolsTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
</Style>
<Style x:Key="EgtCAM5_ToolsTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
</Style>
<Style x:Key="EgtCAM5_LampToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
@@ -108,7 +154,16 @@
</Setter>
</Style>
<Style x:Key="EgtCAM5_RadioButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource EgtCAM5_ToggleButton}">
<!--SIMULATION-->
<Style x:Key="EgtCAM5_SimulationTextBox" TargetType="{x:Type EgtWPFLib5:EgtTextBox}" BasedOn="{StaticResource {x:Type EgtWPFLib5:EgtTextBox}}">
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="IsEnabled" Value="False"/>
</Style>
<Style x:Key="EgtCAM5_SimulationButton" TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Height" Value="50"/>
<Setter Property="Width" Value="50"/>
</Style>
</ResourceDictionary>
+102 -92
View File
@@ -203,11 +203,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding InvertTxBl}"
<TextBlock Text="{Binding InvertTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Invert}}"/>
<EgtWPFLib5:EgtTextBox Name="InvertTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="InvertTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.Invert,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -231,11 +231,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LeaveTabTxBl}"
<TextBlock Text="{Binding LeaveTabTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LeaveTab}}"/>
<EgtWPFLib5:EgtTextBox Name="LeaveTabTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LeaveTabTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LeaveTab,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -259,11 +259,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TypeTxBl}"
<TextBlock Text="{Binding TypeTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Type}}"/>
<EgtWPFLib5:EgtTextBox Name="TypeTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TypeTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LeaveTab,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -287,12 +287,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding WorkSideTxBl}"
<TextBlock Text="{Binding WorkSideTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource WorkSide}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.WorkSideList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedWorkSide,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -313,12 +314,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding HeadSideTxBl}"
<TextBlock Text="{Binding HeadSideTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource HeadSide}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.HeadSideList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedHeadSide,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -339,12 +341,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LeadInTypeTxBl}"
<TextBlock Text="{Binding LeadInTypeTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LeadInType}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.LeadInTypeList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedLeadInType,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -365,12 +368,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ExtLinkTypeTxBl}"
<TextBlock Text="{Binding ExtLinkTypeTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource ExtLinkType}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.ExtLinkTypeList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedExtLinkType,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -391,12 +395,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LeadOutTypeTxBl}"
<TextBlock Text="{Binding LeadOutTypeTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LeadOutType}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.LeadOutTypeList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedLeadOutType,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -417,12 +422,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding CurveUseTxBl}"
<TextBlock Text="{Binding CurveUseTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource CurveUse}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.CurveUseList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedCurveUse,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -443,12 +449,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StepTypeTxBl}"
<TextBlock Text="{Binding StepTypeTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StepType}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.StepTypeList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedStepType,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -469,7 +476,7 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LeadLinkTypeTxBl}"
<TextBlock Text="{Binding LeadLinkTypeTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LeadLinkType}}"/>
@@ -486,6 +493,7 @@
UpdateSourceTrigger=PropertyChanged}"/>-->
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.LeadLinkTypeList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedLeadLinkType,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -508,11 +516,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ApproxTxBl}"
<TextBlock Text="{Binding ApproxTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Approx}}"/>
<EgtWPFLib5:EgtTextBox Name="ApproxTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="ApproxTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.Approx,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -536,11 +544,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StartPosTxBl}"
<TextBlock Text="{Binding StartPosTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StartPos}}"/>
<EgtWPFLib5:EgtTextBox Name="StartPosTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StartPosTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.StartPos,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -564,11 +572,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StartSlowLenTxBl}"
<TextBlock Text="{Binding StartSlowLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StartSlowLen}}"/>
<EgtWPFLib5:EgtTextBox Name="StartSlowLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StartSlowLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.StartSlowLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -592,11 +600,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding EndSlowLenTxBl}"
<TextBlock Text="{Binding EndSlowLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource EndSlowLen}}"/>
<EgtWPFLib5:EgtTextBox Name="EndSlowLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="EndSlowLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.EndSlowLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -620,11 +628,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ThrouAddLenTxBl}"
<TextBlock Text="{Binding ThrouAddLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource ThrouAddLen}}"/>
<EgtWPFLib5:EgtTextBox Name="ThrouAddLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="ThrouAddLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.ThrouAddLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -648,11 +656,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StepParTxBl}"
<TextBlock Text="{Binding StepParTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StepPar}}"/>
<EgtWPFLib5:EgtTextBox Name="StepParTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StepParTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.StepPar,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -676,11 +684,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ReturnPosTxBl}"
<TextBlock Text="{Binding ReturnPosTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource ReturnPos}}"/>
<EgtWPFLib5:EgtTextBox Name="ReturnPosTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="ReturnPosTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.StepPar,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -704,11 +712,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TabLenTxBl}"
<TextBlock Text="{Binding TabLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource TabLen}}"/>
<EgtWPFLib5:EgtTextBox Name="TabLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TabLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.TabLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -732,11 +740,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TabDistTxBl}"
<TextBlock Text="{Binding TabDistTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource TabDist}}"/>
<EgtWPFLib5:EgtTextBox Name="TabDistTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TabDistTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.TabDist,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -760,11 +768,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TabHeightTxBl}"
<TextBlock Text="{Binding TabHeightTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource TabHeight}}"/>
<EgtWPFLib5:EgtTextBox Name="TabHeightTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TabHeightTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.TabHeight,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -788,11 +796,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TabAngleTxBl}"
<TextBlock Text="{Binding TabAngleTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource TabAngle}}"/>
<EgtWPFLib5:EgtTextBox Name="TabAngleTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TabAngleTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.TabAngle,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -816,11 +824,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LiTangTxBl}"
<TextBlock Text="{Binding LiTangTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LiTang}}"/>
<EgtWPFLib5:EgtTextBox Name="LiTangTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LiTangTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LiTang,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -844,11 +852,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LiPerpTxBl}"
<TextBlock Text="{Binding LiPerpTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LiPerp}}"/>
<EgtWPFLib5:EgtTextBox Name="LiPerpTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LiPerpTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LiPerp,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -872,11 +880,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LiElevTxBl}"
<TextBlock Text="{Binding LiElevTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LiElev}}"/>
<EgtWPFLib5:EgtTextBox Name="LiElevTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LiElevTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LiElev,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -900,11 +908,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LiCompLenTxBl}"
<TextBlock Text="{Binding LiCompLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LiCompLen}}"/>
<EgtWPFLib5:EgtTextBox Name="LiCompLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LiCompLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LiCompLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -928,11 +936,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LoTangTxBl}"
<TextBlock Text="{Binding LoTangTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LoTang}}"/>
<EgtWPFLib5:EgtTextBox Name="LoTangTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LoTangTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LoTang,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -956,11 +964,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LoPerpTxBl}"
<TextBlock Text="{Binding LoPerpTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LoPerp}}"/>
<EgtWPFLib5:EgtTextBox Name="LoPerpTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LoPerpTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LoPerp,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -984,11 +992,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LoElevTxBl}"
<TextBlock Text="{Binding LoElevTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LoElev}}"/>
<EgtWPFLib5:EgtTextBox Name="LoElevTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LoElevTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LoElev,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1012,11 +1020,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LoCompLenTxBl}"
<TextBlock Text="{Binding LoCompLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource LoCompLen}}"/>
<EgtWPFLib5:EgtTextBox Name="LoCompLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LoCompLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.LoCompLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1040,11 +1048,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StartAddLenTxBl}"
<TextBlock Text="{Binding StartAddLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StartAddLen}}"/>
<EgtWPFLib5:EgtTextBox Name="StartAddLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StartAddLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.StartAddLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1068,11 +1076,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding EndAddLenTxBl}"
<TextBlock Text="{Binding EndAddLenTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource EndAddLen}}"/>
<EgtWPFLib5:EgtTextBox Name="EndAddLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="EndAddLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.EndAddLen,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1096,11 +1104,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StepExtArcTxBl}"
<TextBlock Text="{Binding StepExtArcTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StepExtArc}}"/>
<EgtWPFLib5:EgtTextBox Name="StepExtArcTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StepExtArcTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.StepExtArc,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1124,11 +1132,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StepIntArcTxBl}"
<TextBlock Text="{Binding StepIntArcTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StepIntArc}}"/>
<EgtWPFLib5:EgtTextBox Name="StepIntArcTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StepIntArcTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.StepIntArc,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1152,11 +1160,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding SideStepTxBl}"
<TextBlock Text="{Binding SideStepTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource SideStep}}"/>
<EgtWPFLib5:EgtTextBox Name="SideStepTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="SideStepTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.SideStep,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1180,11 +1188,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding NameParTxBl}"
<TextBlock Text="{Binding NameParTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource NamePar}}"/>
<EgtWPFLib5:EgtTextBox Name="NameParTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="NameParTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.NamePar,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1208,11 +1216,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DepthStrTxBl}"
<TextBlock Text="{Binding DepthStrTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource DepthStr}}"/>
<EgtWPFLib5:EgtTextBox Name="DepthStrTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="DepthStrTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.DepthStr,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1236,11 +1244,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding UserNotesTxBl}"
<TextBlock Text="{Binding UserNotesTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource UserNotes}}"/>
<EgtWPFLib5:EgtTextBox Name="UserNotesTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="UserNotesTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.UserNotes,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1264,11 +1272,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding OverLapStrTxBl}"
<TextBlock Text="{Binding OverLapStrTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource OverLapStr}}"/>
<EgtWPFLib5:EgtTextBox Name="OverLapStrTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="OverLapStrTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.OverLapStr,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1292,11 +1300,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding OffsetStrTxBl}"
<TextBlock Text="{Binding OffsetStrTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource OffsetStr}}"/>
<EgtWPFLib5:EgtTextBox Name="OffsetStrTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="OffsetStrTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsTextBox}"
Text="{Binding Path=SelectedItem.OffsetStr,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1320,12 +1328,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding SubTypeTxBl}"
<TextBlock Text="{Binding SubTypeTxBl}" Style="{StaticResource EgtCAM5_MachiningsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource SubType}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.SubTypeList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedSubType,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -1365,12 +1374,13 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ToolTxBl}"
<TextBlock Text="{Binding ToolTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Tool}}"/>
<ComboBox Grid.Column="1" ItemsSource="{Binding Path=SelectedItem.ToolList,
ElementName=MachiningsTreeView, Mode=OneWay}"
Style="{StaticResource EgtCAM5_MachiningsToolComboBox}"
SelectedIndex="{Binding Path=SelectedItem.SelectedTool,
ElementName=MachiningsTreeView}"
IsSynchronizedWithCurrentItem="True"
@@ -1402,11 +1412,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding SpeedTxBl}"
<TextBlock Text="{Binding SpeedTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Speed}}"/>
<EgtWPFLib5:EgtTextBox Name="SpeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="SpeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.Speed,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1430,11 +1440,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding FeedTxBl}"
<TextBlock Text="{Binding FeedTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource Feed}}"/>
<EgtWPFLib5:EgtTextBox Name="FeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="FeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.Feed,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1458,11 +1468,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StartFeedTxBl}"
<TextBlock Text="{Binding StartFeedTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource StartFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="StartFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StartFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.StartFeed,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1486,11 +1496,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding EndFeedTxBl}"
<TextBlock Text="{Binding EndFeedTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource EndFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="EndFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="EndFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.EndFeed,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1514,11 +1524,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TipFeedTxBl}"
<TextBlock Text="{Binding TipFeedTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource TipFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="TipFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TipFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.TipFeed,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1542,11 +1552,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding OffSrTxBl}"
<TextBlock Text="{Binding OffSrTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource OffSr}}"/>
<EgtWPFLib5:EgtTextBox Name="OffSrTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="OffSrTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.OffSr,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1570,11 +1580,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding OffSlTxBl}"
<TextBlock Text="{Binding OffSlTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource OffSl}}"/>
<EgtWPFLib5:EgtTextBox Name="OffSlTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="OffSlTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.OffSl,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1598,11 +1608,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding SideAngleTxBl}"
<TextBlock Text="{Binding SideAngleTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource SideAngle}}"/>
<EgtWPFLib5:EgtTextBox Name="SideAngleTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="SideAngleTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.SideAngle,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -1626,11 +1636,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding VertFeedTxBl}"
<TextBlock Text="{Binding VertFeedTxBl}" Style="{StaticResource EgtCAM5_MachiningsToolTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=MachiningsTreeView,
Converter={StaticResource MachiningParamVisibilityConverter},
ConverterParameter={StaticResource VertFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="VertFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="VertFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_MachiningsToolTextBox}"
Text="{Binding Path=SelectedItem.VertFeed,
ElementName=MachiningsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
+66 -39
View File
@@ -9,122 +9,149 @@
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Expander Header="2D Draw" Grid.Row="0">
<Expander Header="2D Draw" Style="{StaticResource EgtCAM5_Expander}" Grid.Row="0">
<UniformGrid Columns="2">
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding PointCommand}">
<Button ToolTip="{Binding PointToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding PointCommand}">
<Image Source="/Resources/DrawPanel/Point.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding Line2PCommand}">
<Button ToolTip="{Binding Line2PToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding Line2PCommand}">
<Image Source="/Resources/DrawPanel/Line2P.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding LinePDLCommand}">
<Button ToolTip="{Binding LinePDLToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding LinePDLCommand}">
<Image Source="/Resources/DrawPanel/LinePDL.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding CircleCommand}">
<Image Source="/Resources/DrawPanel/Circle.png" Stretch="Uniform"/>
<Button ToolTip="{Binding CirclePDToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding CircleCPCommand}">
<Image Source="/Resources/DrawPanel/CircleCP.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ArcCSECommand}">
<Button ToolTip="{Binding CircleCDToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding CircleCDCommand}">
<Image Source="/Resources/DrawPanel/CircleCD.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding ArcCSEToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ArcCSECommand}">
<Image Source="/Resources/DrawPanel/ArcCSE.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding Arc3PCommand}">
<Button ToolTip="{Binding Arc3PToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding Arc3PCommand}">
<Image Source="/Resources/DrawPanel/Arc3P.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ArcPDPCommand}">
<Button ToolTip="{Binding ArcPDPToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ArcPDPCommand}">
<Image Source="/Resources/DrawPanel/ArcPDP.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding FilletCommand}">
<Button ToolTip="{Binding FilletToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding FilletCommand}">
<Image Source="/Resources/DrawPanel/Fillet.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding Rectangle2PCommand}">
<Button ToolTip="{Binding ChamferToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ChamferCommand}">
<Image Source="/Resources/DrawPanel/Chamfer.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding Rectangle2PToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding Rectangle2PCommand}">
<Image Source="/Resources/DrawPanel/Rectangle2P.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding PolygonCommand}">
<Button ToolTip="{Binding PolygonToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding PolygonCommand}">
<Image Source="/Resources/DrawPanel/Polygon.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding TextCommand}">
<Button ToolTip="{Binding PolygonSideToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding PolygonSideCommand}">
<Image Source="/Resources/DrawPanel/PolygonSide.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding TextToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding TextCommand}">
<Image Source="/Resources/DrawPanel/Text.png" Stretch="Uniform"/>
</Button>
</UniformGrid>
</Expander>
<Expander Header="3D Draw" Grid.Row="1">
<Expander Header="3D Draw" Style="{StaticResource EgtCAM5_Expander}" Grid.Row="1">
<UniformGrid Columns="2">
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding PlaneCommand}">
<Button ToolTip="{Binding PlaneToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding PlaneCommand}">
<Image Source="/Resources/DrawPanel/Plane.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ExtrudeCommand}">
<Button ToolTip="{Binding ExtrudeToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ExtrudeCommand}">
<Image Source="/Resources/DrawPanel/Extrude.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding RevolveCommand}">
<Button ToolTip="{Binding RevolveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding RevolveCommand}">
<Image Source="/Resources/DrawPanel/Revolve.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ScrewCommand}">
<Button ToolTip="{Binding ScrewToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ScrewCommand}">
<Image Source="/Resources/DrawPanel/Screw.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding RuledCommand}">
<Button ToolTip="{Binding RuledToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding RuledCommand}">
<Image Source="/Resources/DrawPanel/Ruled.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding MergeSurfCommand}">
<Button ToolTip="{Binding MergeSurfToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding MergeSurfCommand}">
<Image Source="/Resources/DrawPanel/MergeSurf.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ExplodeSurfCommand}">
<Button ToolTip="{Binding ExplodeSurfToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ExplodeSurfCommand}">
<Image Source="/Resources/DrawPanel/ExplodeSurf.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding InvertSurfCommand}">
<Button ToolTip="{Binding InvertSurfToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding InvertSurfCommand}">
<Image Source="/Resources/DrawPanel/InvertSurf.png" Stretch="Uniform"/>
</Button>
</UniformGrid>
</Expander>
<Expander Header="Modify" Grid.Row="2">
<Expander Header="Modify" Style="{StaticResource EgtCAM5_Expander}" Grid.Row="2">
<UniformGrid Columns="2">
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding DeleteCommand}">
<Button ToolTip="{Binding DeleteToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding DeleteCommand}">
<Image Source="/Resources/DrawPanel/Delete.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ChangeLayerCommand}">
<Button ToolTip="{Binding ChangeLayerToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ChangeLayerCommand}">
<Image Source="/Resources/DrawPanel/ChangeLayer.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ChangeColorCommand}">
<Button ToolTip="{Binding ChangeAlphaToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ChangeAlphaCommand}">
<Image Source="/Resources/DrawPanel/ChangeColorAlpha.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding ResetColorToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ResetColorCommand}">
<Image Source="/Resources/DrawPanel/RemoveColor.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding ChangeColorToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ChangeColorCommand}">
<Image Source="/Resources/DrawPanel/ChangeColor.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding InvertCurveCommand}">
<Button ToolTip="{Binding InvertCurveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding InvertCurveCommand}">
<Image Source="/Resources/DrawPanel/InvertCurve.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ChangeStartCurveCommand}">
<Button ToolTip="{Binding ChangeStartToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ChangeStartCurveCommand}">
<Image Source="/Resources/DrawPanel/ChangeStart.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ExtendCurveCommand}">
<Button ToolTip="{Binding ExtendCurveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ExtendCurveCommand}">
<Image Source="/Resources/DrawPanel/ExtendCurve.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding BreakCurveCommand}">
<Button ToolTip="{Binding BreakCurveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding BreakCurveCommand}">
<Image Source="/Resources/DrawPanel/BreakCurve.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding JoinCurveCommand}">
<Button ToolTip="{Binding SplitCurveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding SplitCurveCommand}">
<Image Source="/Resources/DrawPanel/SplitCurve.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding JoinCurveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding JoinCurveCommand}">
<Image Source="/Resources/DrawPanel/JoinCurve.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ExplodeCurveCommand}">
<Button ToolTip="{Binding ExplodeCurveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ExplodeCurveCommand}">
<Image Source="/Resources/DrawPanel/ExplodeCurve.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding SetCurveThCommand}">
<Button ToolTip="{Binding ThickCurveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding SetCurveThCommand}">
<Image Source="/Resources/DrawPanel/ThickCurve.png" Stretch="Uniform"/>
</Button>
</UniformGrid>
</Expander>
<Expander Header="Transform" Grid.Row="3">
<Expander Header="Transform" Style="{StaticResource EgtCAM5_Expander}" Grid.Row="3">
<UniformGrid Columns="2">
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding MoveCommand}">
<Button ToolTip="{Binding MoveToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding MoveCommand}">
<Image Source="/Resources/DrawPanel/Move.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding RotateCommand}">
<Button ToolTip="{Binding RotateToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding RotateCommand}">
<Image Source="/Resources/DrawPanel/Rotate.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding MirrorCommand}">
<Button ToolTip="{Binding Rotate3DToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding Rotate3DCommand}">
<Image Source="/Resources/DrawPanel/Rotate3D.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding MirrorToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding MirrorCommand}">
<Image Source="/Resources/DrawPanel/Mirror.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding ScaleCommand}">
<Button ToolTip="{Binding Mirror3DToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding Mirror3DCommand}">
<Image Source="/Resources/DrawPanel/Mirror3D.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding ScaleToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding ScaleCommand}">
<Image Source="/Resources/DrawPanel/Scale.png" Stretch="Uniform"/>
</Button>
<Button Style="{StaticResource EgtCAM5_Button}" Command="{Binding OffsetCommand}">
<Button ToolTip="{Binding Scale3DToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding Scale3DCommand}">
<Image Source="/Resources/DrawPanel/Scale3D.png" Stretch="Uniform"/>
</Button>
<Button ToolTip="{Binding OffsetToolTip}" Style="{StaticResource EgtCAM5_DrawButton}" Command="{Binding OffsetCommand}">
<Image Source="/Resources/DrawPanel/Offset.png" Stretch="Uniform"/>
</Button>
+520 -17
View File
@@ -5,17 +5,244 @@ Namespace EgtCAM5
Public Class DrawPanelViewModel
Inherits ViewModelBase
'Proprietà ToolTip
Public ReadOnly Property PointToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 1)
End Get
End Property
Public ReadOnly Property Line2PToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 2)
End Get
End Property
Public ReadOnly Property LinePDLToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 3)
End Get
End Property
Public ReadOnly Property CirclePDToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 4)
End Get
End Property
Public ReadOnly Property CircleCDToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 5)
End Get
End Property
Public ReadOnly Property ArcCSEToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 6)
End Get
End Property
Public ReadOnly Property Arc3PToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 7)
End Get
End Property
Public ReadOnly Property ArcPDPToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 8)
End Get
End Property
Public ReadOnly Property FilletToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 9)
End Get
End Property
Public ReadOnly Property ChamferToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 10)
End Get
End Property
Public ReadOnly Property Rectangle2PToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 11)
End Get
End Property
Public ReadOnly Property PolygonToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 12)
End Get
End Property
Public ReadOnly Property PolygonSideToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 13)
End Get
End Property
Public ReadOnly Property TextToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 14)
End Get
End Property
Public ReadOnly Property PlaneToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 15)
End Get
End Property
Public ReadOnly Property ExtrudeToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 16)
End Get
End Property
Public ReadOnly Property RevolveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 17)
End Get
End Property
Public ReadOnly Property ScrewToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 18)
End Get
End Property
Public ReadOnly Property RuledToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 19)
End Get
End Property
Public ReadOnly Property MergeSurfToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 20)
End Get
End Property
Public ReadOnly Property ExplodeSurfToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 21)
End Get
End Property
Public ReadOnly Property InvertSurfToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 22)
End Get
End Property
Public ReadOnly Property DeleteToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 23)
End Get
End Property
Public ReadOnly Property ChangeLayerToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 24)
End Get
End Property
Public ReadOnly Property ChangeAlphaToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 25)
End Get
End Property
Public ReadOnly Property ResetColorToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 26)
End Get
End Property
Public ReadOnly Property ChangeColorToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 27)
End Get
End Property
Public ReadOnly Property InvertCurveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 28)
End Get
End Property
Public ReadOnly Property ChangeStartToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 29)
End Get
End Property
Public ReadOnly Property ExtendCurveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 30)
End Get
End Property
Public ReadOnly Property BreakCurveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 31)
End Get
End Property
Public ReadOnly Property SplitCurveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 32)
End Get
End Property
Public ReadOnly Property JoinCurveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 33)
End Get
End Property
Public ReadOnly Property ExplodeCurveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 34)
End Get
End Property
Public ReadOnly Property ThickCurveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 35)
End Get
End Property
Public ReadOnly Property MoveToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 36)
End Get
End Property
Public ReadOnly Property RotateToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 37)
End Get
End Property
Public ReadOnly Property Rotate3DToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 38)
End Get
End Property
Public ReadOnly Property MirrorToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 39)
End Get
End Property
Public ReadOnly Property Mirror3DToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 40)
End Get
End Property
Public ReadOnly Property ScaleToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 41)
End Get
End Property
Public ReadOnly Property Scale3DToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 42)
End Get
End Property
Public ReadOnly Property OffsetToolTip As String
Get
Return EgtMsg(MSG_DRAWMODE + 43)
End Get
End Property
' Definizione comandi
Private m_cmdPoint As ICommand
Private m_cmdLine2P As ICommand
Private m_cmdLinePDL As ICommand
Private m_cmdCircle As ICommand
Private m_cmdCircleCP As ICommand
Private m_cmdCircleCD As ICommand
Private m_cmdArcCSE As ICommand
Private m_cmdArc3P As ICommand
Private m_cmdArcPDP As ICommand
Private m_cmdFillet As ICommand
Private m_cmdChamfer As ICommand
Private m_cmdRectangle2P As ICommand
Private m_cmdPolygon As ICommand
Private m_cmdPolygonSide As ICommand
Private m_cmdText As ICommand
Private m_cmdPlane As ICommand
Private m_cmdExtrude As ICommand
@@ -27,18 +254,24 @@ Namespace EgtCAM5
Private m_cmdInvertSurf As ICommand
Private m_cmdDelete As ICommand
Private m_cmdChangeLayer As ICommand
Private m_cmdChangeAlpha As ICommand
Private m_cmdResetColor As ICommand
Private m_cmdChangeColor As ICommand
Private m_cmdInvertCurve As ICommand
Private m_cmdChangeStartCurve As ICommand
Private m_cmdExtendCurve As ICommand
Private m_cmdBreakCurve As ICommand
Private m_cmdSplitCurve As ICommand
Private m_cmdJoinCurve As ICommand
Private m_cmdExplodeCurve As ICommand
Private m_cmdSetCurveTh As ICommand
Private m_cmdMove As ICommand
Private m_cmdRotate As ICommand
Private m_cmdRotate3D As ICommand
Private m_cmdMirror As ICommand
Private m_cmdMirror3D As ICommand
Private m_cmdScale As ICommand
Private m_cmdScale3D As ICommand
Private m_cmdOffset As ICommand
@@ -136,35 +369,65 @@ Namespace EgtCAM5
#End Region ' LinePDLCommand
#Region "CircleCommand"
#Region "CircleCPCommand"
''' <summary>
''' Returns a command that do Circle.
''' Returns a command that do CircleCP.
''' </summary>
Public ReadOnly Property CircleCommand As ICommand
Public ReadOnly Property CircleCPCommand As ICommand
Get
If m_cmdCircle Is Nothing Then
m_cmdCircle = New RelayCommand(AddressOf Circle, AddressOf CanCircle)
If m_cmdCircleCP Is Nothing Then
m_cmdCircleCP = New RelayCommand(AddressOf CircleCP, AddressOf CanCircleCP)
End If
Return m_cmdCircle
Return m_cmdCircleCP
End Get
End Property
''' <summary>
''' Execute the Circle. This method is invoked by the CircleCommand.
''' Execute the CircleCP. This method is invoked by the CircleCPCommand.
''' </summary>
Public Sub Circle(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.CIRCLE)
Public Sub CircleCP(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.CIRCLECP)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanCircle(ByVal param As Object) As Boolean
Private Function CanCircleCP(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' CircleCommand
#End Region ' CircleCPCommand
#Region "CircleCDCommand"
''' <summary>
''' Returns a command that do CircleCD.
''' </summary>
Public ReadOnly Property CircleCDCommand As ICommand
Get
If m_cmdCircleCD Is Nothing Then
m_cmdCircleCD = New RelayCommand(AddressOf CircleCD, AddressOf CanCircleCD)
End If
Return m_cmdCircleCD
End Get
End Property
''' <summary>
''' Execute the CircleCD. This method is invoked by the CircleCDCommand.
''' </summary>
Public Sub CircleCD(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.CIRCLECD)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanCircleCD(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' CircleCDCommand
#Region "ArcCSECommand"
@@ -286,6 +549,36 @@ Namespace EgtCAM5
#End Region ' FilletCommand
#Region "ChamferCommand"
''' <summary>
''' Returns a command that do Chamfer.
''' </summary>
Public ReadOnly Property ChamferCommand As ICommand
Get
If m_cmdChamfer Is Nothing Then
m_cmdChamfer = New RelayCommand(AddressOf Chamfer, AddressOf CanChamfer)
End If
Return m_cmdChamfer
End Get
End Property
''' <summary>
''' Execute the Chamfer. This method is invoked by the ChamferCommand.
''' </summary>
Public Sub Chamfer(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.CHAMFER)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanChamfer(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' ChamferCommand
#Region "Rectangle2PCommand"
''' <summary>
@@ -346,6 +639,36 @@ Namespace EgtCAM5
#End Region ' PolygonCommand
#Region "PolygonSideCommand"
''' <summary>
''' Returns a command that do PolygonSide.
''' </summary>
Public ReadOnly Property PolygonSideCommand As ICommand
Get
If m_cmdPolygonSide Is Nothing Then
m_cmdPolygonSide = New RelayCommand(AddressOf PolygonSide, AddressOf CanPolygonSide)
End If
Return m_cmdPolygonSide
End Get
End Property
''' <summary>
''' Execute the PolygonSide. This method is invoked by the PolygonSideCommand.
''' </summary>
Public Sub PolygonSide(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.POLYGONSIDE)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanPolygonSide(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' PolygonSideCommand
#Region "TextCommand"
''' <summary>
@@ -676,6 +999,66 @@ Namespace EgtCAM5
#End Region ' ChangeLayerCommand
#Region "ChangeAlphaCommand"
''' <summary>
''' Returns a command that do ChangeAlpha.
''' </summary>
Public ReadOnly Property ChangeAlphaCommand As ICommand
Get
If m_cmdChangeAlpha Is Nothing Then
m_cmdChangeAlpha = New RelayCommand(AddressOf ChangeAlpha, AddressOf CanChangeAlpha)
End If
Return m_cmdChangeAlpha
End Get
End Property
''' <summary>
''' Execute the ChangeAlpha. This method is invoked by the ChangeAlphaCommand.
''' </summary>
Public Sub ChangeAlpha(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.CHANGEALPHA)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanChangeAlpha(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' ChangeAlphaCommand
#Region "ResetColorCommand"
''' <summary>
''' Returns a command that do ResetColor.
''' </summary>
Public ReadOnly Property ResetColorCommand As ICommand
Get
If m_cmdResetColor Is Nothing Then
m_cmdResetColor = New RelayCommand(AddressOf ResetColor, AddressOf CanResetColor)
End If
Return m_cmdResetColor
End Get
End Property
''' <summary>
''' Execute the ResetColor. This method is invoked by the ResetColorCommand.
''' </summary>
Public Sub ResetColor(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.RESETCOLOR)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanResetColor(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' ResetColorCommand
#Region "ChangeColorCommand"
''' <summary>
@@ -694,7 +1077,7 @@ Namespace EgtCAM5
''' Execute the ChangeColor. This method is invoked by the ChangeColorCommand.
''' </summary>
Public Sub ChangeColor(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.CHANGECOLOR)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.CHANGECOLOR)
End Sub
''' <summary>
@@ -814,7 +1197,7 @@ Namespace EgtCAM5
''' Execute the BreakCurve. This method is invoked by the BreakCurveCommand.
''' </summary>
Public Sub BreakCurve(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.BREAKCURVE)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.BREAKCURVE)
End Sub
''' <summary>
@@ -826,6 +1209,36 @@ Namespace EgtCAM5
#End Region ' BreakCurveCommand
#Region "SplitCurveCommand"
''' <summary>
''' Returns a command that do SplitCurve.
''' </summary>
Public ReadOnly Property SplitCurveCommand As ICommand
Get
If m_cmdSplitCurve Is Nothing Then
m_cmdSplitCurve = New RelayCommand(AddressOf SplitCurve, AddressOf CanSplitCurve)
End If
Return m_cmdSplitCurve
End Get
End Property
''' <summary>
''' Execute the SplitCurve. This method is invoked by the SplitCurveCommand.
''' </summary>
Public Sub SplitCurve(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.SPLITCURVE)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanSplitCurve(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' SplitCurveCommand
#Region "JoinCurveCommand"
''' <summary>
@@ -964,7 +1377,7 @@ Namespace EgtCAM5
''' Execute the Rotate. This method is invoked by the RotateCommand.
''' </summary>
Public Sub Rotate(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.ROTATE)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.ROTATE)
End Sub
''' <summary>
@@ -976,6 +1389,36 @@ Namespace EgtCAM5
#End Region ' RotateCommand
#Region "Rotate3DCommand"
''' <summary>
''' Returns a command that do Rotate3D.
''' </summary>
Public ReadOnly Property Rotate3DCommand As ICommand
Get
If m_cmdRotate3D Is Nothing Then
m_cmdRotate3D = New RelayCommand(AddressOf Rotate3D, AddressOf CanRotate3D)
End If
Return m_cmdRotate3D
End Get
End Property
''' <summary>
''' Execute the Rotate3D. This method is invoked by the Rotate3DCommand.
''' </summary>
Public Sub Rotate3D(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.ROTATE3D)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanRotate3D(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' Rotate3DCommand
#Region "MirrorCommand"
''' <summary>
@@ -994,7 +1437,7 @@ Namespace EgtCAM5
''' Execute the Mirror. This method is invoked by the MirrorCommand.
''' </summary>
Public Sub Mirror(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.MIRROR)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.MIRROR)
End Sub
''' <summary>
@@ -1006,6 +1449,36 @@ Namespace EgtCAM5
#End Region ' MirrorCommand
#Region "Mirror3DCommand"
''' <summary>
''' Returns a command that do Mirror3D.
''' </summary>
Public ReadOnly Property Mirror3DCommand As ICommand
Get
If m_cmdMirror3D Is Nothing Then
m_cmdMirror3D = New RelayCommand(AddressOf Mirror3D, AddressOf CanMirror3D)
End If
Return m_cmdMirror3D
End Get
End Property
''' <summary>
''' Execute the Mirror3D. This method is invoked by the Mirror3DCommand.
''' </summary>
Public Sub Mirror3D(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.MIRROR3D)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanMirror3D(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' Mirror3DCommand
#Region "ScaleCommand"
''' <summary>
@@ -1024,7 +1497,7 @@ Namespace EgtCAM5
''' Execute the Scale. This method is invoked by the ScaleCommand.
''' </summary>
Public Sub Scale(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.SCALE)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.SCALE)
End Sub
''' <summary>
@@ -1036,6 +1509,36 @@ Namespace EgtCAM5
#End Region ' ScaleCommand
#Region "Scale3DCommand"
''' <summary>
''' Returns a command that do Scale3D.
''' </summary>
Public ReadOnly Property Scale3DCommand As ICommand
Get
If m_cmdScale3D Is Nothing Then
m_cmdScale3D = New RelayCommand(AddressOf Scale3D, AddressOf CanScale3D)
End If
Return m_cmdScale3D
End Get
End Property
''' <summary>
''' Execute the Scale3D. This method is invoked by the Scale3DCommand.
''' </summary>
Public Sub Scale3D(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.EXECUTECOMMAND, Controller.CMD.SCALE3D)
End Sub
''' <summary>
''' Returns always true.
''' </summary>
Private Function CanScale3D(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' Scale3DCommand
#Region "OffsetCommand"
''' <summary>
@@ -1,6 +1,13 @@
<UserControl x:Class="DrawOptionPanelView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="200">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="200"
xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity">
<interactivity:Interaction.Triggers>
<interactivity:EventTrigger EventName="Closing">
<interactivity:InvokeCommandAction Command="{Binding ClosingCommand}"/>
</interactivity:EventTrigger>
</interactivity:Interaction.Triggers>
<StackPanel Background="DarkGray">
<UniformGrid Rows="1">
@@ -8,11 +15,13 @@
<RadioButton Style="{StaticResource DrawOptionPanel_ToggleButton}" Content="MACHINING" Height="30" IsChecked="{Binding WorkIsChecked}"/>
</UniformGrid>
<!--ContentPresenter that contains the ManageLayerExpander-->
<ContentPresenter Content="{Binding ManageLayerExpander}"/>
<ContentPresenter Content="{Binding ManageLayerExpander,Mode=OneWay}"/>
<!--ContentPresenter that contains the InfoExpander-->
<ContentPresenter Content="{Binding InfoExpander}"/>
<!--ContentPresenter that contains the InputExpander-->
<ContentPresenter Content="{Binding InputExpander}"/>
<!--ContentPresenter that contains the SimulationExpander-->
<ContentPresenter Content="{Binding SimulationExpander}"/>
</StackPanel>
</UserControl>
@@ -19,6 +19,9 @@ Namespace EgtCAM5
EgtZoom(ZM.ALL)
End If
OnPropertyChanged("ManageLayerExpander")
OnPropertyChanged("InfoExpander")
OnPropertyChanged("InputExpander")
OnPropertyChanged("SimulationExpander")
End If
End Set
End Property
@@ -40,9 +43,11 @@ Namespace EgtCAM5
EgtAddMachGroup("Mach01", "CMS-PF122R8RR")
End If
EgtZoom(ZM.ALL)
Application.Msn.NotifyColleagues(Application.LOADOPERATIONLIST)
End If
OnPropertyChanged("ManageLayerExpander")
OnPropertyChanged("InfoExpander")
OnPropertyChanged("InputExpander")
OnPropertyChanged("SimulationExpander")
End If
End Set
End Property
@@ -63,38 +68,108 @@ Namespace EgtCAM5
m_OperationExpander = New OperationExpanderView
m_OperationExpander.DataContext = New OperationExpanderViewModel
End If
Application.Msn.NotifyColleagues(Application.LOADOPERATIONLIST)
Return m_OperationExpander
End If
End Get
End Property
Private m_InputExpander As InputExpanderView
Public ReadOnly Property InputExpander As InputExpanderView
Private m_OperationPropertyExpander As OperationPropertyExpanderView
Private m_InfoExpander As InfoExpanderView
Public ReadOnly Property InfoExpander As ContentControl
Get
If IsNothing(m_InputExpander) Then
m_InputExpander = New InputExpanderView
m_InputExpander.DataContext = New InputExpanderViewModel
If m_DrawIsChecked Then
If IsNothing(m_InfoExpander) Then
m_InfoExpander = New InfoExpanderView
m_InfoExpander.DataContext = New InfoExpanderViewModel
End If
Return m_InfoExpander
Else
If IsNothing(m_OperationPropertyExpander) Then
m_OperationPropertyExpander = New OperationPropertyExpanderView
m_OperationPropertyExpander.DataContext = New OperationPropertyExpanderViewModel
End If
Return m_OperationPropertyExpander
End If
Return m_InputExpander
End Get
End Property
Private m_InfoExpander As InfoExpanderView
Public ReadOnly Property InfoExpander As InfoExpanderView
Private m_MachiningsTreeExpander As MachiningTreeExpanderView
Private m_InputExpander As InputExpanderView
Public ReadOnly Property InputExpander As ContentControl
Get
If IsNothing(m_InfoExpander) Then
m_InfoExpander = New InfoExpanderView
m_InfoExpander.DataContext = New InfoExpanderViewModel
If m_DrawIsChecked Then
If IsNothing(m_InputExpander) Then
m_InputExpander = New InputExpanderView
m_InputExpander.DataContext = New InputExpanderViewModel
End If
Return m_InputExpander
Else
If IsNothing(m_MachiningsTreeExpander) Then
m_MachiningsTreeExpander = New MachiningTreeExpanderView
m_MachiningsTreeExpander.DataContext = New MachiningTreeExpanderViewModel
End If
Return m_MachiningsTreeExpander
End If
Return m_InfoExpander
End Get
End Property
Private m_SimulationExpander As SimulationExpanderView
Public ReadOnly Property SimulationExpander As ContentControl
Get
If m_DrawIsChecked Then
Return Nothing
Else
If IsNothing(m_SimulationExpander) Then
m_SimulationExpander = New SimulationExpanderView
m_SimulationExpander.DataContext = New SimulationExpanderViewModel
End If
Return m_SimulationExpander
End If
End Get
End Property
' Definizione comandi
Private m_cmdClosing As ICommand
Sub New()
' Inizializzo la selezione della modilità Draw all'apertura del programma
DrawIsChecked = True
End Sub
#Region "COMMANDS"
#Region "ClosingCommand"
''' <summary>
''' Returns a command that create a new tool.
''' </summary>
Public ReadOnly Property ClosingCommand As ICommand
Get
If m_cmdClosing Is Nothing Then
m_cmdClosing = New RelayCommand(AddressOf Closing, AddressOf CanClosing)
End If
Return m_cmdClosing
End Get
End Property
''' <summary>
''' Creata the new tool. This method is invoked by the NewCommand.
''' </summary>
Public Sub Closing(ByVal param As Object)
Application.Msn.NotifyColleagues(Application.DRAWOPTIONPANEL_CLOSING)
End Sub
''' <summary>
''' Returns true if the selected treeviewitem is valid for new tool creation.
''' </summary>
Private Function CanClosing(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' ClosingCommand
#End Region ' Commands
End Class
End Namespace
@@ -0,0 +1,11 @@
<UserControl x:Class="MachiningTreeExpanderView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Expander Header="Machinings List" IsExpanded="{Binding IsEnabled}">
<UniformGrid>
<TextBox Text="{Binding InfoBox}"/>
</UniformGrid>
</Expander>
</UserControl>
@@ -0,0 +1,3 @@
Public Class MachiningTreeExpanderView
End Class
@@ -0,0 +1,7 @@
Namespace EgtCAM5
Public Class MachiningTreeExpanderViewModel
End Class
End Namespace
@@ -18,7 +18,7 @@
<Button Content="New Layer" Command="{Binding NewLayerCommand}" Height="40"/>
<Button Content="Color" Command="{Binding LayerColorCommand}" Height="40"/>
</UniformGrid>
<TreeView Name="LayerTreeView" Height="400"
<TreeView Name="LayerTreeView" MaxHeight="400"
ItemsSource="{Binding Path=LayerList}">
<interactivity:Interaction.Triggers>
<interactivity:EventTrigger EventName="MouseDoubleClick">
@@ -321,8 +321,8 @@ Namespace EgtCAM5
Else
sText = sTitle + " " + nId.ToString
End If
Dim CurrColor As Color3d
EgtGetCalcColor(nGroupId, CurrColor)
Dim CurrColor As New Color3d(0, 0, 0, 0)
EgtGetColor(nId, CurrColor)
Dim sImage As String = TypeToImageInObjTree(nType, nDepth)
Dim CurrNod As LayerTreeViewItem = New LayerTreeViewItem(nId, sText, sImage, CurrColor)
CurrNodColl.Add(CurrNod)
@@ -11,7 +11,8 @@
<Button Content="New Positioning" Command="{Binding NewPositioningCommand}" Height="40"/>
<Button Content="Cancel Operation" Command="{Binding CancelOperationCommand}" Height="40"/>
</UniformGrid>
<ListBox ItemsSource="{Binding OperationList}" SelectedItem="{Binding SelectedOperation}">
<ListBox ItemsSource="{Binding OperationList}" SelectedItem="{Binding SelectedOperation}"
MaxHeight="400">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
@@ -143,6 +143,7 @@ Namespace EgtCAM5
#End Region ' Commands
Private Sub LoadOperationList()
OperationList.Clear()
Dim Id As Integer
Dim OpName As String = String.Empty
Dim OpType As Integer = 0
@@ -0,0 +1,11 @@
<UserControl x:Class="OperationPropertyExpanderView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Expander Header="Operation Parameters" IsExpanded="{Binding IsEnabled}">
<UniformGrid>
<TextBox Text="{Binding InfoBox}"/>
</UniformGrid>
</Expander>
</UserControl>
@@ -0,0 +1,3 @@
Public Class OperationPropertyExpanderView
End Class
@@ -0,0 +1,7 @@
Namespace EgtCAM5
Public Class OperationPropertyExpanderViewModel
End Class
End Namespace
@@ -0,0 +1,83 @@
<UserControl x:Class="SimulationExpanderView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
<Expander Header="Simulation" IsExpanded="{Binding IsExpanded}">
<StackPanel >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="0.5*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding L1Name}" Grid.Column="0" Grid.Row="0" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding L1Value}" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding L2Name}" Grid.Column="0" Grid.Row="1" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding L2Value}" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding L3Name}" Grid.Column="0" Grid.Row="2" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding L3Value}" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding R1Name}" Grid.Column="0" Grid.Row="3" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding R1Value}" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding R2Name}" Grid.Column="0" Grid.Row="4" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
<EgtWPFLib5:EgtTextBox Text="{Binding R2Value}" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding GCode}" Grid.Column="0" Grid.Row="5" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" />
<EgtWPFLib5:EgtTextBox Text="{Binding FValue}" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2"
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
<TextBlock Text="{Binding TName}" Grid.Column="0" Grid.Row="6" FontSize="15" HorizontalAlignment="Center"
VerticalAlignment="Center" TextAlignment="Center" Margin="0,0,-50,0" />
<TextBlock Text="{Binding SValue}" Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="2" FontSize="15" HorizontalAlignment="Right"
VerticalAlignment="Center" TextAlignment="Right" Margin="0,0,50,0" />
</Grid>
<UniformGrid Columns="3" Margin="0,10,0,0">
<Button Command="{Binding StepCommand}" Grid.Column="0" Grid.Row="3" Style="{StaticResource EgtCAM5_SimulationButton}">
<Image Source="/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/PlayStep.png"
HorizontalAlignment="Center" VerticalAlignment="Center"
Height="50" Width="50"/>
</Button>
<Button Command="{Binding PlayPauseCommand}" Grid.Column="1" Grid.Row="3" Style="{StaticResource EgtCAM5_SimulationButton}">
<Image Source="{Binding PlayPauseImage}" HorizontalAlignment="Center"
VerticalAlignment="Center" Height="50" Width="50"/>
</Button>
<Button Command="{Binding StopCommand}" Grid.Column="2" Grid.Row="3" Style="{StaticResource EgtCAM5_SimulationButton}">
<Image Source="/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/Stop.png"
HorizontalAlignment="Center" VerticalAlignment="Center"
Height="50" Width="50"/>
</Button>
</UniformGrid>
<Slider Name="SpeedSlider" Grid.Row="5" Grid.ColumnSpan="3" Width="230" Height="40"
Minimum="1" Maximum="100" TickPlacement="BottomRight" TickFrequency="10"
Margin="10,10,10,0" Value="{Binding SliderValue}"/>
</StackPanel>
</Expander>
</UserControl>
@@ -0,0 +1,3 @@
Public Class SimulationExpanderView
End Class
@@ -0,0 +1,611 @@
Imports EgtUILib
Namespace EgtCAM5
Public Class SimulationExpanderViewModel
Inherits ViewModelBase
#Region "FIELDS & PROPERTIES"
'EGT PROPERTIES
' Stato di visualizzazione della macchina
Private m_nMachLook As Integer = MCH_LOOK.ALL
' Utensile corrente
Private m_sCurrTool As String = String.Empty
' Stato e comando correnti
Public Enum SIM_ST As Integer
ST_STOP = 1
ST_PLAY = 2
ST_STEP = 3
ST_PAUSE = 4
End Enum
Private m_nStatus As Integer = SIM_ST.ST_STOP
' Stato bottone Play
Private m_bPlay As Boolean = True
' Coefficiente per valore Slider
Private m_SliderX As Double = 1
'GRAPHICAL PROPERTIES
Private m_IsExpanded As Boolean
Public Property IsExpanded As Boolean
Get
Return m_IsExpanded
End Get
Set(value As Boolean)
If value <> m_IsExpanded Then
If value Then
InitializeSimulation()
Else
CloseSimulation()
End If
m_IsExpanded = value
OnPropertyChanged("IsExpanded")
End If
End Set
End Property
Private m_L1Name As String
Public Property L1Name As String
Get
Return m_L1Name
End Get
Set(value As String)
If value <> m_L1Name Then
m_L1Name = value
OnPropertyChanged("L1Name")
End If
End Set
End Property
Private m_L1Value As String
Public Property L1Value As String
Get
Return m_L1Value
End Get
Set(value As String)
If value <> m_L1Value Then
m_L1Value = value
OnPropertyChanged("L1Value")
End If
End Set
End Property
Private m_L2Name As String
Public Property L2Name As String
Get
Return m_L2Name
End Get
Set(value As String)
If value <> m_L2Name Then
m_L2Name = value
OnPropertyChanged("L2Name")
End If
End Set
End Property
Private m_L2Value As String
Public Property L2Value As String
Get
Return m_L2Value
End Get
Set(value As String)
If value <> m_L2Value Then
m_L2Value = value
OnPropertyChanged("L2Value")
End If
End Set
End Property
Private m_L3Name As String
Public Property L3Name As String
Get
Return m_L3Name
End Get
Set(value As String)
If value <> m_L3Name Then
m_L3Name = value
OnPropertyChanged("L3Name")
End If
End Set
End Property
Private m_L3Value As String
Public Property L3Value As String
Get
Return m_L3Value
End Get
Set(value As String)
If value <> m_L2Value Then
m_L3Value = value
OnPropertyChanged("L3Value")
End If
End Set
End Property
Private m_R1Name As String
Public Property R1Name As String
Get
Return m_R1Name
End Get
Set(value As String)
If value <> m_R1Name Then
m_R1Name = value
OnPropertyChanged("R1Name")
End If
End Set
End Property
Private m_R1Value As String
Public Property R1Value As String
Get
Return m_R1Value
End Get
Set(value As String)
If value <> m_L2Value Then
m_R1Value = value
OnPropertyChanged("R1Value")
End If
End Set
End Property
Private m_R2Name As String
Public Property R2Name As String
Get
Return m_R2Name
End Get
Set(value As String)
If value <> m_R2Name Then
m_R2Name = value
OnPropertyChanged("R2Name")
End If
End Set
End Property
Private m_R2Value As String
Public Property R2Value As String
Get
Return m_R2Value
End Get
Set(value As String)
If value <> m_L2Value Then
m_R2Value = value
OnPropertyChanged("R2Value")
End If
End Set
End Property
Private m_GCode As String
Public Property GCode As String
Get
Return m_GCode
End Get
Set(value As String)
If value <> m_GCode Then
m_GCode = value
OnPropertyChanged("GCode")
End If
End Set
End Property
Private m_FValue As String
Public Property FValue As String
Get
Return m_FValue
End Get
Set(value As String)
If value <> m_FValue Then
m_FValue = value
OnPropertyChanged("FValue")
End If
End Set
End Property
Private m_TName As String
Public Property TName As String
Get
Return m_TName
End Get
Set(value As String)
If value <> m_TName Then
m_TName = value
OnPropertyChanged("TName")
End If
End Set
End Property
Private m_SValue As String
Public Property SValue As String
Get
Return m_SValue
End Get
Set(value As String)
If value <> m_SValue Then
m_SValue = value
OnPropertyChanged("SValue")
End If
End Set
End Property
Private m_PlayPauseImage As String
Public ReadOnly Property PlayPauseImage As String
Get
Select Case m_bPlay
Case False
Return "/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/Pause.png"
Case True
Return "/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/Play.png"
Case Else
Return ""
End Select
End Get
End Property
Private m_SliderValue As Double
Public Property SliderValue As Double
Get
Return m_SliderValue
End Get
Set(value As Double)
If value <> m_SliderValue Then
m_SliderValue = value
EgtSimSetStep(value * m_SliderX)
OnPropertyChanged("SliderValue")
End If
End Set
End Property
' Definizione comandi
Private m_cmdStep As ICommand
Private m_cmdPlayPause As ICommand
Private m_cmdStop As ICommand
#End Region
#Region "CONSTRUCTOR"
Sub New()
Application.Msn.Register(Application.DRAWOPTIONPANEL_CLOSING, Sub()
If IsExpanded Then
ResetSimulation()
End If
End Sub)
End Sub
#End Region
#Region "COMMANDS"
#Region "StepCommand"
''' <summary>
''' Returns a command that create a new tool.
''' </summary>
Public ReadOnly Property StepCommand As ICommand
Get
If m_cmdStep Is Nothing Then
m_cmdStep = New RelayCommand(AddressOf StepCmd, AddressOf CanStep)
End If
Return m_cmdStep
End Get
End Property
''' <summary>
''' Creata the new tool. This method is invoked by the NewCommand.
''' </summary>
Public Sub StepCmd(ByVal param As Object)
'm_CurrProjPage.ClearMessage()
' Se stato stop, devo avviare simulazione
If m_nStatus = SIM_ST.ST_STOP Then
m_nStatus = SIM_ST.ST_STEP
ExecSim()
' Aggiorno bottone
'SetPlayPauseBtnToPlay()
' Alrimenti imposto solo il nuovo stato
Else
m_nStatus = SIM_ST.ST_STEP
' Aggiornamenti per bottone Play/Pause
'SetPlayPauseBtnToPause()
End If
End Sub
''' <summary>
''' Returns true if the selected treeviewitem is valid for new tool creation.
''' </summary>
Private Function CanStep(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' StepCommand
#Region "PlayPauseCommand"
''' <summary>
''' Returns a command that create a new tool.
''' </summary>
Public ReadOnly Property PlayPauseCommand As ICommand
Get
If m_cmdPlayPause Is Nothing Then
m_cmdPlayPause = New RelayCommand(AddressOf PlayPause, AddressOf CanPlayPause)
End If
Return m_cmdPlayPause
End Get
End Property
''' <summary>
''' Creata the new tool. This method is invoked by the NewCommand.
''' </summary>
Public Sub PlayPause(ByVal param As Object)
'm_CurrProjPage.ClearMessage()
If m_bPlay Then
' Aggiorno bottone
m_bPlay = False
OnPropertyChanged("PlayPauseImage")
' Eseguo
If m_nStatus = SIM_ST.ST_STOP Then
' Lancio simulazione
m_nStatus = SIM_ST.ST_PLAY
ExecSim()
' Aggiorno bottone
m_bPlay = True
OnPropertyChanged("PlayPauseImage")
ElseIf m_nStatus = SIM_ST.ST_PAUSE Then
m_nStatus = SIM_ST.ST_PLAY
End If
Else
' Aggiorno bottone
m_bPlay = True
OnPropertyChanged("PlayPauseImage")
' Se play o step, imposto stato pausa
If m_nStatus = SIM_ST.ST_PLAY Or m_nStatus = SIM_ST.ST_STEP Then
m_nStatus = SIM_ST.ST_PAUSE
End If
End If
End Sub
''' <summary>
''' Returns true if the selected treeviewitem is valid for new tool creation.
''' </summary>
Private Function CanPlayPause(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' PlayPauseCommand
#Region "StopCommand"
''' <summary>
''' Returns a command that create a new tool.
''' </summary>
Public ReadOnly Property StopCommand As ICommand
Get
If m_cmdStop Is Nothing Then
m_cmdStop = New RelayCommand(AddressOf StopCmd, AddressOf CanStop)
End If
Return m_cmdStop
End Get
End Property
''' <summary>
''' Creata the new tool. This method is invoked by the NewCommand.
''' </summary>
Public Sub StopCmd(ByVal param As Object)
'm_CurrProjPage.ClearMessage()
' Se stato già stop, porto in home
If m_nStatus = SIM_ST.ST_STOP Then
' Vado in home
EgtSimHome()
' Imposto prima fase
EgtSetCurrPhase(1, True)
' Aggiorno visualizzazione
EgtDraw()
' Aggiorno dati CNC
ShowCncData()
End If
' Imposto il nuovo stato
m_nStatus = SIM_ST.ST_STOP
End Sub
''' <summary>
''' Returns true if the selected treeviewitem is valid for new tool creation.
''' </summary>
Private Function CanStop(ByVal param As Object) As Boolean
Return True
End Function
#End Region ' StopCommand
#End Region
#Region "METHODS"
Private Sub InitializeSimulation()
' Imposto prima fase
EgtSetCurrPhase(1)
' Costringo ad aggiornare UI
UpdateUI()
' Imposto stato corrente
m_nStatus = SIM_ST.ST_STOP
m_bPlay = True
m_SliderX = GetPrivateProfileDouble(S_SIMUL, K_SLIDERX, 1)
Dim SliderVal As Double = GetPrivateProfileDouble(S_SIMUL, K_SLIDERVAL, 10)
SliderValue = SliderVal
' Porto la testa in home
EgtSimStart()
EgtSimHome()
LoadCurrTools()
EgtDraw()
ShowCncData()
End Sub
Private Sub CloseSimulation()
' Mi assicuro di terminare la simulazione
ResetSimulation()
' Nascondo tutte le lavorazioni
'HideAllMachinings()
' Cancello eventuali messaggi
'm_CurrProjPage.ClearMessage()
End Sub
Private Sub ResetSimulation()
' Termino la simulazione
m_nStatus = SIM_ST.ST_STOP
EgtSimStop()
' Salvo valore dello slider
Dim sVal As String = DoubleToString(SliderValue, 1)
WritePrivateProfileString(S_SIMUL, K_SLIDERVAL, sVal)
' Torno alla prima fase
EgtSetCurrPhase(1, True)
' Ripristino visibilità standard
'EgtSetMachineLook(MCH_LOOK.TAB)
End Sub
Private Sub ExecSim()
EgtSimStart()
LoadCurrTools()
EgtSimSetStep(SliderValue * m_SliderX)
While m_nStatus <> SIM_ST.ST_STOP
' Se simulazione in svolgimento
If m_nStatus = SIM_ST.ST_PLAY Or m_nStatus = SIM_ST.ST_STEP Then
' Eseguo movimento
Dim nMove As Integer
Dim bMove As Boolean = EgtSimMove(nMove)
' Se arrivato a fine step e sono in step
If bMove Then
If m_nStatus = SIM_ST.ST_STEP And nMove = MCH_SIM.END_STEP Then
' Imposto stato Pausa
m_nStatus = SIM_ST.ST_PAUSE
' Aggiornamenti per bottone Play/Pause
'SetPlayPauseBtnToPlay()
m_bPlay = True
OnPropertyChanged("PlayPauseImage")
End If
' Se movimento non riuscito
Else
m_nStatus = SIM_ST.ST_STOP
m_bPlay = True
OnPropertyChanged("PlayPauseImage")
' Aggiornamenti per bottone Play/Pause
'SetPlayPauseBtnToPlay()
'Select Case nMove
' Case MCH_SIM.END_
' m_CurrProjPage.SetInfoMessage(EgtMsg(MSG_SIMULATIONPAGEUC + 1)) 'Simulazione completata
' Case MCH_SIM.OUTSTROKE
' Dim sInfo As String = String.Empty
' EgtGetOutstrokeInfo(sInfo)
' m_CurrProjPage.SetErrorMessage(EgtMsg(MSG_SIMULATIONPAGEUC + 2) & " " & sInfo) 'Extracorsa ...
' Case MCH_SIM.DIR_ERR
' m_CurrProjPage.SetErrorMessage(EgtMsg(MSG_SIMULATIONPAGEUC + 3)) 'Direzione utensile irraggiungibile
' Case Else
' m_CurrProjPage.SetErrorMessage(EgtMsg(MSG_SIMULATIONPAGEUC + 4)) 'Errore
'End Select
End If
' Aggiorno stato visualizzazione macchina (dipende anche da utensile)
'UpdateMachView()
' Aggiorno visualizzazione
EgtDraw()
' Aggiorno dati CNC
ShowCncData()
Else
' Per evitare di ciclare rapidissimamente e consumare inutilmente CPU
System.Threading.Thread.Sleep(1)
End If
'' Costringo ad aggiornare UI
UpdateUI()
End While
End Sub
Private Sub ShowCncData()
' Assi
ShowAxisNameVal(0, L1Name, L1Value)
ShowAxisNameVal(1, L2Name, L2Value)
ShowAxisNameVal(2, L3Name, L3Value)
ShowAxisNameVal(3, R1Name, R1Value)
ShowAxisNameVal(4, R2Name, R2Value)
' Tipo di movimento e feed
ShowMoveTypeFeed()
' Nome utensile e speed
ShowToolNameSpeed()
End Sub
Private Function ShowAxisNameVal(ByVal nInd As Integer, ByRef sName As String, ByRef sVal As String) As Boolean
Dim sInfo As String = String.Empty
Dim dVal As Double = 0
If EgtSimGetAxisInfoPos(nInd, sInfo, dVal) Then
sName = sInfo
sVal = If(nInd < 3, LenToString(dVal, -3), DoubleToString(dVal, -3))
Return True
Else
sName = String.Empty
sVal = String.Empty
Return False
End If
End Function
Private Function ShowMoveTypeFeed() As Boolean
Dim nG As Integer = 0
Dim dFeed As Double = 0
If EgtSimGetMoveInfo(nG, dFeed) Then
If nG <> 0 Then
GCode = "G" & nG.ToString()
FValue = "F" & LenToString(dFeed, 0)
Else
GCode = "G" & nG.ToString()
FValue = ""
End If
Return True
Else
GCode = ""
FValue = ""
Return False
End If
End Function
Private Function ShowToolNameSpeed() As Boolean
Dim sTool As String = String.Empty
Dim dSpeed As Double = 0
If EgtSimGetToolInfo(sTool, dSpeed) Then
TName = sTool
SValue = "S" & DoubleToString(dSpeed, 0)
Return True
Else
TName = ""
SValue = ""
Return False
End If
End Function
Private Function LoadCurrTools() As Boolean
'' Imposto la lama corrente
'Dim sSaw As String = m_MainWindow.m_CurrentMachine.sCurrSaw
'If Not EgtLoadTool("H1", 1, sSaw) Then
' Return False
'End If
'' Imposto eventuale secondo utensile montato
'If m_MainWindow.m_CurrentMachine.MountedToolConfig = CurrentMachine.MountedToolConfigs.SAWANDAUXTOOL Then
' Dim sTool As String = m_MainWindow.m_CurrentMachine.sCurrDrill
' If String.IsNullOrEmpty(sTool) Then sTool = m_MainWindow.m_CurrentMachine.sCurrMill
' If Not String.IsNullOrEmpty(sTool) AndAlso Not EgtLoadTool("H1", 2, sTool) Then
' Return False
' End If
'End If
Return True
End Function
Private Sub UpdateMachView()
' Se cambiato utensile, aggiorno stato visualizzazione macchina
Dim sTool As String = String.Empty
Dim dSpeed As Double = 0
If EgtSimGetToolInfo(sTool, dSpeed) Then
If sTool <> m_sCurrTool Then
m_sCurrTool = sTool
EgtSetMachineLook(m_nMachLook)
End If
End If
End Sub
#End Region
End Class
End Namespace
+6 -53
View File
@@ -97,6 +97,7 @@ Namespace EgtCAM5
RegisterControllerCommands()
ManageTopCommandBar()
' Funzione che contiene la registrazione di tutti le funzioni del DrawPanel
RegisterGridViewPanelCommands()
RegisterDrawPanelCommands()
' Funzione che contiene la registrazione di tutti i comandi del DrawOptionPanel
RegisterDrawOptionPanelCommands()
@@ -241,7 +242,7 @@ Namespace EgtCAM5
''' <summary>
''' Method that manage the visibility of the ProjectPage's Panels
''' </summary>
Sub RegisterDrawPanelCommands()
Sub RegisterGridViewPanelCommands()
Application.Msn.Register(Application.WIREFRAME, Sub()
m_ProjectScene.WireFrame()
End Sub)
@@ -346,6 +347,9 @@ Namespace EgtCAM5
Application.Msn.Register(Application.CPLANEOBJ, Sub()
m_Controller.ExecuteCommand(Controller.CMD.GRID_OBJ)
End Sub)
End Sub
Sub RegisterDrawPanelCommands()
Application.Msn.Register(Application.POINT, Sub()
If (Keyboard.Modifiers And ModifierKeys.Control) = ModifierKeys.Control Then
m_Controller.ExecuteCommand(Controller.CMD.FRAME)
@@ -369,13 +373,6 @@ Namespace EgtCAM5
m_Controller.ExecuteCommand(Controller.CMD.LINEPVL)
End If
End Sub)
Application.Msn.Register(Application.CIRCLE, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.CIRCLECP)
Else
m_Controller.ExecuteCommand(Controller.CMD.CIRCLECD)
End If
End Sub)
Application.Msn.Register(Application.ARCPDP, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
If (Keyboard.Modifiers And ModifierKeys.Control) = ModifierKeys.Control Then
@@ -387,14 +384,7 @@ Namespace EgtCAM5
m_Controller.ExecuteCommand(Controller.CMD.ARCPVP)
End If
End Sub)
Application.Msn.Register(Application.FILLET, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.FILLET)
Else
m_Controller.ExecuteCommand(Controller.CMD.CHAMFER)
End If
End Sub)
Application.Msn.Register(Application.POLYGON, Sub()
Application.Msn.Register(Application.POLYGON, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.POLYGON)
Else
@@ -419,22 +409,6 @@ Namespace EgtCAM5
m_Controller.SetLastInteger(GDB_ID.SEL)
m_Controller.ExecuteCommand(Controller.CMD.DELETE)
End Sub)
Application.Msn.Register(Application.CHANGECOLOR, Sub()
If (Keyboard.Modifiers And ModifierKeys.Control) = ModifierKeys.Control Then
m_Controller.ExecuteCommand(Controller.CMD.CHANGEALPHA)
ElseIf (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.RESETCOLOR)
Else
m_Controller.ExecuteCommand(Controller.CMD.CHANGECOLOR)
End If
End Sub)
Application.Msn.Register(Application.BREAKCURVE, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.BREAKCURVE)
Else
m_Controller.ExecuteCommand(Controller.CMD.SPLITCURVE)
End If
End Sub)
Application.Msn.Register(Application.JOINCURVE, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.SetLastBoolean(False)
@@ -443,27 +417,6 @@ Namespace EgtCAM5
End If
m_Controller.ExecuteCommand(Controller.CMD.JOINCURVE)
End Sub)
Application.Msn.Register(Application.ROTATE, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.ROTATE)
Else
m_Controller.ExecuteCommand(Controller.CMD.ROTATE3D)
End If
End Sub)
Application.Msn.Register(Application.MIRROR, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.MIRROR)
Else
m_Controller.ExecuteCommand(Controller.CMD.MIRROR3D)
End If
End Sub)
Application.Msn.Register(Application.SCALE, Sub()
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
m_Controller.ExecuteCommand(Controller.CMD.SCALE)
Else
m_Controller.ExecuteCommand(Controller.CMD.SCALE3D)
End If
End Sub)
End Sub
Sub RegisterDrawOptionPanelCommands()
Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

+52 -52
View File
@@ -173,11 +173,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding CorrTxBl}"
<TextBlock Text="{Binding CorrTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Corr}}"/>
<EgtWPFLib5:EgtTextBox Name="CorrTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="CorrTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Corr,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -201,11 +201,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ExitParTxBl}"
<TextBlock Text="{Binding ExitParTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource ExitPar}}"/>
<EgtWPFLib5:EgtTextBox Name="ExitParTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="ExitParTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.ExitPar,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -257,11 +257,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding CoolantTxBl}"
<TextBlock Text="{Binding CoolantTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Coolant}}"/>
<EgtWPFLib5:EgtTextBox Name="CoolantTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="CoolantTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Coolant,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -285,11 +285,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding CornRadTxBl}"
<TextBlock Text="{Binding CornRadTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource CornRad}}"/>
<EgtWPFLib5:EgtTextBox Name="CornRadTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="CornRadTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.CornRad,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -313,11 +313,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DiamTxBl}"
<TextBlock Text="{Binding DiamTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Diam}}"/>
<EgtWPFLib5:EgtTextBox Name="DiamTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="DiamTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Diam,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
@@ -342,11 +342,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TotDiamTxBl}"
<TextBlock Text="{Binding TotDiamTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource TotDiam}}"/>
<EgtWPFLib5:EgtTextBox Name="TotDiamTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TotDiamTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.TotDiam,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -370,11 +370,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding FeedTxBl}"
<TextBlock Text="{Binding FeedTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Feed}}"/>
<EgtWPFLib5:EgtTextBox Name="FeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="FeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Feed,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -398,11 +398,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding EndFeedTxBl}"
<TextBlock Text="{Binding EndFeedTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource EndFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="EndFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="EndFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.EndFeed,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -426,11 +426,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding StartFeedTxBl}"
<TextBlock Text="{Binding StartFeedTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource StartFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="StartFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="StartFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.StartFeed,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -454,11 +454,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TipFeedTxBl}"
<TextBlock Text="{Binding TipFeedTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource TipFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="TipFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TipFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.TipFeed,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -482,11 +482,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LenTxBl}"
<TextBlock Text="{Binding LenTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Len}}"/>
<EgtWPFLib5:EgtTextBox Name="LenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Len,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
@@ -511,11 +511,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TotLenTxBl}"
<TextBlock Text="{Binding TotLenTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource TotLen}}"/>
<EgtWPFLib5:EgtTextBox Name="TotLenTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TotLenTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.TotLen,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
@@ -540,11 +540,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding MaxMatTxBl}"
<TextBlock Text="{Binding MaxMatTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource MaxMat}}"/>
<EgtWPFLib5:EgtTextBox Name="MaxMatTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="MaxMatTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.MaxMat,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
@@ -569,11 +569,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding LonOffsetTxBl}"
<TextBlock Text="{Binding LonOffsetTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource LonOffset}}"/>
<EgtWPFLib5:EgtTextBox Name="LonOffsetTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="LonOffsetTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.LonOffset,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -597,11 +597,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding RadOffsetTxBl}"
<TextBlock Text="{Binding RadOffsetTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource RadOffset}}"/>
<EgtWPFLib5:EgtTextBox Name="RadOffsetTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="RadOffsetTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.RadOffset,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -625,11 +625,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding SpeedTxBl}"
<TextBlock Text="{Binding SpeedTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Speed}}"/>
<EgtWPFLib5:EgtTextBox Name="SpeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="SpeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Speed,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
@@ -654,11 +654,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding SideAngTxBl}"
<TextBlock Text="{Binding SideAngTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource SideAng}}"/>
<EgtWPFLib5:EgtTextBox Name="SideAngTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="SideAngTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.SideAng,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -682,11 +682,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding MaxSpeedTxBl}"
<TextBlock Text="{Binding MaxSpeedTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource MaxSpeed}}"/>
<EgtWPFLib5:EgtTextBox Name="MaxSpeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="MaxSpeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.MaxSpeed,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -710,11 +710,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ThickTxBl}"
<TextBlock Text="{Binding ThickTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Thick}}"/>
<EgtWPFLib5:EgtTextBox Name="ThickTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="ThickTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Thick,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True}"
@@ -739,11 +739,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding MaxAbsorptionTxBl}"
<TextBlock Text="{Binding MaxAbsorptionTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource MaxAbsorption}}"/>
<EgtWPFLib5:EgtTextBox Name="MaxAbsorptionTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="MaxAbsorptionTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.MaxAbsorption,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -767,11 +767,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding MinFeedTxBl}"
<TextBlock Text="{Binding MinFeedTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource MinFeed}}"/>
<EgtWPFLib5:EgtTextBox Name="MinFeedTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="MinFeedTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.MinFeed,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -795,11 +795,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding DrawTxBl}"
<TextBlock Text="{Binding DrawTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Draw}}"/>
<EgtWPFLib5:EgtTextBox Name="DrawTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="DrawTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Draw,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
@@ -826,11 +826,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding HeadTxBl}"
<TextBlock Text="{Binding HeadTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource Head}}"/>
<EgtWPFLib5:EgtTextBox Name="HeadTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="HeadTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.Head,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -854,11 +854,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding NameParTxBl}"
<TextBlock Text="{Binding NameParTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource NamePar}}"/>
<EgtWPFLib5:EgtTextBox Name="NameParTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="NameParTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.NamePar,
ElementName=ToolsTreeView, Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
@@ -884,11 +884,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding UserNotesTxBl}"
<TextBlock Text="{Binding UserNotesTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource UserNotes}}"/>
<EgtWPFLib5:EgtTextBox Name="UserNotesTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="UserNotesTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.UserNotes,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
@@ -912,11 +912,11 @@
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding TcPosTxBl}"
<TextBlock Text="{Binding TcPosTxBl}" Style="{StaticResource EgtCAM5_ToolsTextBlock}"
Visibility="{Binding Path=SelectedItem.Type, ElementName=ToolsTreeView,
Converter={StaticResource ToolParamVisibilityConverter},
ConverterParameter={StaticResource TcPos}}"/>
<EgtWPFLib5:EgtTextBox Name="TcPosTxBx" Grid.Column="1"
<EgtWPFLib5:EgtTextBox Name="TcPosTxBx" Grid.Column="1" Style="{StaticResource EgtCAM5_ToolsTextBox}"
Text="{Binding Path=SelectedItem.TcPos,
ElementName=ToolsTreeView, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding Path=SelectedItem.Type,
+1 -4
View File
@@ -1,6 +1,3 @@
Imports EgtUILib
Imports System.Reflection
Public Class ToolsDbView
Public Class ToolsDbView
End Class
+7
View File
@@ -38,6 +38,13 @@ Public Module Utility
Return Guid.TryParse(UUID, result)
End Function
Friend Sub UpdateUI()
' Costringo ad aggiornare UI
Dim nDummy As Integer
Application.Current.Dispatcher.Invoke(Windows.Threading.DispatcherPriority.Background, _
New Action(Function() nDummy = 0))
End Sub
Public Structure IdNameStruct
Private m_Id As Integer