Compare commits
48 Commits
NewInterface
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| c32bfd55d0 | |||
| db65ef9e15 | |||
| d2a6a27200 | |||
| 6bad0e177f | |||
| 667b8fde7c | |||
| 48d0063167 | |||
| 13d89a3857 | |||
| df7bb978b8 | |||
| 088be26abf | |||
| 2e81f09a85 | |||
| 21692af684 | |||
| 6c36f856e6 | |||
| 33b90967c6 | |||
| 47ea4e3646 | |||
| cc41ca8d82 | |||
| 554b1a662e | |||
| 10a0745449 | |||
| f47b202499 | |||
| 1a0eb0cb31 | |||
| 33176f40fa | |||
| bbb6d16483 | |||
| 317321d46c | |||
| 57baab72d5 | |||
| 13401bc486 | |||
| 91d8e8aa1f | |||
| 65288427f3 | |||
| a234c6f6f1 | |||
| f1819fc61c | |||
| e67c79992c | |||
| 209cab548b | |||
| fa737c7c80 | |||
| 4811a37fe7 | |||
| d43acd1678 | |||
| 2850e07360 | |||
| 9ae9a6df88 | |||
| f5206ce8bf | |||
| f4dea984be | |||
| 8a7af066d9 | |||
| bbb52b6ade | |||
| 7fe2c09bca | |||
| a5be2180ea | |||
| 6e5db6e147 | |||
| 589156d963 | |||
| 566770255c | |||
| 8cac7b43fb | |||
| 3c0490e659 | |||
| db66fa17cd | |||
| 2a248795b1 |
@@ -1,71 +1,50 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="ChooseMachineWndV"
|
<EgtWPFLib5:EgtMainWindow x:Class="ChooseMachineWndV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
xmlns:Icarus="clr-namespace:Icarus"
|
xmlns:Icarus="clr-namespace:Icarus"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Title="New Project"
|
||||||
WindowStyle="None" ResizeMode="NoResize"
|
SizeToContent="WidthAndHeight"
|
||||||
SizeToContent="WidthAndHeight"
|
WindowStartupLocation="CenterOwner"
|
||||||
MinWidth="500"
|
Style="{StaticResource Dialog_Window}">
|
||||||
WindowStartupLocation="CenterOwner"
|
<Grid Margin="2.5,2.5,2.5,0">
|
||||||
IsClosable="False"
|
<Grid.RowDefinitions>
|
||||||
IsMinimizable="False"
|
<RowDefinition Height="Auto"/>
|
||||||
IsResizable="False"
|
<RowDefinition Height="Auto"/>
|
||||||
Title="ProjectType">
|
<RowDefinition Height="Auto"/>
|
||||||
<StackPanel Margin="5,5,5,0">
|
</Grid.RowDefinitions>
|
||||||
<Border Grid.Row="1"
|
|
||||||
BorderThickness="1"
|
|
||||||
BorderBrush="DarkGray"
|
|
||||||
Background="White"
|
|
||||||
Margin="5">
|
|
||||||
<Grid Margin="5">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<Grid HorizontalAlignment="Center"
|
<TextBlock Text="{Binding ChooseMachine_Msg}"
|
||||||
Grid.Row="0"
|
Margin="20,20,20,2.5"
|
||||||
Margin="15">
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<Grid.RowDefinitions>
|
<ComboBox Grid.Row="1"
|
||||||
<RowDefinition Height="Auto"/>
|
ItemsSource="{Binding MachineList}"
|
||||||
<RowDefinition Height="1*"/>
|
SelectedItem="{Binding SelMachine}"
|
||||||
<RowDefinition Height="Auto"/>
|
DisplayMemberPath="Name"
|
||||||
</Grid.RowDefinitions>
|
SelectedValuePath="Name"
|
||||||
<Grid.ColumnDefinitions>
|
Width="160"
|
||||||
<ColumnDefinition Width="Auto"/>
|
HorizontalAlignment="Center"
|
||||||
</Grid.ColumnDefinitions>
|
HorizontalContentAlignment="Center"
|
||||||
<TextBlock Text="{Binding ChooseMachine_Msg}"
|
Margin="2.5,10,2.5,2.5"
|
||||||
Style="{StaticResource OptionTextBlock}"
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
Grid.Row="0" Grid.ColumnSpan="2"/>
|
|
||||||
<Rectangle Height="22" Grid.Row="1"/>
|
|
||||||
<ComboBox ItemsSource="{Binding MachineList}" DisplayMemberPath="Name"
|
|
||||||
SelectedItem="{Binding SelMachine}" SelectedValuePath="Name"
|
|
||||||
Grid.Row="2"
|
|
||||||
Style="{StaticResource BtlData_ComboBox}"/>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Grid Grid.Row="2" Margin="5">
|
<UniformGrid Grid.Row="2"
|
||||||
<Grid.ColumnDefinitions>
|
Rows="1"
|
||||||
<ColumnDefinition Width="1*"/>
|
Margin="0,20,0,0">
|
||||||
<ColumnDefinition Width="Auto"/>
|
<Button Command="{Binding Ok_Command}"
|
||||||
<ColumnDefinition Width="1*"/>
|
IsDefault="True"
|
||||||
<ColumnDefinition Width="Auto"/>
|
Margin="0,0,2.5,0"
|
||||||
<ColumnDefinition Width="1*"/>
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
</Grid.ColumnDefinitions>
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
<Button Content="Ok"
|
Style="{StaticResource Button_Image}"/>
|
||||||
Command="{Binding Ok_Command}"
|
</Button>
|
||||||
IsDefault="True"
|
<Button IsCancel="True"
|
||||||
Grid.Column="1"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
<Button Content="Cancel"
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
IsCancel="True"
|
Style="{StaticResource Button_Image}"/>
|
||||||
Grid.Column="3"
|
</Button>
|
||||||
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
</UniformGrid>
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
</StackPanel>
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Public Class ChooseMachineWndVM
|
|||||||
|
|
||||||
Public ReadOnly Property ChooseMachine_Msg As String
|
Public ReadOnly Property ChooseMachine_Msg As String
|
||||||
Get
|
Get
|
||||||
Return "Macchina: "
|
Return "Select the new project machine from the list"
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
Public Const TABLE = "Table"
|
Public Const TABLE = "Table"
|
||||||
Public Const TABLE_OUTLINE = "TableOutline"
|
Public Const TABLE_OUTLINE = "TableOutline"
|
||||||
|
Public Const EXTRUSION_AREA = "ExtrusionArea"
|
||||||
Public Const PART = "Part"
|
Public Const PART = "Part"
|
||||||
Public Const PRINT_SOLID = "PrintSolid"
|
Public Const PRINT_SOLID = "PrintSolid"
|
||||||
Public Const LAY_MACH_START = "MachStart"
|
Public Const LAY_MACH_START = "MachStart"
|
||||||
@@ -104,6 +105,10 @@
|
|||||||
Public Const MAC_G0FEED = "G0Feed"
|
Public Const MAC_G0FEED = "G0Feed"
|
||||||
Public Const MAC_G0FEEDZ = "G0FeedZ"
|
Public Const MAC_G0FEEDZ = "G0FeedZ"
|
||||||
Public Const MAC_TOOLDIAM = "ToolDiam"
|
Public Const MAC_TOOLDIAM = "ToolDiam"
|
||||||
|
Public Const MAC_PREFLOWDELAY = "PreFlowDelay"
|
||||||
|
Public Const MAC_POSTFLOWDELAY = "PostFlowDelay"
|
||||||
|
Public Const MAC_SCREWBACK = "ScrewBack"
|
||||||
|
Public Const MAC_SLICINGHEIGHT = "SlicingHeight"
|
||||||
Public Const MAC_RIBSTYPE = "RibsType"
|
Public Const MAC_RIBSTYPE = "RibsType"
|
||||||
Public Const MAC_RIBSOVERLAP = "RibsOverlap"
|
Public Const MAC_RIBSOVERLAP = "RibsOverlap"
|
||||||
Public Const MAC_RIBSSTRANDCOUNT = "RibsStrandCount"
|
Public Const MAC_RIBSSTRANDCOUNT = "RibsStrandCount"
|
||||||
@@ -125,13 +130,35 @@
|
|||||||
Public Const MAC_SHELLNBRWIPEDIR = "ShellNbrWipeDir"
|
Public Const MAC_SHELLNBRWIPEDIR = "ShellNbrWipeDir"
|
||||||
Public Const MAC_AUXSOLIDSOVERLAP = "AuxSolidsOverlap"
|
Public Const MAC_AUXSOLIDSOVERLAP = "AuxSolidsOverlap"
|
||||||
Public Const MAC_AUXSOLIDSINFILL = "AuxSolidsInfill"
|
Public Const MAC_AUXSOLIDSINFILL = "AuxSolidsInfill"
|
||||||
|
Public Const MAC_AUXSOLIDSINFILLLINK = "AuxSolidsInfillLink"
|
||||||
|
Public Const MAC_AUXSOLIDSSTRANDCOUNT = "AuxSolidsStrandCount"
|
||||||
Public Const MAC_AUXSOLIDSSTRANDORDER = "AuxSolidsStrandOrder"
|
Public Const MAC_AUXSOLIDSSTRANDORDER = "AuxSolidsStrandOrder"
|
||||||
Public Const MAC_AUXSOLIDSLINKTYPE = "AuxSolidsLinkType"
|
Public Const MAC_AUXSOLIDSLINKTYPE = "AuxSolidsLinkType"
|
||||||
Public Const MAC_AUXSOLIDSLINKPARAM = "AuxSolidsLinkParam"
|
Public Const MAC_AUXSOLIDSLINKPARAM = "AuxSolidsLinkParam"
|
||||||
Public Const MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE = "AuxSolidsStartPointOffsetOnSlice"
|
Public Const MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE = "AuxSolidsStartPointOffsetOnSlice"
|
||||||
|
Public Const MAC_AUXSOLIDSOFFSETLEADPOINT = "AuxSolidsOffsetLeadPoint"
|
||||||
|
Public Const MAC_AUXSOLIDSDENSITY = "AuxSolidsDensity"
|
||||||
|
Public Const MAC_AUXSOLIDSGRIDOVERLAP = "AuxSolidsGridOverlap"
|
||||||
|
Public Const MAC_AUXSOLIDSDIRECTION = "AuxSolidsDirection"
|
||||||
|
Public Const MAC_AUXSOLIDSOFFSETX = "AuxSolidsOffsetX"
|
||||||
|
Public Const MAC_AUXSOLIDSOFFSETY = "AuxSolidsOffsetY"
|
||||||
Public Const MAC_AUXSOLIDSCOASTINGLEN = "AuxSolidsCoastingLen"
|
Public Const MAC_AUXSOLIDSCOASTINGLEN = "AuxSolidsCoastingLen"
|
||||||
Public Const MAC_AUXSOLIDSWIPELEN = "AuxSolidsWipeLen"
|
Public Const MAC_AUXSOLIDSWIPELEN = "AuxSolidsWipeLen"
|
||||||
Public Const MAC_AUXSOLIDSWIPEDIR = "AuxSolidsWipeDir"
|
Public Const MAC_AUXSOLIDSWIPEDIR = "AuxSolidsWipeDir"
|
||||||
|
Public Const MAC_FLOORTYPE = "FloorType"
|
||||||
|
Public Const MAC_CEILCOUNT = "CeilCount"
|
||||||
|
Public Const MAC_CEILTYPE = "CeilType"
|
||||||
|
Public Const MAC_INFILLTYPE = "InfillType"
|
||||||
|
Public Const MAC_INFILLLINK = "InfillLink"
|
||||||
|
Public Const MAC_INFILLDENSITY = "InfillDensity"
|
||||||
|
Public Const MAC_INFILLOVERLAP = "InfillOverlap"
|
||||||
|
Public Const MAC_INFILLGRIDOVERLAP = "InfillGridOverlap"
|
||||||
|
Public Const MAC_INFILLDIRECTION = "InfillDirection"
|
||||||
|
Public Const MAC_INFILLOFFSETX = "InfillOffsetX"
|
||||||
|
Public Const MAC_INFILLOFFSETY = "InfillOffsetY"
|
||||||
|
Public Const MAC_INFILLCOASTING = "InfillCoasting"
|
||||||
|
Public Const MAC_INFILLWIPE = "InfillWipe"
|
||||||
|
Public Const MAC_INFILLWIPEDIR = "InfillWipeDir"
|
||||||
Public Const MAC_DYNAMICMODE = "DynamicMode"
|
Public Const MAC_DYNAMICMODE = "DynamicMode"
|
||||||
Public Const MAC_PRINTORDER = "PrintOrder"
|
Public Const MAC_PRINTORDER = "PrintOrder"
|
||||||
Public Const MAC_CONSTANT = "Constant"
|
Public Const MAC_CONSTANT = "Constant"
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Public Module ConstGen
|
|||||||
' File con dati di licenza
|
' File con dati di licenza
|
||||||
Public Const LIC_FILE_NAME As String = "Icarus.lic"
|
Public Const LIC_FILE_NAME As String = "Icarus.lic"
|
||||||
Public Const S_LICENCE As String = "Licence"
|
Public Const S_LICENCE As String = "Licence"
|
||||||
|
Public Const K_LOCKID As String = "LockId"
|
||||||
Public Const K_KEY As String = "Key"
|
Public Const K_KEY As String = "Key"
|
||||||
Public Const K_NESTKEY As String = "NestKey"
|
Public Const K_NESTKEY As String = "NestKey"
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ Public Module ConstIni
|
|||||||
'Public Const K_MESSAGES As String = "Messages"
|
'Public Const K_MESSAGES As String = "Messages"
|
||||||
'Public Const K_WINPLACE As String = "WinPlace"
|
'Public Const K_WINPLACE As String = "WinPlace"
|
||||||
'Public Const K_LASTPROJ As String = "LastProj"
|
'Public Const K_LASTPROJ As String = "LastProj"
|
||||||
|
Public Const K_NETKEY As String = "NetKey"
|
||||||
Public Const K_LASTNGEDIR As String = "LastNgeDir"
|
Public Const K_LASTNGEDIR As String = "LastNgeDir"
|
||||||
Public Const K_LASTIMPDIR As String = "LastImpDir"
|
Public Const K_LASTIMPDIR As String = "LastImpDir"
|
||||||
'Public Const K_SUPPORT As String = "Support"
|
'Public Const K_SUPPORT As String = "Support"
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
'----------------------------------------------------------------------------
|
||||||
|
' EgalTech 2015-2015
|
||||||
|
'----------------------------------------------------------------------------
|
||||||
|
' File : ConstIni.vb Data : 12.02.15 Versione : 1.6b3
|
||||||
|
' Contenuto : Modulo costanti sezione e chiavi per file Ini.
|
||||||
|
'
|
||||||
|
'
|
||||||
|
'
|
||||||
|
' Modifiche : 12.02.15 DS Creazione modulo.
|
||||||
|
'
|
||||||
|
'
|
||||||
|
'----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Public Module ConstMachDataIni
|
||||||
|
|
||||||
|
Public Const MACHDATA_INI_FILE_NAME As String = "Data.ini"
|
||||||
|
|
||||||
|
Public Const S_TABLE As String = "Table"
|
||||||
|
Public Const K_DIMX As String = "DimX"
|
||||||
|
Public Const K_DIMY As String = "DimY"
|
||||||
|
Public Const K_POSX As String = "PosX"
|
||||||
|
Public Const K_POSY As String = "PosY"
|
||||||
|
Public Const K_POSZ As String = "PosZ"
|
||||||
|
|
||||||
|
Public Const S_VERTICAL As String = "Vertical"
|
||||||
|
Public Const S_45DEGX As String = "45DegX"
|
||||||
|
Public Const S_45DEGY As String = "45DegY"
|
||||||
|
Public Const S_HORIZONTAL As String = "Horizontal"
|
||||||
|
Public Const K_MINX As String = "MinX"
|
||||||
|
Public Const K_MAXX As String = "MaxX"
|
||||||
|
Public Const K_MINY As String = "MinY"
|
||||||
|
Public Const K_MAXY As String = "MaxY"
|
||||||
|
|
||||||
|
|
||||||
|
End Module
|
||||||
@@ -1,31 +1,6 @@
|
|||||||
Public Module ConstMachIni
|
Public Module ConstMachIni
|
||||||
|
|
||||||
Public Const MACH_INI_FILE_NAME As String = "MachData.ini"
|
Public Const MACH_INI_FILE_NAME As String = "MachData.ini"
|
||||||
Public Const GETWALLDATA_FILE_NAME As String = "GetWallData.lua"
|
|
||||||
Public Const GETTS3DATA_FILE_NAME As String = "GetTs3Data.lua"
|
|
||||||
|
|
||||||
Public Const K_NCTYPE As String = "NCType"
|
|
||||||
Public Const K_CONNECTIONSTRING As String = "ConnectionString"
|
|
||||||
|
|
||||||
Public Const S_CHANNELS As String = "Channels"
|
|
||||||
|
|
||||||
Public Const S_PARTPROGRAM As String = "PartProgram"
|
|
||||||
Public Const S_EXTENSION As String = "Extension"
|
|
||||||
|
|
||||||
' Variables della macchina corrente
|
|
||||||
Public Const S_MAINVARIABLES As String = "MainVariables"
|
|
||||||
Public Const S_VARIABLES As String = "Variables"
|
|
||||||
Public Const S_INPUTVARIABLES As String = "InputVariables"
|
|
||||||
Public Const S_OUTPUTVARIABLES As String = "OutputVariables"
|
|
||||||
Public Const S_MDI As String = "MDI"
|
|
||||||
|
|
||||||
Public Const K_BEAM As String = "Beam"
|
|
||||||
Public Const K_WALL As String = "Wall"
|
|
||||||
Public Const K_SCRIPT As String = "Scripts"
|
|
||||||
Public Const K_SETUP As String = "Setup"
|
|
||||||
Public Const K_FLOW As String = "Flow"
|
|
||||||
|
|
||||||
Public Const TS3DATA_FILE As String = "Ts3Data.lua"
|
|
||||||
|
|
||||||
Public Const S_MACHINING As String = "Machining"
|
Public Const S_MACHINING As String = "Machining"
|
||||||
Public Const K_MACH_INITSCRIPT As String = "InitScript"
|
Public Const K_MACH_INITSCRIPT As String = "InitScript"
|
||||||
@@ -35,5 +10,8 @@
|
|||||||
Public Const K_SLICINGTYPE As String = "SlicingType"
|
Public Const K_SLICINGTYPE As String = "SlicingType"
|
||||||
Public Const K_SPEED_MIN As String = "SpeedMin"
|
Public Const K_SPEED_MIN As String = "SpeedMin"
|
||||||
Public Const K_SPEED_MAX As String = "SpeedMax"
|
Public Const K_SPEED_MAX As String = "SpeedMax"
|
||||||
|
Public Const K_MAX_HEIGHT As String = "HMax"
|
||||||
|
|
||||||
|
Public Const S_MINMAX As String = "MinMax"
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Height="38"
|
Height="38"
|
||||||
Visibility="{Binding DoneBtn_Visibility}"
|
Visibility="{Binding Message_Visibility}"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Margin="45,0,0,0"
|
Margin="45,0,0,0"
|
||||||
Padding="0"
|
Padding="0"
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ Public Class CurrMachining
|
|||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, False))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, False))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, False))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, False))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, False))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, False))
|
||||||
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.INFILL, nPartId, m_nIndex, False))
|
||||||
For Each Cathegory In m_CathegoryList
|
For Each Cathegory In m_CathegoryList
|
||||||
For Each MachiningParam In Cathegory.MachiningParamList
|
For Each MachiningParam In Cathegory.MachiningParamList
|
||||||
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
||||||
@@ -128,6 +129,7 @@ Public Class CurrMachining
|
|||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, True))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, True))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, True))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, True))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, True))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, True))
|
||||||
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.INFILL, nPartId, m_nIndex, True))
|
||||||
For Each Cathegory In m_CathegoryList
|
For Each Cathegory In m_CathegoryList
|
||||||
For Each MachiningParam In Cathegory.MachiningParamList
|
For Each MachiningParam In Cathegory.MachiningParamList
|
||||||
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
||||||
@@ -199,74 +201,133 @@ Public Class CurrMachiningCathegory
|
|||||||
Select Case m_Type
|
Select Case m_Type
|
||||||
Case Cathegories.GENERAL
|
Case Cathegories.GENERAL
|
||||||
m_sName = "General"
|
m_sName = "General"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.SLICINGTYPE, nPartId, nIndex, bForceFromDb),
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.SLICINGTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.SPIRALVASE, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.SPIRALVASE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.STRANDH, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.STRANDH, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.STRANDW, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.STRANDW, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.STRANDCOUNT, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.STRANDCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.OFFSET, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.OFFSET, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.STRANDOVERLAP, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.STRANDOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.STARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.STARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.STRANDORDER, nPartId, nIndex, bForceFromDb),
|
New CurrComboMachiningParam(MachiningParam.Params.STRANDORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.DIRECTION, nPartId, nIndex, bForceFromDb),
|
New CurrComboMachiningParam(MachiningParam.Params.DIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.FLOORCOUNT, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.G0FEED, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.G0FEED, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.G0FEEDZ, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.G0FEEDZ, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.LINKZUP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.TOOLDIAM, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.TOOLDIAM, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.FLOWRATE_PC, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.FLOWRATE_PC, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.DYNAMIC_MODE, nPartId, nIndex, bForceFromDb),
|
New CurrComboMachiningParam(MachiningParam.Params.DYNAMIC_MODE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrOrderedMachiningParam(MachiningParam.Params.PRINT_ORDER, nPartId, nIndex, bForceFromDb)})
|
New CurrOrderedMachiningParam(MachiningParam.Params.PRINT_ORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.PREFLOWDELAY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.POSTFLOWDELAY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.SCREWBACK, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.SLICINGHEIGHT, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
Case Cathegories.LINK
|
Case Cathegories.LINK
|
||||||
m_sName = "Shell"
|
m_sName = "Shell"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.LINKTYPE, nPartId, nIndex, bForceFromDb),
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.LINKTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.LINKPARAM, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.LINKPARAM, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.LINKZUP, nPartId, nIndex, bForceFromDb),
|
New CurrComboMachiningParam(MachiningParam.Params.LEADIN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.LEADIN, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.LEADINTANGDIST, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.LEADINTANGDIST, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.LEADINORTHODIST, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.LEADINORTHODIST, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.OFFSETLEADPOINT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.OFFSETLEADPOINT, nPartId, nIndex, bForceFromDb),
|
New CurrComboMachiningParam(MachiningParam.Params.LEADOUT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.LEADOUT, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.LEADOUTTANGDIST, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.LEADOUTTANGDIST, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.LEADOUTORTHODIST, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.LEADOUTORTHODIST, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.COASTINGLEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.COASTINGLEN, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.COASTINGFEED_PC, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.COASTINGFEED_PC, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.WIPELEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.WIPELEN, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.WIPEFEED_PC, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.WIPEFEED_PC, nPartId, nIndex, bForceFromDb)})
|
'New CurrNumericMachiningParam(MachiningParam.Params.WIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
'New CurrNumericMachiningParam(MachiningParam.Params.WIPEDIR, nPartId, nIndex, bForceFromDb)})
|
|
||||||
Case Cathegories.RIBS
|
Case Cathegories.RIBS
|
||||||
m_sName = "Ribs"
|
m_sName = "Ribs"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.RIBSTYPE, nPartId, nIndex, bForceFromDb),
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.RIBSTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.RIBSOVERLAP, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLIMITUNBOUNDEDWITHSOLID, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.RIBSSTRANDCOUNT, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.RIBSOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLINK, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.RIBSSTRANDCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.RIBSINVERTORDER, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLINK, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.RIBSINVERTDIRECTION, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.RIBSINVERTORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.RIBSINVERTSTRANDORDER, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.RIBSINVERTDIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLEADININVERT, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.RIBSINVERTSTRANDORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADINLEN, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLEADININVERT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLEADOUTINVERT, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADINLEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTLEN, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLEADOUTINVERT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTCOASTING, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTLEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPE, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTCOASTING, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPEDIR, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrCheckMachiningParam(MachiningParam.Params.RIBSLIMITUNBOUNDEDWITHSOLID, nPartId, nIndex, bForceFromDb)})
|
New CurrNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
Case Cathegories.SHELL_NUMBER
|
Case Cathegories.SHELL_NUMBER
|
||||||
m_sName = "Reduce Shell Number"
|
m_sName = "Reduce Shell Number"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRDIFFERENCE, nPartId, nIndex, bForceFromDb),
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRDIFFERENCE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRCOASTING, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRCOASTING, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPE, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nPartId, nIndex, bForceFromDb)})
|
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
Case Cathegories.AUX_SOLID
|
Case Cathegories.AUX_SOLID
|
||||||
m_sName = "Filled Solid"
|
m_sName = "Filled Solid"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nPartId, nIndex, bForceFromDb),
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nPartId, nIndex, bForceFromDb),
|
New CurrCheckMachiningParam(MachiningParam.Params.AUXSOLIDSINFILLLINK, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nPartId, nIndex, bForceFromDb),
|
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nPartId, nIndex, bForceFromDb),
|
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nPartId, nIndex, bForceFromDb),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETLEADPOINT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nPartId, nIndex, bForceFromDb)})
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDENSITY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSGRIDOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETX, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
|
Case Cathegories.INFILL
|
||||||
|
m_sName = "Infill"
|
||||||
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrNumericMachiningParam(MachiningParam.Params.FLOORCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrComboMachiningParam(MachiningParam.Params.FLOORTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.CEILCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrComboMachiningParam(MachiningParam.Params.CEILTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrComboMachiningParam(MachiningParam.Params.INFILLTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrCheckMachiningParam(MachiningParam.Params.INFILLLINK, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLDENSITY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLGRIDOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLDIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLOFFSETX, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLOFFSETY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLCOASTING, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLWIPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
|
End Select
|
||||||
|
' verifico dipendenze tra parametri
|
||||||
|
Select Case m_Type
|
||||||
|
Case Cathegories.LINK
|
||||||
|
For Each Param In {MachiningParam.Params.LINKTYPE, MachiningParam.Params.LEADIN, MachiningParam.Params.LEADOUT}
|
||||||
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
Case Cathegories.RIBS
|
||||||
|
For Each Param In {MachiningParam.Params.RIBSTYPE}
|
||||||
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
Case Cathegories.AUX_SOLID
|
||||||
|
For Each Param In {MachiningParam.Params.AUXSOLIDSINFILL}
|
||||||
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
For Each Param In {MachiningParam.Params.AUXSOLIDSSTRANDCOUNT}
|
||||||
|
Dim MachiningParam As NumericMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
Case Cathegories.INFILL
|
||||||
|
For Each Param In {MachiningParam.Params.FLOORCOUNT, MachiningParam.Params.CEILCOUNT}
|
||||||
|
Dim MachiningParam As NumericMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
For Each Param In {MachiningParam.Params.INFILLTYPE}
|
||||||
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -292,13 +353,22 @@ Public Class CurrNumericMachiningParam
|
|||||||
Return If(m_bIsLen, LenToString(m_dValue, 1), DoubleToString(m_dValue, 2))
|
Return If(m_bIsLen, LenToString(m_dValue, 1), DoubleToString(m_dValue, 2))
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
|
Dim dTempValue As Double = 0
|
||||||
If m_bIsLen Then
|
If m_bIsLen Then
|
||||||
StringToLen(value, m_dValue)
|
StringToLen(value, dTempValue)
|
||||||
Else
|
Else
|
||||||
StringToDouble(value, m_dValue)
|
StringToDouble(value, dTempValue)
|
||||||
|
End If
|
||||||
|
If m_bIsActiveMinMax Then
|
||||||
|
If dTempValue >= m_dMinValue AndAlso dTempValue <= m_dMaxValue Then
|
||||||
|
m_dValue = dTempValue
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
m_dValue = dTempValue
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(sValue))
|
NotifyPropertyChanged(NameOf(sValue))
|
||||||
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
||||||
|
ManageDependencyParam()
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -318,8 +388,8 @@ Public Class CurrNumericMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean)
|
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type, nIndex)
|
MyBase.New(Type, nIndex, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.STRANDH
|
Case Params.STRANDH
|
||||||
@@ -388,6 +458,18 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.TOOLDIAM
|
Case Params.TOOLDIAM
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_TOOLDIAM, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_TOOLDIAM, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.PREFLOWDELAY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_PREFLOWDELAY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.POSTFLOWDELAY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_POSTFLOWDELAY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.SCREWBACK
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_SCREWBACK, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.SLICINGHEIGHT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_SLICINGHEIGHT, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSOVERLAP, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSOVERLAP, m_dValue)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
@@ -427,9 +509,30 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.AUXSOLIDSLINKPARAM
|
Case Params.AUXSOLIDSLINKPARAM
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSSTRANDCOUNT, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETLEADPOINT, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSDENSITY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSGRIDOVERLAP, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSDIRECTION, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETX, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
@@ -442,15 +545,45 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.FLOWRATE_PC
|
Case Params.FLOWRATE_PC
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_CONSTANT, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_CONSTANT, m_dValue)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_CEILCOUNT, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLDENSITY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLDENSITY, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLOVERLAP, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLGRIDOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLGRIDOVERLAP, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLDIRECTION
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLDIRECTION, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLOFFSETX
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLOFFSETX, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLOFFSETY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLOFFSETY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLCOASTING
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLCOASTING, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLWIPE
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLWIPE, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLWIPEDIR
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLWIPEDIR, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
End Select
|
End Select
|
||||||
m_dOrigValue = m_dValue
|
m_dOrigValue = m_dValue
|
||||||
If nIndex > 0 Then
|
If nIndex > 0 Then
|
||||||
Dim DbMachining As Machining = Map.refMachiningDbVM.MachiningList.FirstOrDefault(Function(x) x.nIndex = nIndex)
|
Dim DbMachining As Machining = Map.refMachiningDbVM.MachiningList.FirstOrDefault(Function(x) x.nIndex = nIndex)
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.STRANDH, Params.STRANDW, Params.STRANDCOUNT, Params.OFFSET, Params.STRANDOVERLAP, Params.STARTPOINTOFFSETONSLICE,
|
Case Params.STRANDH, Params.STRANDW, Params.STRANDCOUNT, Params.OFFSET, Params.STRANDOVERLAP, Params.STARTPOINTOFFSETONSLICE,
|
||||||
Params.FLOORCOUNT, Params.G0FEED, Params.G0FEEDZ, Params.TOOLDIAM, Params.FLOWRATE_PC
|
Params.G0FEED, Params.G0FEEDZ, Params.LINKZUP, Params.TOOLDIAM, Params.FLOWRATE_PC, Params.PREFLOWDELAY, Params.POSTFLOWDELAY, Params.SCREWBACK, Params.SLICINGHEIGHT
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.LINKPARAM, Params.LINKZUP, Params.OFFSETLEADPOINT, Params.LEADINTANGDIST, Params.LEADINORTHODIST,
|
Case Params.LINKPARAM, Params.OFFSETLEADPOINT, Params.LEADINTANGDIST, Params.LEADINORTHODIST,
|
||||||
Params.LEADOUTTANGDIST, Params.LEADOUTORTHODIST, Params.COASTINGLEN, Params.COASTINGFEED_PC,
|
Params.LEADOUTTANGDIST, Params.LEADOUTORTHODIST, Params.COASTINGLEN, Params.COASTINGFEED_PC,
|
||||||
Params.WIPELEN, Params.WIPEFEED_PC ' Params.WIPEDIR
|
Params.WIPELEN, Params.WIPEFEED_PC ' Params.WIPEDIR
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.LINK).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.LINK).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
@@ -461,8 +594,14 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.SHELLNBRDIFFERENCE, Params.SHELLNBRCOASTING, Params.SHELLNBRWIPE, Params.SHELLNBRWIPEDIR
|
Case Params.SHELLNBRDIFFERENCE, Params.SHELLNBRCOASTING, Params.SHELLNBRWIPE, Params.SHELLNBRWIPEDIR
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.SHELL_NUMBER).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.SHELL_NUMBER).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.AUXSOLIDSOVERLAP, Params.AUXSOLIDSLINKPARAM, Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE,
|
Case Params.AUXSOLIDSOVERLAP, Params.AUXSOLIDSLINKPARAM, Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE,
|
||||||
Params.AUXSOLIDSCOASTINGLEN, Params.AUXSOLIDSWIPELEN, Params.AUXSOLIDSWIPEDIR
|
Params.AUXSOLIDSOFFSETLEADPOINT, Params.AUXSOLIDSDENSITY, Params.AUXSOLIDSGRIDOVERLAP,
|
||||||
|
Params.AUXSOLIDSDIRECTION, Params.AUXSOLIDSOFFSETX, Params.AUXSOLIDSOFFSETY,
|
||||||
|
Params.AUXSOLIDSCOASTINGLEN, Params.AUXSOLIDSWIPELEN, Params.AUXSOLIDSWIPEDIR, Params.AUXSOLIDSSTRANDCOUNT
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.FLOORCOUNT, Params.CEILCOUNT, Params.INFILLDENSITY, Params.INFILLOVERLAP,
|
||||||
|
Params.INFILLGRIDOVERLAP, Params.INFILLDIRECTION, Params.INFILLOFFSETX,
|
||||||
|
Params.INFILLOFFSETY, Params.INFILLCOASTING, Params.INFILLWIPE, Params.INFILLWIPEDIR
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.INFILL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
End Select
|
End Select
|
||||||
If bForceFromDb OrElse Not bReadFromPart Then
|
If bForceFromDb OrElse Not bReadFromPart Then
|
||||||
m_dValue = m_DbParam.dOrigValue
|
m_dValue = m_DbParam.dOrigValue
|
||||||
@@ -529,6 +668,14 @@ Public Class CurrNumericMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_G0FEEDZ, sWriteValue)
|
EgtSetInfo(nPartId, MAC_G0FEEDZ, sWriteValue)
|
||||||
Case Params.TOOLDIAM
|
Case Params.TOOLDIAM
|
||||||
EgtSetInfo(nPartId, MAC_TOOLDIAM, sWriteValue)
|
EgtSetInfo(nPartId, MAC_TOOLDIAM, sWriteValue)
|
||||||
|
Case Params.PREFLOWDELAY
|
||||||
|
EgtSetInfo(nPartId, MAC_PREFLOWDELAY, sWriteValue)
|
||||||
|
Case Params.POSTFLOWDELAY
|
||||||
|
EgtSetInfo(nPartId, MAC_POSTFLOWDELAY, sWriteValue)
|
||||||
|
Case Params.SCREWBACK
|
||||||
|
EgtSetInfo(nPartId, MAC_SCREWBACK, sWriteValue)
|
||||||
|
Case Params.SLICINGHEIGHT
|
||||||
|
EgtSetInfo(nPartId, MAC_SLICINGHEIGHT, sWriteValue)
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
EgtSetInfo(nPartId, MAC_RIBSOVERLAP, sWriteValue)
|
EgtSetInfo(nPartId, MAC_RIBSOVERLAP, sWriteValue)
|
||||||
Case Params.RIBSSTRANDCOUNT
|
Case Params.RIBSSTRANDCOUNT
|
||||||
@@ -551,12 +698,26 @@ Public Class CurrNumericMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_SHELLNBRWIPE, sWriteValue)
|
EgtSetInfo(nPartId, MAC_SHELLNBRWIPE, sWriteValue)
|
||||||
Case Params.SHELLNBRWIPEDIR
|
Case Params.SHELLNBRWIPEDIR
|
||||||
EgtSetInfo(nPartId, MAC_SHELLNBRWIPEDIR, sWriteValue)
|
EgtSetInfo(nPartId, MAC_SHELLNBRWIPEDIR, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSSTRANDCOUNT, sWriteValue)
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
||||||
Case Params.AUXSOLIDSLINKPARAM
|
Case Params.AUXSOLIDSLINKPARAM
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, sWriteValue)
|
||||||
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOFFSETLEADPOINT, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSDENSITY, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSGRIDOVERLAP, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSDIRECTION, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOFFSETX, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOFFSETY, sWriteValue)
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
||||||
Case Params.AUXSOLIDSWIPELEN
|
Case Params.AUXSOLIDSWIPELEN
|
||||||
@@ -565,6 +726,26 @@ Public Class CurrNumericMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSWIPEDIR, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSWIPEDIR, sWriteValue)
|
||||||
Case Params.FLOWRATE_PC
|
Case Params.FLOWRATE_PC
|
||||||
EgtSetInfo(nPartId, MAC_CONSTANT, sWriteValue)
|
EgtSetInfo(nPartId, MAC_CONSTANT, sWriteValue)
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
EgtSetInfo(nPartId, MAC_CEILCOUNT, sWriteValue)
|
||||||
|
Case Params.INFILLDENSITY
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLDENSITY, sWriteValue)
|
||||||
|
Case Params.INFILLOVERLAP
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLOVERLAP, sWriteValue)
|
||||||
|
Case Params.INFILLGRIDOVERLAP
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLGRIDOVERLAP, sWriteValue)
|
||||||
|
Case Params.INFILLDIRECTION
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLDIRECTION, sWriteValue)
|
||||||
|
Case Params.INFILLOFFSETX
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLOFFSETX, sWriteValue)
|
||||||
|
Case Params.INFILLOFFSETY
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLOFFSETY, sWriteValue)
|
||||||
|
Case Params.INFILLCOASTING
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLCOASTING, sWriteValue)
|
||||||
|
Case Params.INFILLWIPE
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLWIPE, sWriteValue)
|
||||||
|
Case Params.INFILLWIPEDIR
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLWIPEDIR, sWriteValue)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -621,8 +802,8 @@ Public Class CurrStringMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nIndex As Integer)
|
Sub New(Type As Params, nIndex As Integer, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type, nIndex)
|
MyBase.New(Type, nIndex, Cathegory)
|
||||||
m_sValue = sValue
|
m_sValue = sValue
|
||||||
m_sOrigValue = m_sValue
|
m_sOrigValue = m_sValue
|
||||||
End Sub
|
End Sub
|
||||||
@@ -677,6 +858,11 @@ Public Class CurrComboMachiningParam
|
|||||||
m_SelValue = value
|
m_SelValue = value
|
||||||
NotifyPropertyChanged(NameOf(SelValue))
|
NotifyPropertyChanged(NameOf(SelValue))
|
||||||
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
||||||
|
ManageDependencyParam()
|
||||||
|
' se aggiorno SlicingType
|
||||||
|
If m_Type = Params.SLICINGTYPE Then
|
||||||
|
CurrentMachine.UpdateExtrusionArea()
|
||||||
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -696,8 +882,8 @@ Public Class CurrComboMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean)
|
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type, nIndex)
|
MyBase.New(Type, nIndex, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.SLICINGTYPE
|
Case Params.SLICINGTYPE
|
||||||
@@ -762,9 +948,14 @@ Public Class CurrComboMachiningParam
|
|||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSTYPE, nSelValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSTYPE, nSelValue)
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.OFFSET, "Offset"),
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.ZIGZAG, "ZigZag")})
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
Dim nSelValue As Integer = 0
|
Dim nSelValue As Integer = 0
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILL, nSelValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILL, nSelValue)
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
@@ -787,6 +978,28 @@ Public Class CurrComboMachiningParam
|
|||||||
Dim nSelValue As Integer = 0
|
Dim nSelValue As Integer = 0
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_DYNAMICMODE, nSelValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_DYNAMICMODE, nSelValue)
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
|
Case Params.FLOORTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag")})
|
||||||
|
Dim nSelValue As Integer = 0
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_FLOORTYPE, nSelValue)
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
|
Case Params.CEILTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag")})
|
||||||
|
Dim nSelValue As Integer = 0
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_CEILTYPE, nSelValue)
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
|
Dim nSelValue As Integer = 0
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLTYPE, nSelValue)
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
End Select
|
End Select
|
||||||
m_OrigSelValue = m_SelValue
|
m_OrigSelValue = m_SelValue
|
||||||
If nIndex > 0 Then
|
If nIndex > 0 Then
|
||||||
@@ -800,6 +1013,8 @@ Public Class CurrComboMachiningParam
|
|||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.AUXSOLIDSINFILL, Params.AUXSOLIDSSTRANDORDER, Params.AUXSOLIDSLINKTYPE
|
Case Params.AUXSOLIDSINFILL, Params.AUXSOLIDSSTRANDORDER, Params.AUXSOLIDSLINKTYPE
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.FLOORTYPE, Params.CEILTYPE, Params.INFILLTYPE
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.INFILL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
End Select
|
End Select
|
||||||
If bForceFromDb OrElse Not bReadFromPart Then
|
If bForceFromDb OrElse Not bReadFromPart Then
|
||||||
m_SelValue = m_DbParam.OrigSelValue
|
m_SelValue = m_DbParam.OrigSelValue
|
||||||
@@ -838,6 +1053,12 @@ Public Class CurrComboMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKTYPE, m_SelValue.Id)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKTYPE, m_SelValue.Id)
|
||||||
Case Params.DYNAMIC_MODE
|
Case Params.DYNAMIC_MODE
|
||||||
EgtSetInfo(nPartId, MAC_DYNAMICMODE, m_SelValue.Id)
|
EgtSetInfo(nPartId, MAC_DYNAMICMODE, m_SelValue.Id)
|
||||||
|
Case Params.FLOORTYPE
|
||||||
|
EgtSetInfo(nPartId, MAC_FLOORTYPE, m_SelValue.Id)
|
||||||
|
Case Params.CEILTYPE
|
||||||
|
EgtSetInfo(nPartId, MAC_CEILTYPE, m_SelValue.Id)
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLTYPE, m_SelValue.Id)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -848,6 +1069,7 @@ Public Class CurrComboMachiningParam
|
|||||||
Friend Overrides Sub ResetParam()
|
Friend Overrides Sub ResetParam()
|
||||||
m_SelValue = m_OrigSelValue
|
m_SelValue = m_OrigSelValue
|
||||||
NotifyPropertyChanged(NameOf(SelValue))
|
NotifyPropertyChanged(NameOf(SelValue))
|
||||||
|
CurrentMachine.UpdateExtrusionArea()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -867,6 +1089,7 @@ Public Class CurrComboMachiningParam
|
|||||||
m_SelValue = DbParam.OrigSelValue
|
m_SelValue = DbParam.OrigSelValue
|
||||||
NotifyPropertyChanged(NameOf(SelValue))
|
NotifyPropertyChanged(NameOf(SelValue))
|
||||||
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
||||||
|
CurrentMachine.UpdateExtrusionArea()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' ResetParam
|
#End Region ' ResetParam
|
||||||
@@ -905,8 +1128,8 @@ Public Class CurrCheckMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean)
|
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type, nIndex)
|
MyBase.New(Type, nIndex, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.SPIRALVASE
|
Case Params.SPIRALVASE
|
||||||
@@ -925,6 +1148,10 @@ Public Class CurrCheckMachiningParam
|
|||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLEADOUTINVERT, m_bValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLEADOUTINVERT, m_bValue)
|
||||||
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, m_bValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, m_bValue)
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILLLINK, m_bValue)
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLLINK, m_bValue)
|
||||||
End Select
|
End Select
|
||||||
m_bOrigValue = m_bValue
|
m_bOrigValue = m_bValue
|
||||||
If nIndex > 0 Then
|
If nIndex > 0 Then
|
||||||
@@ -934,6 +1161,10 @@ Public Class CurrCheckMachiningParam
|
|||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.RIBSLINK, Params.RIBSINVERTORDER, Params.RIBSINVERTDIRECTION, Params.RIBSINVERTSTRANDORDER, Params.RIBSLEADININVERT, Params.RIBSLEADOUTINVERT, Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLINK, Params.RIBSINVERTORDER, Params.RIBSINVERTDIRECTION, Params.RIBSINVERTSTRANDORDER, Params.RIBSLEADININVERT, Params.RIBSLEADOUTINVERT, Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.INFILL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
End Select
|
End Select
|
||||||
If bForceFromDb OrElse Not bReadFromPart Then
|
If bForceFromDb OrElse Not bReadFromPart Then
|
||||||
m_bValue = m_DbParam.bOrigValue
|
m_bValue = m_DbParam.bOrigValue
|
||||||
@@ -960,6 +1191,10 @@ Public Class CurrCheckMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_RIBSLEADOUTINVERT, If(m_bValue, 1, 0))
|
EgtSetInfo(nPartId, MAC_RIBSLEADOUTINVERT, If(m_bValue, 1, 0))
|
||||||
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
EgtSetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, If(m_bValue, 1, 0))
|
EgtSetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, If(m_bValue, 1, 0))
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSINFILLLINK, If(m_bValue, 1, 0))
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLLINK, If(m_bValue, 1, 0))
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1016,8 +1251,8 @@ Public Class CurrOrderedMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean)
|
Sub New(Type As Params, nPartId As Integer, nIndex As Integer, bForceFromDb As Boolean, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type, nIndex)
|
MyBase.New(Type, nIndex, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.PRINT_ORDER
|
Case Params.PRINT_ORDER
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<Grid x:Class="CurrMachiningPanelV"
|
<Grid x:Class="CurrMachiningPanelV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
xmlns:PrintApp="clr-namespace:Icarus"
|
xmlns:PrintApp="clr-namespace:Icarus"
|
||||||
Width="310"
|
Width="310"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
@@ -46,19 +47,27 @@
|
|||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.Resources>
|
<ItemsControl.Resources>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:NumericMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:NumericMachiningParam}">
|
||||||
<Grid Margin="0,1,2.5,1">
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
<TextBox Grid.Column="1"
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
Text="{Binding sValue}"
|
<TextBlock Text=" (BETA)"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource ParameterList_TextBox}"/>
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
|
<EgtWPFLib5:EgtTextBox2 Grid.Column="1"
|
||||||
|
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBox2}"/>
|
||||||
<Button Grid.Column="2"
|
<Button Grid.Column="2"
|
||||||
Content="R"
|
Content="R"
|
||||||
Command="{Binding ResetParam_Command}"
|
Command="{Binding ResetParam_Command}"
|
||||||
@@ -70,15 +79,23 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:ComboMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:ComboMachiningParam}">
|
||||||
<Grid Margin="0,1,2.5,1">
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<ComboBox Grid.Column="1"
|
<ComboBox Grid.Column="1"
|
||||||
ItemsSource="{Binding ValueList}"
|
ItemsSource="{Binding ValueList}"
|
||||||
SelectedItem="{Binding SelValue}"
|
SelectedItem="{Binding SelValue}"
|
||||||
@@ -97,15 +114,23 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:CheckMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:CheckMachiningParam}">
|
||||||
<Grid Height="22"
|
<Grid Height="22"
|
||||||
Margin="0,1,2.5,1">
|
Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<CheckBox Grid.Column="1"
|
<CheckBox Grid.Column="1"
|
||||||
IsChecked="{Binding bValue}"
|
IsChecked="{Binding bValue}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_SelFilledSolid
|
Return m_SelFilledSolid
|
||||||
End Get
|
End Get
|
||||||
Set(value As FilledSolidEntity)
|
Set(value As FilledSolidEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refFilledSolidPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelFilledSolid = value
|
m_SelFilledSolid = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -213,7 +217,7 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_bAdd_IsChecked
|
Return m_bAdd_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bAdd_IsChecked = value
|
m_bAdd_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
@@ -235,7 +239,7 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_bEdit_IsChecked
|
Return m_bEdit_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelFilledSolid) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelFilledSolid) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bEdit_IsChecked = value
|
m_bEdit_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -259,7 +263,7 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_bGrid_IsChecked
|
Return m_bGrid_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bGrid_IsChecked = value
|
m_bGrid_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -287,7 +291,7 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_bMove_IsChecked
|
Return m_bMove_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelFilledSolid) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelFilledSolid) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bMove_IsChecked = value
|
m_bMove_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -311,7 +315,7 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_bRotate_IsChecked
|
Return m_bRotate_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelFilledSolid) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelFilledSolid) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bRotate_IsChecked = value
|
m_bRotate_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -335,7 +339,7 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_bMachParam_IsChecked
|
Return m_bMachParam_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelFilledSolid) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not IsNothing(Map.refTopPanelVM.SelMachining) AndAlso value Then
|
If Not IsNothing(m_SelFilledSolid) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive AndAlso Not IsNothing(Map.refTopPanelVM.SelMachining) AndAlso value Then
|
||||||
m_bMachParam_IsChecked = True
|
m_bMachParam_IsChecked = True
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
@@ -349,6 +353,8 @@ Public Class FilledSolidPanelVM
|
|||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.AUXSOLIDPARAM)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.AUXSOLIDPARAM)
|
||||||
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
||||||
|
' disattivo interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Else
|
Else
|
||||||
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
||||||
End If
|
End If
|
||||||
@@ -358,6 +364,8 @@ Public Class FilledSolidPanelVM
|
|||||||
m_bMachParam_IsChecked = False
|
m_bMachParam_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
||||||
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
||||||
|
' riattivo interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Compo_Visibility As Visibility
|
Public ReadOnly Property Compo_Visibility As Visibility
|
||||||
@@ -366,11 +374,17 @@ Public Class FilledSolidPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_FilledSolidList_IsEnabled As Boolean = False
|
||||||
Public ReadOnly Property FilledSolidList_IsEnabled As Boolean
|
Public ReadOnly Property FilledSolidList_IsEnabled As Boolean
|
||||||
Get
|
Get
|
||||||
Return Not m_bMachParam_IsChecked
|
Return If(m_FilledSolidList.Count > 0, m_FilledSolidList_IsEnabled, False)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
Friend Sub SetFilledSolidListIsEnabled(bValue As Boolean)
|
||||||
|
m_FilledSolidList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -388,6 +402,8 @@ Public Class FilledSolidPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Import_ToolTip As String
|
Public ReadOnly Property Import_ToolTip As String
|
||||||
@@ -517,7 +533,6 @@ Public Class FilledSolidPanelVM
|
|||||||
Private m_cmdCPlaneObj As ICommand
|
Private m_cmdCPlaneObj As ICommand
|
||||||
Private m_cmdDragMove As ICommand
|
Private m_cmdDragMove As ICommand
|
||||||
Private m_cmdDragRotate As ICommand
|
Private m_cmdDragRotate As ICommand
|
||||||
Private m_cmdMachParam As ICommand
|
|
||||||
|
|
||||||
#End Region ' FIELDS & PROPERTIES
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
@@ -572,6 +587,8 @@ Public Class FilledSolidPanelVM
|
|||||||
SelFilledSolid = m_FilledSolidList(0)
|
SelFilledSolid = m_FilledSolidList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
||||||
End If
|
End If
|
||||||
|
' attivo lista filled solid
|
||||||
|
SetFilledSolidListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -607,8 +624,13 @@ Public Class FilledSolidPanelVM
|
|||||||
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
||||||
Case FilledSolidSelectionTypes.EXTRUSION
|
Case FilledSolidSelectionTypes.EXTRUSION
|
||||||
' creo layer per estrusione
|
' creo layer per estrusione
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId = GDB_ID.NULL Then
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
Else
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
||||||
Case FilledSolidSelectionTypes.BOTH
|
Case FilledSolidSelectionTypes.BOTH
|
||||||
@@ -616,6 +638,8 @@ Public Class FilledSolidPanelVM
|
|||||||
EgtSelectObj(m_SelFilledSolid.nExtrusionId)
|
EgtSelectObj(m_SelFilledSolid.nExtrusionId)
|
||||||
End Select
|
End Select
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -625,6 +649,7 @@ Public Class FilledSolidPanelVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
Select Case command
|
Select Case command
|
||||||
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
||||||
' leggo altezza estrusione
|
' leggo altezza estrusione
|
||||||
@@ -664,6 +689,10 @@ Public Class FilledSolidPanelVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End Select
|
End Select
|
||||||
|
' se non ho creato percorso riabilito interfaccia
|
||||||
|
If Not m_bIsCreatingPath Then
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
||||||
' se finita creazione estrusione
|
' se finita creazione estrusione
|
||||||
If m_bIsCreatingExtrusion Then
|
If m_bIsCreatingExtrusion Then
|
||||||
@@ -706,6 +735,7 @@ Public Class FilledSolidPanelVM
|
|||||||
If NewGeomType = GDB_TY.CRV_COMPO Then
|
If NewGeomType = GDB_TY.CRV_COMPO Then
|
||||||
If Not EgtCurveIsClosed(nNewEntityId) Then
|
If Not EgtCurveIsClosed(nNewEntityId) Then
|
||||||
EgtCloseCurveCompo(nNewEntityId)
|
EgtCloseCurveCompo(nNewEntityId)
|
||||||
|
m_bEscOnLine2P = True
|
||||||
End If
|
End If
|
||||||
EgtSetName(nNewEntityId, RIB_CURVE)
|
EgtSetName(nNewEntityId, RIB_CURVE)
|
||||||
' resetto colore entita'
|
' resetto colore entita'
|
||||||
@@ -718,9 +748,15 @@ Public Class FilledSolidPanelVM
|
|||||||
' lo seleziono
|
' lo seleziono
|
||||||
SelFilledSolid = NewEntity
|
SelFilledSolid = NewEntity
|
||||||
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
||||||
' creo layer per estrusione
|
' verifico se esiste gia' layer estrusione e lo svuoto
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId <> GDB_ID.NULL Then
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
Else
|
||||||
|
' altrimenti lo creo
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
' seleziono percorso da estrudere
|
' seleziono percorso da estrudere
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
@@ -752,6 +788,13 @@ Public Class FilledSolidPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
If m_bIsCreatingExtrusion Then m_bIsCreatingExtrusion = False
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -787,6 +830,18 @@ Public Class FilledSolidPanelVM
|
|||||||
Return nFilledSolidIndex + 1
|
Return nFilledSolidIndex + 1
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetFilledSolidListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -809,8 +864,10 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Import(ByVal param As Object)
|
Public Sub Import(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.InsertFilledSolid()
|
Map.refSceneHostVM.InsertFilledSolid()
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Import
|
#End Region ' Import
|
||||||
@@ -833,7 +890,8 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
||||||
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
||||||
@@ -858,7 +916,7 @@ Public Class FilledSolidPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Delete()
|
Public Sub Delete()
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If IsNothing(SelFilledSolid) Then Return
|
If IsNothing(SelFilledSolid) Then Return
|
||||||
Dim bOk As Boolean = False
|
Dim bOk As Boolean = False
|
||||||
Select Case m_SelFilledSolid.Type
|
Select Case m_SelFilledSolid.Type
|
||||||
@@ -882,6 +940,7 @@ Public Class FilledSolidPanelVM
|
|||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
||||||
End If
|
End If
|
||||||
|
SetFilledSolidListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
@@ -904,7 +963,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub ModifyCurve(ByVal param As Object)
|
Public Sub ModifyCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(FilledSolidSelectionTypes.CURVE)
|
InitCommand(FilledSolidSelectionTypes.CURVE)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -929,7 +988,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub AddPointCurve(ByVal param As Object)
|
Public Sub AddPointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(FilledSolidSelectionTypes.CURVE)
|
InitCommand(FilledSolidSelectionTypes.CURVE)
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
||||||
@@ -958,7 +1017,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub RemovePointCurve(ByVal param As Object)
|
Public Sub RemovePointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(FilledSolidSelectionTypes.CURVE)
|
InitCommand(FilledSolidSelectionTypes.CURVE)
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
||||||
@@ -987,7 +1046,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the Extrude. This method is invoked by the ExtrudeCommand.
|
''' Execute the Extrude. This method is invoked by the ExtrudeCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Extrude(ByVal param As Object)
|
Public Sub Extrude(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(FilledSolidSelectionTypes.EXTRUSION)
|
InitCommand(FilledSolidSelectionTypes.EXTRUSION)
|
||||||
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
||||||
m_bIsCreatingExtrusion = True
|
m_bIsCreatingExtrusion = True
|
||||||
@@ -1015,7 +1074,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneTop(ByVal param As Object)
|
Public Sub CPlaneTop(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1040,7 +1099,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneFront(ByVal param As Object)
|
Public Sub CPlaneFront(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1065,7 +1124,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneRight(ByVal param As Object)
|
Public Sub CPlaneRight(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1090,7 +1149,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBack(ByVal param As Object)
|
Public Sub CPlaneBack(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1115,7 +1174,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneLeft(ByVal param As Object)
|
Public Sub CPlaneLeft(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1140,7 +1199,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBottom(ByVal param As Object)
|
Public Sub CPlaneBottom(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1165,7 +1224,8 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1189,7 +1249,8 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1213,7 +1274,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneRotate. This method is invoked by the CPlaneRotateCommand.
|
''' Execute the CPlaneRotate. This method is invoked by the CPlaneRotateCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneRotate(ByVal param As Object)
|
Public Sub CPlaneRotate(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ROTATE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ROTATE)
|
||||||
Else
|
Else
|
||||||
@@ -1241,7 +1302,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlane3P. This method is invoked by the CPlane3PCommand.
|
''' Execute the CPlane3P. This method is invoked by the CPlane3PCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlane3P(ByVal param As Object)
|
Public Sub CPlane3P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_3P)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_3P)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1265,7 +1326,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlanePerpObj. This method is invoked by the CPlanePerpObjCommand.
|
''' Execute the CPlanePerpObj. This method is invoked by the CPlanePerpObjCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlanePerpObj(ByVal param As Object)
|
Public Sub CPlanePerpObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_PERPCURVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_PERPCURVE)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1305,7 +1366,8 @@ Public Class FilledSolidPanelVM
|
|||||||
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
@@ -1315,7 +1377,7 @@ Public Class FilledSolidPanelVM
|
|||||||
End While
|
End While
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
m_bCPlaneObj_IsActive = True
|
m_bCPlaneObj_IsActive = True
|
||||||
' Map.refControllerInputPanelVM.PrepareInputBox("Grid from Selection", "Select the face of the object where to place the grid", "", False, False)
|
Map.refControllerInputPanelVM.ShowMessage("Grid from Selection", "Select the face of the object where to place the grid")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CPlaneObj
|
#End Region ' CPlaneObj
|
||||||
@@ -1332,7 +1394,7 @@ Public Class FilledSolidPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DragMove()
|
Public Sub DragMove()
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(FilledSolidSelectionTypes.BOTH)
|
InitCommand(FilledSolidSelectionTypes.BOTH)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1351,41 +1413,13 @@ Public Class FilledSolidPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DragRotate()
|
Public Sub DragRotate()
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(FilledSolidSelectionTypes.BOTH)
|
InitCommand(FilledSolidSelectionTypes.BOTH)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.ROTATE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.ROTATE)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' DragRotate
|
#End Region ' DragRotate
|
||||||
|
|
||||||
#Region "MachParam"
|
|
||||||
|
|
||||||
Public ReadOnly Property MachParam_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdMachParam Is Nothing Then
|
|
||||||
m_cmdMachParam = New Command(AddressOf MachParam)
|
|
||||||
End If
|
|
||||||
Return m_cmdMachParam
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub MachParam()
|
|
||||||
If IsNothing(Map.refTopPanelVM.SelMachining) Then Return
|
|
||||||
m_bAdd_IsChecked = False
|
|
||||||
m_bEdit_IsChecked = False
|
|
||||||
m_bGrid_IsChecked = False
|
|
||||||
m_bMove_IsChecked = False
|
|
||||||
m_bRotate_IsChecked = False
|
|
||||||
NotifyPropertyChanged(NameOf(bAdd_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bEdit_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bGrid_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bMove_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.AUXSOLIDPARAM)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' MachParam
|
|
||||||
|
|
||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -33,7 +33,8 @@
|
|||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.Resources>
|
<ItemsControl.Resources>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:NumericMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:NumericMachiningParam}">
|
||||||
<Grid Margin="0,1,2.5,1">
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -57,7 +58,8 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:ComboMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:ComboMachiningParam}">
|
||||||
<Grid Margin="0,1,2.5,1">
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -82,18 +84,51 @@
|
|||||||
Style="{StaticResource ToolBar_SmallButton}"/>
|
Style="{StaticResource ToolBar_SmallButton}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
<DataTemplate DataType="{x:Type PrintApp:CheckMachiningParam}">
|
||||||
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Text="{Binding sName}"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<CheckBox Grid.Column="1"
|
||||||
|
IsChecked="{Binding bValue}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="2.5,0,0,0"/>
|
||||||
|
<Button Grid.Column="2"
|
||||||
|
Content="R"
|
||||||
|
Command="{Binding ResetParam_Command}"
|
||||||
|
IsEnabled="{Binding bIsModifiedFromPart}"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
HorizontalContentAlignment="Center"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource ToolBar_SmallButton}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
</ItemsControl.Resources>
|
</ItemsControl.Resources>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
<UniformGrid Grid.Row="1"
|
<UniformGrid Grid.Row="1"
|
||||||
Rows="1"
|
Rows="1"
|
||||||
Margin="0,2.5,0,0">
|
Margin="0,2.5,0,0">
|
||||||
<Button Content="Ok"
|
<Button Command="{Binding Ok_Command}"
|
||||||
Command="{Binding Ok_Command}"
|
IsDefault="True"
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
Margin="0,0,2.5,0"
|
||||||
<Button Content="Cancel"
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
Command="{Binding Cancel_Command}"
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding Cancel_Command}"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
@@ -42,17 +42,33 @@ Public Class FilledSolidParamPanelVM
|
|||||||
|
|
||||||
m_Type = Cathegories.AUX_SOLID
|
m_Type = Cathegories.AUX_SOLID
|
||||||
m_sName = "Filled Solid"
|
m_sName = "Filled Solid"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nFilledSolidId, nPartId),
|
m_MachiningParamList = New List(Of MachiningParam)({New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nFilledSolidId, nPartId),
|
New FilledSolidcheckMachiningParam(MachiningParam.Params.AUXSOLIDSINFILLLINK, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nFilledSolidId, nPartId),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDCOUNT, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nFilledSolidId, nPartId),
|
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nFilledSolidId, nPartId),
|
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nFilledSolidId, nPartId),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nFilledSolidId, nPartId),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nFilledSolidId, nPartId),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETLEADPOINT, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nFilledSolidId, nPartId)})
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDENSITY, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSGRIDOVERLAP, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDIRECTION, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETX, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETY, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nFilledSolidId, nPartId, Me)})
|
||||||
NotifyPropertyChanged(NameOf(MachiningParamList))
|
NotifyPropertyChanged(NameOf(MachiningParamList))
|
||||||
NotifyPropertyChanged(NameOf(sName))
|
NotifyPropertyChanged(NameOf(sName))
|
||||||
|
' verifico dipendenze tra parametri
|
||||||
|
Select Case m_Type
|
||||||
|
Case Cathegories.AUX_SOLID
|
||||||
|
For Each Param In {MachiningParam.Params.AUXSOLIDSINFILL}
|
||||||
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub SaveCurrParams()
|
Friend Sub SaveCurrParams()
|
||||||
@@ -178,10 +194,14 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nFilledSolidId As Integer, nPartId As Integer)
|
Sub New(Type As Params, nFilledSolidId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type)
|
MyBase.New(Type, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSSTRANDCOUNT, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSSTRANDCOUNT, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, m_dValue)
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, m_dValue)
|
||||||
EgtGetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, m_dPartValue)
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, m_dPartValue)
|
||||||
@@ -194,6 +214,30 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
||||||
EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dPartValue)
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dPartValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETLEADPOINT, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETLEADPOINT, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSDENSITY, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSDENSITY, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSGRIDOVERLAP, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSGRIDOVERLAP, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSDIRECTION, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSDIRECTION, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETX, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETX, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETY, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETY, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
||||||
EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dPartValue)
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dPartValue)
|
||||||
@@ -222,6 +266,12 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
sWriteValue = DoubleToString(m_dValue, 2)
|
sWriteValue = DoubleToString(m_dValue, 2)
|
||||||
End If
|
End If
|
||||||
Select Case Type
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSSTRANDCOUNT, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSSTRANDCOUNT)
|
||||||
|
End If
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
If bIsModifiedFromPart Then
|
If bIsModifiedFromPart Then
|
||||||
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
||||||
@@ -240,6 +290,42 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
Else
|
Else
|
||||||
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE)
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE)
|
||||||
End If
|
End If
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETLEADPOINT, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETLEADPOINT)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSDENSITY, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSDENSITY)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSGRIDOVERLAP, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSGRIDOVERLAP)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSDIRECTION, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSDIRECTION)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETX, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETX)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETY, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETY)
|
||||||
|
End If
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
If bIsModifiedFromPart Then
|
If bIsModifiedFromPart Then
|
||||||
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
||||||
@@ -305,6 +391,7 @@ Public Class FilledSolidComboMachiningParam
|
|||||||
m_SelValue = value
|
m_SelValue = value
|
||||||
NotifyPropertyChanged(NameOf(SelValue))
|
NotifyPropertyChanged(NameOf(SelValue))
|
||||||
NotifyPropertyChanged(NameOf(bIsModifiedFromPart))
|
NotifyPropertyChanged(NameOf(bIsModifiedFromPart))
|
||||||
|
ManageDependencyParam()
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -324,15 +411,20 @@ Public Class FilledSolidComboMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nRibId As Integer, nPartId As Integer)
|
Sub New(Type As Params, nRibId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type)
|
MyBase.New(Type, Cathegory)
|
||||||
Dim bReadFromRib As Boolean = False
|
Dim bReadFromRib As Boolean = False
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.OFFSET, "Offset"),
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.ZIGZAG, "ZigZag")})
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
Dim nSelValue As Integer = 1
|
Dim nSelValue As Integer = 1
|
||||||
bReadFromRib = EgtGetInfo(nRibId, MAC_AUXSOLIDSINFILL, nSelValue)
|
bReadFromRib = EgtGetInfo(nRibId, MAC_AUXSOLIDSINFILL, nSelValue)
|
||||||
If bReadFromRib Then
|
If bReadFromRib Then
|
||||||
@@ -370,7 +462,7 @@ Public Class FilledSolidComboMachiningParam
|
|||||||
Else
|
Else
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_INFILL.NONE)
|
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_INFILL_TYPE.NONE)
|
||||||
m_SelValue = m_OrigSelValue
|
m_SelValue = m_OrigSelValue
|
||||||
Case Params.AUXSOLIDSSTRANDORDER
|
Case Params.AUXSOLIDSSTRANDORDER
|
||||||
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_STRANDORDERS.OUTTOIN)
|
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_STRANDORDERS.OUTTOIN)
|
||||||
@@ -438,4 +530,95 @@ Public Class FilledSolidComboMachiningParam
|
|||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
Public Class FilledSolidCheckMachiningParam
|
||||||
|
Inherits CheckMachiningParam
|
||||||
|
|
||||||
|
Public Overrides Property bValue As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bValue
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_bValue = value
|
||||||
|
NotifyPropertyChanged(NameOf(bValue))
|
||||||
|
NotifyPropertyChanged(NameOf(bIsModifiedFromPart))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Protected m_bPartValue As Boolean
|
||||||
|
Public ReadOnly Property bPartValue As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bPartValue
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property bIsModifiedFromPart As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bValue <> m_bPartValue
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' Definizione comandi
|
||||||
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
|
Sub New(Type As Params, nAuxSolidId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
|
MyBase.New(Type, Cathegory)
|
||||||
|
Dim bReadFromPart As Boolean = False
|
||||||
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
bReadFromPart = EgtGetInfo(nAuxSolidId, MAC_AUXSOLIDSINFILLLINK, m_bValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILLLINK, m_bPartValue)
|
||||||
|
End Select
|
||||||
|
m_bOrigValue = m_bValue
|
||||||
|
If Not bReadFromPart Then
|
||||||
|
m_bValue = m_bPartValue
|
||||||
|
m_bOrigValue = m_bPartValue
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub WriteParamInRib(nAuxSolidId As Integer)
|
||||||
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nAuxSolidId, MAC_AUXSOLIDSINFILLLINK, If(m_bValue, 1, 0))
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nAuxSolidId, MAC_AUXSOLIDSINFILLLINK)
|
||||||
|
End If
|
||||||
|
End Select
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Overrides Sub SaveParam()
|
||||||
|
m_bOrigValue = m_bValue
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Overrides Sub ResetParam()
|
||||||
|
m_bValue = m_bOrigValue
|
||||||
|
NotifyPropertyChanged(NameOf(bValue))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "ResetParam"
|
||||||
|
|
||||||
|
Public ReadOnly Property ResetParam_Command As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdResetParam Is Nothing Then
|
||||||
|
m_cmdResetParam = New Command(AddressOf ResetParamCmd)
|
||||||
|
End If
|
||||||
|
Return m_cmdResetParam
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Sub ResetParamCmd()
|
||||||
|
m_bValue = m_bPartValue
|
||||||
|
NotifyPropertyChanged(NameOf(bValue))
|
||||||
|
NotifyPropertyChanged(NameOf(bIsModifiedFromPart))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' ResetParam
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
<Compile Include="Constants\ConstDataGridColumnsIni.vb" />
|
<Compile Include="Constants\ConstDataGridColumnsIni.vb" />
|
||||||
<Compile Include="Constants\ConstDims.vb" />
|
<Compile Include="Constants\ConstDims.vb" />
|
||||||
<Compile Include="Constants\ConstGen.vb" />
|
<Compile Include="Constants\ConstGen.vb" />
|
||||||
|
<Compile Include="Constants\ConstMachDataIni.vb" />
|
||||||
<Compile Include="Constants\ConstIni.vb" />
|
<Compile Include="Constants\ConstIni.vb" />
|
||||||
<Compile Include="Constants\ConstMachComm.vb" />
|
<Compile Include="Constants\ConstMachComm.vb" />
|
||||||
<Compile Include="Constants\ConstMachIni.vb" />
|
<Compile Include="Constants\ConstMachIni.vb" />
|
||||||
@@ -161,6 +162,10 @@
|
|||||||
<DependentUpon>ImportExportMachiningPanelV.xaml</DependentUpon>
|
<DependentUpon>ImportExportMachiningPanelV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="ImportExportMachiningPanel\ImportExportMachiningPanelVM.vb" />
|
<Compile Include="ImportExportMachiningPanel\ImportExportMachiningPanelVM.vb" />
|
||||||
|
<Compile Include="ImportLoadingWnd\ImportLoadingWndV.xaml.vb">
|
||||||
|
<DependentUpon>ImportLoadingWndV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ImportLoadingWnd\ImportLoadingWndVM.vb" />
|
||||||
<Compile Include="InstrumentPanel\InstrumentPanelV.xaml.vb">
|
<Compile Include="InstrumentPanel\InstrumentPanelV.xaml.vb">
|
||||||
<DependentUpon>InstrumentPanelV.xaml</DependentUpon>
|
<DependentUpon>InstrumentPanelV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -201,8 +206,11 @@
|
|||||||
<DependentUpon>MaterialDbV.xaml</DependentUpon>
|
<DependentUpon>MaterialDbV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="MaterialDb\MaterialDbVM.vb" />
|
<Compile Include="MaterialDb\MaterialDbVM.vb" />
|
||||||
<Compile Include="OptionsWindow\MachineBox.xaml.vb">
|
<Compile Include="TSFEditor\ColumnHeader.xaml.vb">
|
||||||
<DependentUpon>MachineBox.xaml</DependentUpon>
|
<DependentUpon>ColumnHeader.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UpdateMachine\UpdateMachineV.xaml.vb">
|
||||||
|
<DependentUpon>UpdateMachineV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="OptionsWindow\OptionModule.vb" />
|
<Compile Include="OptionsWindow\OptionModule.vb" />
|
||||||
<Compile Include="OptionsWindow\OptionWindowV.xaml.vb">
|
<Compile Include="OptionsWindow\OptionWindowV.xaml.vb">
|
||||||
@@ -304,6 +312,7 @@
|
|||||||
<Compile Include="TSFEditor\TFSEditorV.xaml.vb">
|
<Compile Include="TSFEditor\TFSEditorV.xaml.vb">
|
||||||
<DependentUpon>TFSEditorV.xaml</DependentUpon>
|
<DependentUpon>TFSEditorV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="UpdateMachine\UpdateMachineVM.vb" />
|
||||||
<Compile Include="Utility\CurrentMachine.vb" />
|
<Compile Include="Utility\CurrentMachine.vb" />
|
||||||
<Compile Include="Utility\Dictionary.xaml.vb">
|
<Compile Include="Utility\Dictionary.xaml.vb">
|
||||||
<DependentUpon>Dictionary.xaml</DependentUpon>
|
<DependentUpon>Dictionary.xaml</DependentUpon>
|
||||||
@@ -365,6 +374,10 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="ImportLoadingWnd\ImportLoadingWndV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="InstrumentPanel\InstrumentPanelV.xaml">
|
<Page Include="InstrumentPanel\InstrumentPanelV.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
@@ -417,7 +430,11 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="OptionsWindow\MachineBox.xaml">
|
<Page Include="TSFEditor\ColumnHeader.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="UpdateMachine\UpdateMachineV.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
@@ -787,9 +804,57 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Resources\ViewPanel\LookFromISO_SE.png" />
|
<Resource Include="Resources\ViewPanel\LookFromISO_SE.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\Common\Close.png" />
|
||||||
|
<Resource Include="Resources\Common\Maximize.png" />
|
||||||
|
<Resource Include="Resources\Common\Minimize.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\Common\Restore.png" />
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Resources\SliceManager\StopCalculation.png" />
|
<Resource Include="Resources\SliceManager\StopCalculation.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\SplashScreen\BlueSplashscreen.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\SliceManager\Dimensions.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\TFSEditor\Reduce.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\ReferencePanel\BC.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\BL.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\BR.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\MC.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\ML.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\MR.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\TC.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\TL.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\TR.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_BC.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_BL.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_BR.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_MC.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_ML.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_MR.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_TC.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_TL.png" />
|
||||||
|
<Resource Include="Resources\ReferencePanel\White_TR.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\SliceManager\Mass.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\SliceManager\Time.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\RibParamPanel\CopyFrom.png" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\Icarus\IcarusR32.exe
|
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\Icarus\IcarusR32.exe
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="ImportExportMachiningPanelV"
|
<EgtWPFLib5:EgtMainWindow x:Class="ImportExportMachiningPanelV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding OkMsg}"
|
Title="{Binding OkMsg}"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
SizeToContent="WidthAndHeight"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
WindowStartupLocation="CenterOwner"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
Style="{StaticResource Dialog_Window}">
|
||||||
Width="400" Height="500">
|
|
||||||
|
|
||||||
<Grid>
|
<Grid Margin="2.5,2.5,2.5,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="7*"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<ListBox ItemsSource="{Binding MachiningList}">
|
<ListBox ItemsSource="{Binding MachiningList}"
|
||||||
|
Height="400"
|
||||||
|
Width="250">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate DataType="{x:Type EgtWPFLib5:ImpExpMachiningItem}">
|
<DataTemplate DataType="{x:Type EgtWPFLib5:ImpExpMachiningItem}">
|
||||||
<Grid Height="20">
|
<Grid Height="20">
|
||||||
@@ -32,7 +33,7 @@
|
|||||||
Margin="0,0,5,0"
|
Margin="0,0,5,0"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
Visibility="{Binding Path=DataContext.Active_Visibility,
|
Visibility="{Binding Path=DataContext.Active_Visibility,
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtMainWindow}}}"/>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
Text="{Binding sName}"
|
Text="{Binding sName}"
|
||||||
FontSize="15"
|
FontSize="15"
|
||||||
@@ -46,17 +47,26 @@
|
|||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
|
<UniformGrid Grid.Row="2"
|
||||||
<Button Command="{Binding OkCommand}"
|
Rows="1"
|
||||||
Content="{Binding OkMsg}"
|
Margin="0,20,0,0">
|
||||||
IsEnabled="{Binding IsEnabledOkBtn, Mode=OneWay}"
|
<Button Command="{Binding OkCommand}"
|
||||||
Grid.Row="1"
|
IsEnabled="{Binding IsEnabledOkBtn, Mode=OneWay}"
|
||||||
Height="30" Width="100"
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
Margin="10" />
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
<Button IsCancel="True"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
<EgtWPFLib5:EgtMainWindow x:Class="ImportLoadingWndV"
|
||||||
|
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"
|
||||||
|
Title="New Project"
|
||||||
|
SizeToContent="WidthAndHeight"
|
||||||
|
WindowStartupLocation="CenterOwner"
|
||||||
|
Style="{StaticResource Dialog_Window}">
|
||||||
|
<Grid Margin="2.5,2.5,2.5,2.5">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Text="{Binding Loading_Msg}"
|
||||||
|
Margin="20,20,20,2.5"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<Grid Grid.Row="1"
|
||||||
|
Margin="2.5,2.5,2.5,2.5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ProgressBar Value="{Binding Loading_Value}"
|
||||||
|
Width="200"
|
||||||
|
Margin="0,0,2.5,20"
|
||||||
|
Style="{StaticResource Icarus_ProgressBar}"/>
|
||||||
|
<!--<Button Grid.Column="1"
|
||||||
|
Grid.RowSpan="2"
|
||||||
|
Command="{Binding Stop_Command}"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource TopPanel_Button}">
|
||||||
|
<Image Source="\Resources\SliceManager\StopCalculation.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>-->
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
Public Class ImportLoadingWndV
|
||||||
|
|
||||||
|
Private WithEvents m_ImportLoadingWndVM As ImportLoadingWndVM
|
||||||
|
|
||||||
|
Sub New(Owner As Window, ImportLoadingWndVM As ImportLoadingWndVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
' This call is required by the designer.
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = ImportLoadingWndVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_ImportLoadingWndVM = ImportLoadingWndVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports EgtUILib.EgtInterface
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class ImportLoadingWndVM
|
||||||
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
' Funzioni di callback per output in interfaccia da LUA
|
||||||
|
Private m_ProcEventsCallback As New ProcessEventsCallback(AddressOf ProcessEvents)
|
||||||
|
|
||||||
|
Private m_bStopLoading As Boolean = False
|
||||||
|
|
||||||
|
Private m_Loading_Value As Double
|
||||||
|
Public Property Loading_Value As Double
|
||||||
|
Get
|
||||||
|
Return m_Loading_Value
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
m_Loading_Value = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' Definizione comandi
|
||||||
|
Private m_cmdStop As ICommand
|
||||||
|
|
||||||
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
|
#Region "MESSAGES"
|
||||||
|
|
||||||
|
Public ReadOnly Property Loading_Msg As String
|
||||||
|
Get
|
||||||
|
Return "Importing file..."
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' MESSAGES
|
||||||
|
|
||||||
|
#Region "CONSTRUCTORS"
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
' Creo riferimento a questa classe in Map
|
||||||
|
Map.SetRefImportLoadingWndVM(Me)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTORS
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Friend Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
||||||
|
m_Loading_Value = nProg
|
||||||
|
NotifyPropertyChanged(NameOf(Loading_Value))
|
||||||
|
' Costringo ad aggiornare
|
||||||
|
UpdateUI()
|
||||||
|
' Eventuale attesa
|
||||||
|
Threading.Thread.Sleep(nPause)
|
||||||
|
' Ritorno eventuale stop
|
||||||
|
If m_bStopLoading Then
|
||||||
|
m_bStopLoading = False
|
||||||
|
Return 1
|
||||||
|
Else
|
||||||
|
Return 0
|
||||||
|
End If
|
||||||
|
Return 0
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "Stop"
|
||||||
|
|
||||||
|
Public ReadOnly Property Stop_Command As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdStop Is Nothing Then
|
||||||
|
m_cmdStop = New Command(AddressOf StopLoading)
|
||||||
|
End If
|
||||||
|
Return m_cmdStop
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Sub StopLoading()
|
||||||
|
m_bStopLoading = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Stop
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||||
xmlns:local="clr-namespace:Icarus"
|
xmlns:local="clr-namespace:Icarus"
|
||||||
|
IsEnabled="{Binding InstrumentPanel_IsEnabled}"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
|
|
||||||
<local:CheckedImageToggleButton ToolTip="{Binding GetDist_ToolTip}"
|
<local:CheckedImageToggleButton ToolTip="{Binding GetDist_ToolTip}"
|
||||||
|
|||||||
@@ -1,50 +1,42 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="MachSaveInDbWndV"
|
<EgtWPFLib5:EgtMainWindow x:Class="MachSaveInDbWndV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Title="Save in Database"
|
||||||
Title="Machining Param Name"
|
SizeToContent="WidthAndHeight"
|
||||||
Height="150" Width="300"
|
WindowStartupLocation="CenterOwner"
|
||||||
WindowStartupLocation="CenterOwner"
|
Style="{StaticResource Dialog_Window}">
|
||||||
Icon="/Resources/Icarus.ico"
|
<Grid Margin="2.5,2.5,2.5,0">
|
||||||
WindowStyle="None" ResizeMode="NoResize"
|
|
||||||
ShowInTaskbar="False"
|
|
||||||
IsMinimizable="False">
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="10"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Text="Write the new Database machining name"
|
||||||
Grid.Row="1"
|
Margin="20,20,20,2.5"
|
||||||
Text="Name"
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
Margin="0,0,10,0"
|
<EgtWPFLib5:EgtTextBox2 Grid.Row="1"
|
||||||
Style="{Binding OptionTextBlock}"/>
|
Text="{Binding sName}"
|
||||||
<EgtWPFLib5:EgtTextBox Grid.Column="2"
|
IsExplicitFocused="True"
|
||||||
Grid.Row="1"
|
Width="160"
|
||||||
Width="180"
|
Margin="20,10,20,2.5"
|
||||||
Text="{Binding sName}"
|
Style="{StaticResource LeftPanel_TextBox2}"/>
|
||||||
Style="{StaticResource LeftPanel_TextBox}"/>
|
<UniformGrid Grid.Row="3"
|
||||||
<UniformGrid Grid.Column="1"
|
Rows="1"
|
||||||
Grid.ColumnSpan="2"
|
Margin="0,20,0,0">
|
||||||
Grid.Row="3"
|
<Button Command="{Binding Ok_Command}"
|
||||||
Rows="1">
|
|
||||||
<Button Content="Ok"
|
|
||||||
Command="{Binding Ok_Command}"
|
|
||||||
IsDefault="True"
|
IsDefault="True"
|
||||||
Style="{StaticResource ToolBar_TextButton}"/>
|
Margin="0,0,2.5,0"
|
||||||
<Button Content="Cancel"
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
Command="{Binding Cancel_Command}"
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
Style="{StaticResource ToolBar_TextButton}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding Cancel_Command}"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
Width="40"
|
Width="40"
|
||||||
Style="{StaticResource SelViewSlider_ComboBox}">
|
Style="{StaticResource SelViewSlider_ComboBox}">
|
||||||
<ComboBoxItem>
|
<ComboBoxItem>
|
||||||
<Image Source="\Resources\SimulationPanel\HeadMode.png"
|
<Image Source="\Resources\SimulationPanel\ToolMode.png"
|
||||||
Style="{StaticResource ComboBox.Image}"/>
|
Style="{StaticResource ComboBox.Image}"/>
|
||||||
</ComboBoxItem>
|
</ComboBoxItem>
|
||||||
<ComboBoxItem>
|
<ComboBoxItem>
|
||||||
|
|||||||
@@ -4,32 +4,27 @@ Imports EgtWPFLib5
|
|||||||
Public Class MachineViewPanelVM
|
Public Class MachineViewPanelVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
Private m_nSelMachView As MCH_LOOK
|
|
||||||
Public Property ghSelMachView As Integer
|
Public Property ghSelMachView As Integer
|
||||||
Get
|
Get
|
||||||
Return m_nSelMachView - 1
|
Return If(Not IsNothing(Map.refSimulationPanelVM) AndAlso Not IsNothing(Map.refSimulationPanelVM.MySimul), Map.refSimulationPanelVM.MySimul.GetMachLook() - 1, Nothing)
|
||||||
End Get
|
End Get
|
||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
m_nSelMachView = value + 1
|
If Not IsNothing(Map.refSimulationPanelVM) AndAlso Not IsNothing(Map.refSimulationPanelVM.MySimul) Then
|
||||||
If Not IsNothing(Map.refSimulationPanelVM) Then
|
Map.refSimulationPanelVM.MySimul.SetMachLook(value + 1)
|
||||||
Dim MySimul As SimulationVM = Map.refSimulationPanelVM.MySimul
|
|
||||||
MySimul.SetMachLook(m_nSelMachView)
|
|
||||||
' aggiorno lo stato della macchina e la sua visualizzazione
|
' aggiorno lo stato della macchina e la sua visualizzazione
|
||||||
EgtSetMachineLook(MySimul.GetMachLook())
|
EgtSetMachineLook(Map.refSimulationPanelVM.MySimul.GetMachLook())
|
||||||
WriteMainPrivateProfileString(S_SIMUL, K_MACHVIEWMODE, m_nSelMachView)
|
WriteMainPrivateProfileString(S_SIMUL, K_MACHVIEWMODE, value + 1)
|
||||||
End If
|
End If
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Friend Sub SetSelViewSlider(value As MCH_LOOK)
|
Friend Sub RefreshSelViewSlider()
|
||||||
m_nSelMachView = value
|
|
||||||
NotifyPropertyChanged(NameOf(ghSelMachView))
|
NotifyPropertyChanged(NameOf(ghSelMachView))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
' leggo vista macchina da ini e la imposto
|
' Creo riferimento a questa classe in OmagOFFICEMap
|
||||||
Dim DefaultMachViewMode As Integer = GetMainPrivateProfileInt(S_SIMUL, K_MACHVIEWMODE, 3)
|
Map.SetRefMachineViewPanelVM(Me)
|
||||||
SetSelViewSlider(DefaultMachViewMode)
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -134,29 +134,45 @@
|
|||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.Resources>
|
<ItemsControl.Resources>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:NumericMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:NumericMachiningParam}">
|
||||||
<Grid Margin="0,1,2.5,1">
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
<TextBox Grid.Column="1"
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
Text="{Binding sValue}"
|
<TextBlock Text=" (BETA)"
|
||||||
Margin="2.5,0,0,0"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource ParameterList_TextBox}"/>
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
|
<EgtWPFLib5:EgtTextBox2 Grid.Column="1"
|
||||||
|
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBox2}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:ComboMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:ComboMachiningParam}">
|
||||||
<Grid Margin="0,1,2.5,1">
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<ComboBox Grid.Column="1"
|
<ComboBox Grid.Column="1"
|
||||||
ItemsSource="{Binding ValueList}"
|
ItemsSource="{Binding ValueList}"
|
||||||
SelectedItem="{Binding SelValue}"
|
SelectedItem="{Binding SelValue}"
|
||||||
@@ -167,14 +183,22 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate DataType="{x:Type PrintApp:CheckMachiningParam}">
|
<DataTemplate DataType="{x:Type PrintApp:CheckMachiningParam}">
|
||||||
<Grid Height="22"
|
<Grid Height="22"
|
||||||
Margin="0,1,2.5,1">
|
Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<CheckBox Grid.Column="1"
|
<CheckBox Grid.Column="1"
|
||||||
IsChecked="{Binding bValue}"
|
IsChecked="{Binding bValue}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
|||||||
@@ -75,13 +75,6 @@ Public Class MainWindowM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_bAutoNestOption As Boolean = False
|
|
||||||
Friend ReadOnly Property AutoNestOption As Boolean
|
|
||||||
Get
|
|
||||||
Return m_bAutoNestOption
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Friend ReadOnly Property sVersion As String
|
Friend ReadOnly Property sVersion As String
|
||||||
Get
|
Get
|
||||||
Return My.Application.Info.Version.Major.ToString() & "." &
|
Return My.Application.Info.Version.Major.ToString() & "." &
|
||||||
@@ -189,14 +182,17 @@ Public Class MainWindowM
|
|||||||
Dim sKey As String = String.Empty
|
Dim sKey As String = String.Empty
|
||||||
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
|
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
|
||||||
EgtSetKey(sKey)
|
EgtSetKey(sKey)
|
||||||
Dim sNestKey As String = ""
|
' Impostazioni per chiave di rete
|
||||||
EgtUILib.GetPrivateProfileString(S_LICENCE, K_NESTKEY, "", sNestKey, sLicFile)
|
Dim bNetKey As Boolean = ( GetMainPrivateProfileInt( S_GENERAL, K_NETKEY, 0) = 1)
|
||||||
'EgtSetNestKey(sNestKey)
|
EgtSetNetHwKey( bNetKey)
|
||||||
' Verifico abilitazione nesting automatico
|
Dim sLockId As String = ""
|
||||||
m_bAutoNestOption = Not String.IsNullOrWhiteSpace(sNestKey)
|
EgtUILib.GetPrivateProfileString( S_LICENCE, K_LOCKID, "", sLockId, sLicFile)
|
||||||
|
If Not String.IsNullOrEmpty( sLockId) Then
|
||||||
|
EgtSetLockId( sLockId)
|
||||||
|
End If
|
||||||
' Recupero livello e opzioni della chiave
|
' Recupero livello e opzioni della chiave
|
||||||
Dim bKey As Boolean = EgtGetKeyLevel(5583, 2502, 1, m_nKeyLevel) And
|
Dim bKey As Boolean = EgtGetKeyLevel(5583, 2507, 1, m_nKeyLevel) And
|
||||||
EgtGetKeyOptions(5583, 2502, 1, m_nKeyOptions)
|
EgtGetKeyOptions(5583, 2507, 1, m_nKeyOptions)
|
||||||
' Inizializzazione generale di EgtInterface
|
' Inizializzazione generale di EgtInterface
|
||||||
m_nDebug = GetMainPrivateProfileInt(S_GENERAL, K_DEBUG, 0)
|
m_nDebug = GetMainPrivateProfileInt(S_GENERAL, K_DEBUG, 0)
|
||||||
m_sLogFile = m_sTempDir & "\" & GENLOG_FILE_NAME.Replace("#", m_nInstance.ToString())
|
m_sLogFile = m_sTempDir & "\" & GENLOG_FILE_NAME.Replace("#", m_nInstance.ToString())
|
||||||
|
|||||||
@@ -1,20 +1,14 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="MainWindowV"
|
<EgtWPFLib5:EgtMainWindow x:Class="MainWindowV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
xmlns:PrintApp="clr-namespace:Icarus"
|
xmlns:PrintApp="clr-namespace:Icarus"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
MinHeight="600" MinWidth="800"
|
||||||
Title="{Binding sTitle}" Icon="/Resources/Icarus.ico"
|
AllowDrop="True"
|
||||||
MinHeight="600" MinWidth="800" WindowStyle="None" ResizeMode="NoResize"
|
Drop="MainWindowV_Drop"
|
||||||
AllowDrop="True" Drop="MainWindowV_Drop"
|
ShowInTaskbar="True"
|
||||||
ShowInTaskbar="True"
|
Topmost="False"
|
||||||
Topmost="False"
|
Style="{StaticResource NoStyle_Window}">
|
||||||
CloseCommand="{Binding CloseApplicationCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
|
||||||
<!--<EgtWPFLib5:EgtCustomWindow.TitlePanel>
|
|
||||||
|
|
||||||
<PrintApp:ProjManagerV DataContext="{StaticResource ProjManagerVM}"/>
|
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow.TitlePanel>-->
|
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -23,14 +17,5 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<PrintApp:SceneHostV Grid.Row="1"/>
|
<PrintApp:SceneHostV Grid.Row="1"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<!--Pannello principale --><!--
|
|
||||||
<DockPanel>
|
|
||||||
|
|
||||||
--><!--StatusBar --><!--
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
<PrintApp:StatusBarV DataContext="{StaticResource StatusBarVM}"
|
|
||||||
DockPanel.Dock="Bottom"/>
|
|
||||||
<PrintApp:ProjectV DataContext="{StaticResource ProjectVM}"/>
|
|
||||||
|
|
||||||
</DockPanel>-->
|
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ Imports System.Windows.Interop
|
|||||||
Class MainWindowV
|
Class MainWindowV
|
||||||
|
|
||||||
Private m_MainWindowVM As MainWindowVM
|
Private m_MainWindowVM As MainWindowVM
|
||||||
Private m_SceneHostWnd As SecondaryWindowV
|
|
||||||
|
|
||||||
#Region "CONSTRUCTOR"
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
@@ -20,6 +19,8 @@ Class MainWindowV
|
|||||||
AddHandler Me.Closing, AddressOf MainWindowV_Closing
|
AddHandler Me.Closing, AddressOf MainWindowV_Closing
|
||||||
AddHandler Me.KeyDown, AddressOf MainWindowV_KeyDown
|
AddHandler Me.KeyDown, AddressOf MainWindowV_KeyDown
|
||||||
AddHandler Me.StateChanged, AddressOf MainWindowV_StateChanged
|
AddHandler Me.StateChanged, AddressOf MainWindowV_StateChanged
|
||||||
|
'AddHandler Me.LocationChanged, AddressOf MainWindowV_LocationChanged
|
||||||
|
'AddHandler Me.SizeChanged, AddressOf MainWindowV_SizeChanged
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CONSTRUCTOR
|
#End Region ' CONSTRUCTOR
|
||||||
@@ -60,15 +61,27 @@ Class MainWindowV
|
|||||||
Me.Activate()
|
Me.Activate()
|
||||||
' Recupero l'array di stringhe con i nomi del file
|
' Recupero l'array di stringhe con i nomi del file
|
||||||
Dim sFiles() As String = DirectCast(e.Data.GetData(DataFormats.FileDrop), String())
|
Dim sFiles() As String = DirectCast(e.Data.GetData(DataFormats.FileDrop), String())
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub MainWindowV_LocationChanged(sender As Object, e As EventArgs)
|
||||||
|
If Not IsNothing(Map.refSecondaryWindowV) Then
|
||||||
|
Map.refSecondaryWindowV.Top = Me.Top
|
||||||
|
Map.refSecondaryWindowV.Left = Me.Left
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub MainWindowV_SizeChanged(sender As Object, e As SizeChangedEventArgs)
|
||||||
|
If Not IsNothing(Map.refSecondaryWindowV) Then
|
||||||
|
If e.WidthChanged Then Map.refSecondaryWindowV.Width = e.NewSize.Width
|
||||||
|
If e.HeightChanged Then Map.refSecondaryWindowV.Height = e.NewSize.Height
|
||||||
|
Map.refSecondaryWindowV.InvalidateVisual()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub MainWindowV_StateChanged(sender As Object, e As EventArgs)
|
Private Sub MainWindowV_StateChanged(sender As Object, e As EventArgs)
|
||||||
If Not IsNothing(Map.refSecondaryWindowV) AndAlso Not Map.refSecondaryWindowV.WindowChangingState Then
|
If Not IsNothing(Map.refSecondaryWindowV) AndAlso Not Map.refSecondaryWindowV.WindowChangingState Then
|
||||||
Map.refSecondaryWindowV.WindowState = Me.WindowState
|
Map.refSecondaryWindowV.WindowState = Me.WindowState
|
||||||
'Application.Current.MainWindow.Topmost = True
|
|
||||||
'Application.Current.MainWindow.Topmost = False
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ Imports System.Windows.Threading
|
|||||||
Public Class MainWindowVM
|
Public Class MainWindowVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
Private m_SupervisorCommThread As Thread
|
|
||||||
Private m_Supervisor_Timer As New DispatcherTimer
|
|
||||||
|
|
||||||
' Riferimento al Model della MainWindow
|
' Riferimento al Model della MainWindow
|
||||||
Private m_MainWindowM As MainWindowM
|
Private m_MainWindowM As MainWindowM
|
||||||
Friend ReadOnly Property MainWindowM As MainWindowM
|
Friend ReadOnly Property MainWindowM As MainWindowM
|
||||||
@@ -18,6 +15,9 @@ Public Class MainWindowVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
' Funzioni di callback per output in interfaccia da LUA
|
||||||
|
Private m_ProcEventsCallback As New ProcessEventsCallback(AddressOf ProcessEvents)
|
||||||
|
|
||||||
' Variabile che indica che il programma è stato avviato correttamente (sia la mappa che l'ambiente Egt)
|
' Variabile che indica che il programma è stato avviato correttamente (sia la mappa che l'ambiente Egt)
|
||||||
Private m_bInitStatus As Boolean
|
Private m_bInitStatus As Boolean
|
||||||
Friend ReadOnly Property bInitStatus As Boolean
|
Friend ReadOnly Property bInitStatus As Boolean
|
||||||
@@ -27,25 +27,34 @@ Public Class MainWindowVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
' Titolo
|
' Titolo
|
||||||
Private m_sTitle As String
|
Public ReadOnly Property sTitle As String
|
||||||
Public Property sTitle As String
|
|
||||||
Get
|
Get
|
||||||
Return m_sTitle
|
Return "Icarus"
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
|
||||||
m_sTitle = value
|
|
||||||
NotifyPropertyChanged(NameOf(sTitle))
|
|
||||||
End Set
|
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
' proprietà che seleziona la giusta pagina del TabControl
|
Public ReadOnly Property sProjectName As String
|
||||||
Public Property nSelTabPage As Integer
|
|
||||||
Get
|
Get
|
||||||
' Return If(IsNothing(Map.refMainMenuVM.SelPage) OrElse Map.refMainMenuVM.SelPage = -1 OrElse Map.refMainMenuVM.SelPage = Pages.VIEW OrElse Map.refMainMenuVM.SelPage = Pages.MACHINING, 0, 1)
|
Dim sFilePath As String = ""
|
||||||
Return -1
|
EgtGetCurrFilePath(sFilePath)
|
||||||
|
If String.IsNullOrEmpty(sFilePath) Then
|
||||||
|
sFilePath = EgtMsg(MSG_TOPCOMMANDBAR + 1) & Map.refMainWindowVM.MainWindowM.nInstance.ToString()
|
||||||
|
Return sFilePath
|
||||||
|
Else
|
||||||
|
Return Path.GetFileNameWithoutExtension(sFilePath) & If(EgtGetModified(), "*", "")
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property sProjectPath As String
|
||||||
|
Get
|
||||||
|
Dim sFilePath As String = ""
|
||||||
|
EgtGetCurrFilePath(sFilePath)
|
||||||
|
If String.IsNullOrEmpty(sFilePath) Then
|
||||||
|
sFilePath = EgtMsg(MSG_TOPCOMMANDBAR + 1) & Map.refMainWindowVM.MainWindowM.nInstance.ToString()
|
||||||
|
End If
|
||||||
|
Return sFilePath
|
||||||
End Get
|
End Get
|
||||||
Set(value As Integer)
|
|
||||||
End Set
|
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_MachinePanelVM As MachinePanelVM
|
Private m_MachinePanelVM As MachinePanelVM
|
||||||
@@ -55,9 +64,6 @@ Public Class MainWindowVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
'Friend m_SupervisorStop As Boolean = False
|
|
||||||
'Private BlockedWnd As BlockedWndV
|
|
||||||
|
|
||||||
' definizione comandi
|
' definizione comandi
|
||||||
Private m_cmdAboutBox As ICommand
|
Private m_cmdAboutBox As ICommand
|
||||||
Private m_cmdCloseApplication As ICommand
|
Private m_cmdCloseApplication As ICommand
|
||||||
@@ -71,117 +77,18 @@ Public Class MainWindowVM
|
|||||||
m_MainWindowM = New MainWindowM
|
m_MainWindowM = New MainWindowM
|
||||||
' inizializzo machine panel
|
' inizializzo machine panel
|
||||||
m_MachinePanelVM = New MachinePanelVM
|
m_MachinePanelVM = New MachinePanelVM
|
||||||
' inizializzo contatore per blocco da supervisore
|
' Installo funzione gestione eventi per lua
|
||||||
m_Supervisor_Timer.Interval = TimeSpan.FromMilliseconds(500)
|
EgtSetProcessEvents(m_ProcEventsCallback)
|
||||||
' AddHandler m_Supervisor_Timer.Tick, AddressOf SupervisorTimer_Tick
|
|
||||||
m_Supervisor_Timer.Start()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CONSTRUCTOR
|
#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
'#Region "METHODS"
|
'#Region "METHODS"
|
||||||
|
|
||||||
Friend Sub SetTitle(sTitle As String)
|
|
||||||
m_sTitle = sTitle
|
|
||||||
NotifyPropertyChanged(NameOf(sTitle))
|
|
||||||
' aggiorno titolo nella secondaryPage che e' quello che si vede nella barra in alto
|
|
||||||
Map.refSecondaryWindowVM.SetTitle(sTitle)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
'Public Sub UpdateTitle()
|
|
||||||
' m_Title = ""
|
|
||||||
' Select Case Map.refMainMenuVM.SelPage
|
|
||||||
' Case Pages.VIEW
|
|
||||||
' If Not IsNothing(Map.refProjManagerVM.CurrProj) Then
|
|
||||||
' If Map.refProjManagerVM.CurrProj.bIsNew Then m_Title = "New - "
|
|
||||||
' m_Title &= Map.refProjManagerVM.CurrProj.nProjId.ToString("0000") & " - " & Map.refProjManagerVM.CurrProj.sBTLFileName
|
|
||||||
' End If
|
|
||||||
' Case Pages.MACHINING
|
|
||||||
' If Not IsNothing(Map.refProdManagerVM.CurrProd) Then
|
|
||||||
' If Map.refProdManagerVM.CurrProd.bIsNew Then m_Title = "New - "
|
|
||||||
' m_Title &= Map.refProdManagerVM.CurrProd.nProdId.ToString("0000") & " - " & Map.refProdManagerVM.CurrProd.sBTLFileName
|
|
||||||
' End If
|
|
||||||
' Case Pages.CONFIG
|
|
||||||
' m_Title = "Configuration Page"
|
|
||||||
' End Select
|
|
||||||
' m_Title &= " - EgtBEAMWALL"
|
|
||||||
' NotifyPropertyChanged(NameOf(Title))
|
|
||||||
'End Sub
|
|
||||||
|
|
||||||
Friend Sub ContentRendered()
|
Friend Sub ContentRendered()
|
||||||
'DbControllers.Init()
|
|
||||||
'' chiamata a caso su Db per inizializzarlo
|
|
||||||
'DbControllers.m_ProjController.FindByProjDbId(0)
|
|
||||||
'' Verifico che l'inizializzazione di tutte le parti del programma sia andata a buon fine
|
|
||||||
'If Map.EndInit() Then
|
|
||||||
' m_bInitStatus = True
|
|
||||||
' ' altrimenti chiudo il programma
|
|
||||||
'Else
|
|
||||||
' m_bInitStatus = False
|
|
||||||
'End If
|
|
||||||
'' Aggiorno visualizzazione unità di misura
|
|
||||||
''Map.refStatusBarVM.SetMeasureUnit(If(EgtUiUnitsAreMM(), MeasureUnitOpt.MM, MeasureUnitOpt.INCH))
|
|
||||||
'' imposto MainWindow per finestra di Loading
|
|
||||||
'LoadingWndHelper.SetMainWindow(Application.Current.MainWindow)
|
|
||||||
'' leggo riga di comando
|
|
||||||
'Dim nCommandType As Integer = 0
|
|
||||||
'Dim nPage As Pages = Pages.VIEW
|
|
||||||
'Dim nProdId As Integer = 0
|
|
||||||
'If ProcessCommandLine(nCommandType, nPage, nProdId) Then
|
|
||||||
' Select Case nCommandType
|
|
||||||
' Case 1
|
|
||||||
' Map.refProdManagerVM.SetCurrProd(nProdId)
|
|
||||||
' Case 2
|
|
||||||
' ' pagina gia' impostata nella variabile
|
|
||||||
' End Select
|
|
||||||
'Else
|
|
||||||
' ' setto il primo file dalla lista degli MRU come progetto corrente da aprire
|
|
||||||
' Dim sLastProjectPath As String = String.Empty
|
|
||||||
' GetMainPrivateProfileString(S_MRUPROJFILES, K_FILE & "1", String.Empty, sLastProjectPath)
|
|
||||||
' If Not String.IsNullOrWhiteSpace(sLastProjectPath) AndAlso File.Exists(sLastProjectPath) Then
|
|
||||||
' ' ricavo l'Id e il progetto associato per l'apertura di quest'ultimo
|
|
||||||
' Dim PjId As Integer = 0
|
|
||||||
' Dim sPjId As String = Path.GetFileNameWithoutExtension(sLastProjectPath)
|
|
||||||
' Integer.TryParse(sPjId, PjId)
|
|
||||||
' Map.refProjManagerVM.SetCurrProj(PjId)
|
|
||||||
' End If
|
|
||||||
'End If
|
|
||||||
'' seleziono pagina da aprire
|
|
||||||
'Map.refMainMenuVM.SelPage = nPage
|
|
||||||
|
|
||||||
'' inizializzo thread di aggiornamento e comunicazione con DB
|
|
||||||
'' creo thread gestione macchina
|
|
||||||
'm_SupervisorCommThread = New Thread(Sub()
|
|
||||||
' SupervisorCommThread.SupervisorCommThreadFunction()
|
|
||||||
' End Sub)
|
|
||||||
'm_SupervisorCommThread.SetApartmentState(ApartmentState.STA)
|
|
||||||
'' avvio thread di gestione della macchina che avvia la connessione
|
|
||||||
'm_SupervisorCommThread.Start()
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' Friend Function ProcessCommandLine(ByRef nCommandType As Integer, ByRef nPage As Pages, ByRef nProdId As Integer) As Boolean
|
|
||||||
' ' Se non ci sono veri parametri su linea di comando, esco (il primo è sempre il nome del programma)
|
|
||||||
' If Environment.GetCommandLineArgs.Count() <= 1 Then Return False
|
|
||||||
' ' Recupero primo parametro che dovrebbe essere il tipo di modalita' riga di comando
|
|
||||||
' Dim sFile As String = Environment.GetCommandLineArgs(1)
|
|
||||||
' If String.IsNullOrWhiteSpace(sFile) OrElse Not Integer.TryParse(sFile, nCommandType) OrElse nCommandType <= 0 Then Return False
|
|
||||||
' Select Case nCommandType
|
|
||||||
' Case 1 ' apri progetto in ottimizzatore
|
|
||||||
' ' recupero secondo parametro
|
|
||||||
' Dim sProdId As String = Environment.GetCommandLineArgs(2)
|
|
||||||
' If Not Integer.TryParse(sProdId, nProdId) OrElse nProdId <= 0 Then Return False
|
|
||||||
' nPage = Pages.MACHINING
|
|
||||||
' Return True
|
|
||||||
' Case 2 ' apri pagina specifica senza progetto specifico
|
|
||||||
' ' recupero secondo parametro
|
|
||||||
' Dim sPage As String = Environment.GetCommandLineArgs(2)
|
|
||||||
' If Not Integer.TryParse(sPage, nPage) OrElse (nPage <> Pages.VIEW AndAlso nPage <> Pages.MACHINING) Then Return False
|
|
||||||
' Return True
|
|
||||||
' End Select
|
|
||||||
' Return False
|
|
||||||
' End Function
|
|
||||||
|
|
||||||
Friend Sub KeyDown(PressedKey As Key)
|
Friend Sub KeyDown(PressedKey As Key)
|
||||||
' Con ESC esco dall'azione corrente
|
' Con ESC esco dall'azione corrente
|
||||||
If PressedKey = Key.Escape Then
|
If PressedKey = Key.Escape Then
|
||||||
@@ -240,36 +147,17 @@ Public Class MainWindowVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' Friend m_ManagingSupervisorStop As Boolean = False
|
Private Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
||||||
|
If Map.refSliceManagerVM.bCalculating OrElse Map.refSliceManagerVM.bCalcSolid Then
|
||||||
|
Map.refSliceManagerVM.ProcessEvents(nProg, nPause)
|
||||||
|
End If
|
||||||
|
If Not IsNothing(Map.refImportLoadingWndVM) Then
|
||||||
|
Map.refImportLoadingWndVM.ProcessEvents(nProg, nPause)
|
||||||
|
End If
|
||||||
|
Map.refMyStatusBarVM.ProcessEvents(nProg, nPause)
|
||||||
|
Return 0
|
||||||
|
End Function
|
||||||
|
|
||||||
' Private Sub SupervisorTimer_Tick()
|
|
||||||
' If SupervisorCommThread.bViewerOptimizerBlocked And Not m_ManagingSupervisorStop Then
|
|
||||||
' m_ManagingSupervisorStop = True
|
|
||||||
' BlockedWnd = New BlockedWndV(Application.Current.MainWindow, New BlockedWndVM)
|
|
||||||
' BlockedWnd.ShowDialog()
|
|
||||||
' ElseIf Not SupervisorCommThread.bViewerOptimizerBlocked And m_ManagingSupervisorStop Then
|
|
||||||
' m_ManagingSupervisorStop = False
|
|
||||||
' BlockedWnd.Close()
|
|
||||||
' End If
|
|
||||||
' End Sub
|
|
||||||
|
|
||||||
'#End Region ' METHODS
|
|
||||||
|
|
||||||
'#Region "COMMANDS"
|
|
||||||
|
|
||||||
'#Region "CloseApplicationCommand"
|
|
||||||
|
|
||||||
' ' Returns a command that manage the MainWindow_Unloaded command
|
|
||||||
' Public ReadOnly Property CloseApplicationCommand() As ICommand
|
|
||||||
' Get
|
|
||||||
' If m_cmdCloseApplication Is Nothing Then
|
|
||||||
' m_cmdCloseApplication = New Command(AddressOf CloseApplication)
|
|
||||||
' End If
|
|
||||||
' Return m_cmdCloseApplication
|
|
||||||
' End Get
|
|
||||||
' End Property
|
|
||||||
|
|
||||||
' Manage the MainWindow_Unloaded event. This method is invoked by the cmdMainWindow_Unloaded.
|
|
||||||
Friend Sub CloseApplication()
|
Friend Sub CloseApplication()
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
||||||
Return
|
Return
|
||||||
@@ -300,8 +188,52 @@ Public Class MainWindowVM
|
|||||||
Application.Current.Shutdown()
|
Application.Current.Shutdown()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'#End Region ' CloseApplicationCommand
|
#Region "COMMANDS"
|
||||||
|
|
||||||
'#End Region ' COMMANDS
|
#Region "AboutBoxCommand"
|
||||||
|
|
||||||
|
' Returns a command that manage the MainWindow_Unloaded command
|
||||||
|
Public ReadOnly Property AboutBoxCommand() As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdAboutBox Is Nothing Then
|
||||||
|
m_cmdAboutBox = New Command(AddressOf AboutBox)
|
||||||
|
End If
|
||||||
|
Return m_cmdAboutBox
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' Manage the MainWindow_Unloaded event. This method is invoked by the cmdMainWindow_Unloaded.
|
||||||
|
Public Sub AboutBox(ByVal param As Object)
|
||||||
|
Dim AboutBoxWindow As New AboutBoxV
|
||||||
|
AboutBoxWindow.Owner = Application.Current.MainWindow
|
||||||
|
AboutBoxWindow.ShowDialog()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' AboutBoxCommand
|
||||||
|
|
||||||
|
#Region "CloseApplicationCommand"
|
||||||
|
|
||||||
|
' Returns a command that manage the MainWindow_Unloaded command
|
||||||
|
Public ReadOnly Property CloseApplicationCommand() As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdCloseApplication Is Nothing Then
|
||||||
|
m_cmdCloseApplication = New Command(AddressOf CloseApplication)
|
||||||
|
End If
|
||||||
|
Return m_cmdCloseApplication
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' Manage the MainWindow_Unloaded event. This method is invoked by the cmdMainWindow_Unloaded.
|
||||||
|
Public Sub CloseApplication(ByVal param As Object)
|
||||||
|
If Map.refSliceManagerVM.bCalculating Then
|
||||||
|
MessageBox.Show("Impossible closing software! Wait end of calculation!", "Error", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
CloseApplication()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CloseApplicationCommand
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -145,13 +145,20 @@
|
|||||||
Rows="1"
|
Rows="1"
|
||||||
IsEnabled="{Binding IsEnabled}"
|
IsEnabled="{Binding IsEnabled}"
|
||||||
Margin="0,2.5,0,0">
|
Margin="0,2.5,0,0">
|
||||||
<Button Content="Ok"
|
<Button Command="{Binding Ok_Command}"
|
||||||
Command="{Binding Ok_Command}"
|
IsDefault="True"
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
Margin="0,0,2.5,0"
|
||||||
<Button Content="Cancel"
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
Command="{Binding Cancel_Command}"
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding Cancel_Command}"
|
||||||
Visibility="{Binding IsImport_Visibility}"
|
Visibility="{Binding IsImport_Visibility}"
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
@@ -70,5 +70,5 @@ Imports System.Windows
|
|||||||
' by using the '*' as shown below:
|
' by using the '*' as shown below:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.5.3.1")>
|
<Assembly: AssemblyVersion("2.5.7.1")>
|
||||||
<Assembly: AssemblyFileVersion("2.5.3.1")>
|
<Assembly: AssemblyFileVersion("2.5.7.1")>
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="MachineBox"
|
|
||||||
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"
|
|
||||||
Height="160" Width="380" WindowStyle="None" ResizeMode="NoResize"
|
|
||||||
TitleBarHeight="30" IsResizable="False" IsMinimizable="False"
|
|
||||||
ShowInTaskbar="False" WindowStartupLocation="CenterOwner">
|
|
||||||
|
|
||||||
<Border BorderThickness="2" BorderBrush="LightBlue">
|
|
||||||
<Grid >
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="0.25*"/>
|
|
||||||
<ColumnDefinition Width="5*"/>
|
|
||||||
<ColumnDefinition Width="0.25*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="0.25*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="0.25*"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition Height="0.25*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<TextBlock Name="MessageLbl" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center"
|
|
||||||
VerticalAlignment="Center" />
|
|
||||||
<UniformGrid Grid.Column="1" Grid.Row="3" Columns="3">
|
|
||||||
<Button Name="ReplaceBtn" Height="26" Margin="0,0,5,0"/>
|
|
||||||
<Button Name="UpdateBtn" Height="26" Margin="5,0,5,0"/>
|
|
||||||
<Button Name="CancelBtn" IsDefault="True" Height="26" Margin="5,0,0,0"/>
|
|
||||||
</UniformGrid>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</Border>
|
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
Imports EgtUILib
|
|
||||||
|
|
||||||
Public Class MachineBox
|
|
||||||
|
|
||||||
Public Shadows DialogResult As MessageBoxResult = MessageBoxResult.Cancel
|
|
||||||
|
|
||||||
Public Sub New( Owner As Window, sMachName As String)
|
|
||||||
|
|
||||||
InitializeComponent()
|
|
||||||
|
|
||||||
Me.Owner = Owner
|
|
||||||
|
|
||||||
Title = EgtMsg( 6534) ' Avviso
|
|
||||||
|
|
||||||
MessageLbl.Text = String.Format( EgtMsg( 6528), sMachName) ' La macchina "{0}" esiste già,<br/> cosa vuoi fare ?
|
|
||||||
|
|
||||||
ReplaceBtn.Content = EgtMsg( 6531) ' Sostituisci
|
|
||||||
|
|
||||||
UpdateBtn.Content = EgtMsg( 6532) ' Aggiorna
|
|
||||||
|
|
||||||
CancelBtn.Content = EgtMsg( 6533) ' Annulla
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub ReplaceBtn_Click( sender As Object, e As RoutedEventArgs) Handles ReplaceBtn.Click
|
|
||||||
DialogResult = MessageBoxResult.Yes
|
|
||||||
Close()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub UpdateBtn_Click( sender As Object, e As RoutedEventArgs) Handles UpdateBtn.Click
|
|
||||||
DialogResult = MessageBoxResult.No
|
|
||||||
Close()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub CancelBtn_Click( sender As Object, e As RoutedEventArgs) Handles CancelBtn.Click
|
|
||||||
DialogResult = MessageBoxResult.Cancel
|
|
||||||
Close()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public Overloads Function ShowDialog() As MessageBoxResult
|
|
||||||
MyBase.ShowDialog()
|
|
||||||
Return DialogResult
|
|
||||||
End Function
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,328 +1,342 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="OptionWindowV"
|
<EgtWPFLib5:EgtMainWindow x:Class="OptionWindowV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:Icarus="clr-namespace:Icarus"
|
xmlns:Icarus="clr-namespace:Icarus"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Style="{StaticResource Dialog_Window}"
|
||||||
Title="{Binding Title}" Icon="/Resources/Icarus.ico"
|
Title="{Binding Title}" Icon="/Resources/Icarus.ico"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
||||||
MinWidth="400" MinHeight="382"
|
MinWidth="400" MinHeight="382"
|
||||||
Width="400" Height="412">
|
Width="400" Height="412">
|
||||||
|
|
||||||
<!--<EgtWPFLib5:EgtCustomWindow.Resources>
|
<!--<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
<local:GeomTypeConverter x:Key="GeomTypeConverter"/>
|
<local:GeomTypeConverter x:Key="GeomTypeConverter"/>
|
||||||
</EgtWPFLib5:EgtCustomWindow.Resources>-->
|
</EgtWPFLib5:EgtCustomWindow.Resources>-->
|
||||||
|
|
||||||
<TabControl Margin="5,5,5,5">
|
<Grid>
|
||||||
<TabItem Header="{Binding GenericMsg}">
|
<Grid.RowDefinitions>
|
||||||
<StackPanel Margin="5,5,5,0">
|
<RowDefinition Height="1*"/>
|
||||||
<!--<GroupBox Header="{Binding CurrentLanguageMsg}"
|
<RowDefinition Height="Auto"/>
|
||||||
Margin="0,0,0,5">
|
</Grid.RowDefinitions>
|
||||||
<UniformGrid Rows="2" Margin="3,3,3,3">
|
<TabControl Margin="5,5,5,5">
|
||||||
<ComboBox ItemsSource="{Binding LanguageList, Mode=OneWay}" Height="25"
|
<TabItem Header="{Binding GenericMsg}">
|
||||||
DisplayMemberPath="Name" SelectedItem="{Binding SelectedLanguage}"
|
<StackPanel Margin="5,5,5,0">
|
||||||
Margin="0,0,0,5"/>
|
<!--<GroupBox Header="{Binding CurrentLanguageMsg}"
|
||||||
<TextBlock Text="{Binding LanguageAdvertMsg}" TextWrapping="Wrap"
|
|
||||||
TextAlignment="Center"/>
|
|
||||||
</UniformGrid>
|
|
||||||
</GroupBox>-->
|
|
||||||
<UniformGrid Columns="2"
|
|
||||||
Margin="0,0,0,5">
|
Margin="0,0,0,5">
|
||||||
<TextBlock Text="{Binding TopSceneBackgroundMsg}" VerticalAlignment="Center"/>
|
<UniformGrid Rows="2" Margin="3,3,3,3">
|
||||||
<Button Background="{Binding TopSceneBackground}"
|
<ComboBox ItemsSource="{Binding LanguageList, Mode=OneWay}" Height="25"
|
||||||
Command="{Binding TopSceneBackground_Command}"
|
DisplayMemberPath="Name" SelectedItem="{Binding SelectedLanguage}"
|
||||||
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
Margin="0,0,0,5"/>
|
||||||
</UniformGrid>
|
<TextBlock Text="{Binding LanguageAdvertMsg}" TextWrapping="Wrap"
|
||||||
<UniformGrid Columns="2"
|
TextAlignment="Center"/>
|
||||||
Margin="0,0,0,5">
|
</UniformGrid>
|
||||||
<TextBlock Text="{Binding BotSceneBackgroundMsg}" VerticalAlignment="Center"/>
|
</GroupBox>-->
|
||||||
<Button Background="{Binding BotSceneBackground}"
|
<UniformGrid Columns="2"
|
||||||
Command="{Binding BotSceneBackground_Command}"
|
|
||||||
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
|
||||||
</UniformGrid>
|
|
||||||
<UniformGrid Columns="2"
|
|
||||||
Margin="0,0,0,5">
|
|
||||||
<TextBlock Text="{Binding GridColorMsg}" VerticalAlignment="Center"/>
|
|
||||||
<Button Background="{Binding GridColor}"
|
|
||||||
Command="{Binding GridColor_Command}"
|
|
||||||
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
|
||||||
</UniformGrid>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="2*"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<TextBlock Text="{Binding ThickLineMsg}" VerticalAlignment="Center"
|
|
||||||
Grid.Row="0" Margin="0,5,0,5"/>
|
|
||||||
<CheckBox IsChecked="{Binding ThickLine}"
|
|
||||||
Grid.Column="1" Grid.Row="0" Margin="22,5,0,5" VerticalAlignment="Center"/>
|
|
||||||
<TextBlock Text="{Binding SmoothTriMeshMsg}" VerticalAlignment="Center"
|
|
||||||
Grid.Row="1" Margin="0,5,0,5"/>
|
|
||||||
<CheckBox IsChecked="{Binding SmoothTriMesh}"
|
|
||||||
Grid.Column="1" Grid.Row="1" Margin="22,5,0,5" VerticalAlignment="Center"/>
|
|
||||||
</Grid>
|
|
||||||
<!--<UniformGrid Columns="2"
|
|
||||||
Margin="0,0,0,5">
|
|
||||||
<TextBlock Text="{Binding FontMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding FontList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedTextFont}" Height="25"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
</UniformGrid>-->
|
|
||||||
<Grid Margin="5,5,5,5">
|
|
||||||
<Button Content="{Binding UpdateLicenceMsg}" Command="{Binding UpdateLicence_Command}" Height="26" Margin="100,1"/>
|
|
||||||
</Grid>
|
|
||||||
</StackPanel>
|
|
||||||
</TabItem>
|
|
||||||
<TabItem Header="{Binding CADMsg}">
|
|
||||||
<StackPanel Margin="5,5,5,0">
|
|
||||||
<UniformGrid Grid.ColumnSpan="2" Columns="2"
|
|
||||||
Margin="0,0,0,5">
|
|
||||||
<TextBlock Text="{Binding GeometryToleranceMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding GeometryTolerance}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,0,0,0"/>
|
|
||||||
</UniformGrid>
|
|
||||||
<ItemsControl ItemsSource="{Binding LayerColorList}">
|
|
||||||
<ItemsControl.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<UniformGrid Columns="2"
|
|
||||||
Margin="0,0,0,5">
|
|
||||||
<TextBlock Text="{Binding Color_Msg}" VerticalAlignment="Center"/>
|
|
||||||
<Grid Margin="10,0,0,0">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="35"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Button Background="{Binding Background}"
|
|
||||||
Command="{Binding Color_Command}"
|
|
||||||
Margin="0,0,5,0"
|
|
||||||
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
|
||||||
<Slider Grid.Column="1"
|
|
||||||
Value="{Binding dAlpha}"
|
|
||||||
Minimum="10"
|
|
||||||
Maximum="100"
|
|
||||||
TickPlacement="BottomRight"
|
|
||||||
TickFrequency="10"
|
|
||||||
IsSnapToTickEnabled="True"
|
|
||||||
Margin="0,0,5,0"/>
|
|
||||||
<TextBlock Grid.Column="2"
|
|
||||||
Text="{Binding sAlpha}"
|
|
||||||
TextAlignment="Right"/>
|
|
||||||
</Grid>
|
|
||||||
</UniformGrid>
|
|
||||||
</DataTemplate>
|
|
||||||
</ItemsControl.ItemTemplate>
|
|
||||||
</ItemsControl>
|
|
||||||
<!--<GroupBox Grid.Column="1" Grid.RowSpan="2"
|
|
||||||
Header="{Binding DimensionMsg}"
|
|
||||||
Margin="0,0,0,5">
|
|
||||||
<UniformGrid Grid.ColumnSpan="2" Columns="2">
|
|
||||||
<TextBlock Text="{Binding ExtLineLenMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding ExtLineLen}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
<TextBlock Text="{Binding ArrowLenMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding ArrowLen}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
<TextBlock Text="{Binding TextDistMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding TextDist}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
<TextBlock Text="{Binding LenIsMMMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding UnitMeasureList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedUnitMeasure}" Height="25"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
<TextBlock Text="{Binding DecDigitMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding DecDigit}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
<TextBlock Text="{Binding FontMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding FontList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedFont}" Height="25"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
<TextBlock Text="{Binding TextHeightMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding TextHeight}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,5,0,0"/>
|
|
||||||
</UniformGrid>
|
|
||||||
</GroupBox>-->
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
</TabItem>
|
|
||||||
<TabItem Header="{Binding ImportMsg}">
|
|
||||||
<StackPanel Margin="5,5,5,0">
|
|
||||||
<Grid Margin="0,5,0,0">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="0.8*"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<TextBlock Grid.Row="0" Grid.Column="1"
|
|
||||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
||||||
Text="{Binding UnitScaleMsg}" />
|
|
||||||
<TextBlock Grid.Row="0" Grid.Column="2"
|
|
||||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
||||||
Text="{Binding FactorScaleMsg}"/>
|
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Grid.Column="0"
|
|
||||||
Text="{Binding DxfScaleFactorMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox Grid.Row="1" Grid.Column="1"
|
|
||||||
ItemsSource="{Binding ScaleDXFList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedDXFScale, UpdateSourceTrigger=PropertyChanged}" Height="25"
|
|
||||||
Margin="10,0,0,5"/>
|
|
||||||
<TextBox Grid.Row="1" Grid.Column="2"
|
|
||||||
Text="{Binding DxfScaleFactor}" Height="25"
|
|
||||||
IsEnabled="{Binding DXFScaleEnable, UpdateSourceTrigger=LostFocus}"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,0,0,5"/>
|
|
||||||
<TextBlock Grid.Row="2" Grid.Column="0"
|
|
||||||
Text="{Binding StlScaleFactorMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox Grid.Row="2" Grid.Column="1"
|
|
||||||
ItemsSource="{Binding ScaleSTLList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedSTLScale, UpdateSourceTrigger=PropertyChanged}" Height="25"
|
|
||||||
Margin="10,0,0,5"/>
|
|
||||||
<TextBox Grid.Row="2" Grid.Column="2"
|
|
||||||
Text="{Binding StlScaleFactor}" Height="25"
|
|
||||||
IsEnabled="{Binding STLScaleEnable, UpdateSourceTrigger=LostFocus}"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,0,0,5"/>
|
|
||||||
<!--<TextBlock Grid.Row="3" Grid.Column="0"
|
|
||||||
Text="{Binding ImageScaleFactorMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox Grid.Row="3" Grid.Column="1"
|
|
||||||
ItemsSource="{Binding ScaleImageList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedImageScale, UpdateSourceTrigger=PropertyChanged}" Height="25"
|
|
||||||
Margin="10,0,0,5"/>
|
|
||||||
<TextBox Grid.Row="3" Grid.Column="2"
|
|
||||||
Text="{Binding ImageScaleFactor}" Height="25"
|
|
||||||
IsEnabled="{Binding ImageScaleEnable, UpdateSourceTrigger=LostFocus}"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,0,0,5"/>-->
|
|
||||||
</Grid>
|
|
||||||
</StackPanel>
|
|
||||||
</TabItem>
|
|
||||||
<!--<TabItem Header="{Binding ExportMsg}">
|
|
||||||
<StackPanel>
|
|
||||||
<GroupBox Grid.Column="1" Grid.RowSpan="2"
|
|
||||||
Header="{Binding ImageMsg}"
|
|
||||||
Margin="5,5,5,0">
|
|
||||||
<UniformGrid Grid.ColumnSpan="2" Columns="2">
|
|
||||||
<TextBlock Text="{Binding ImageWidthMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding ImageWidth}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,0,0,5"/>
|
|
||||||
<TextBlock Text="{Binding ImageHeightMsg}" VerticalAlignment="Center"/>
|
|
||||||
<TextBox Text="{Binding ImageHeight}" Height="25"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
Margin="10,0,0,5"/>
|
|
||||||
</UniformGrid>
|
|
||||||
</GroupBox>
|
|
||||||
</StackPanel>
|
|
||||||
</TabItem>-->
|
|
||||||
<TabItem Header="{Binding CAMMsg}">
|
|
||||||
<StackPanel>
|
|
||||||
<!--<GroupBox Grid.Column="1" Grid.RowSpan="2"
|
|
||||||
Header="{Binding MachiningSelGeomMsg}"
|
|
||||||
Margin="5,5,5,0">
|
|
||||||
<UniformGrid Columns="2">
|
|
||||||
<TextBlock Text="{Binding GeomTypeDrillingMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedDrillingGeomType}" Height="25">
|
|
||||||
<ComboBox.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
<TextBlock Text="{Binding GeomTypeSawingMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedSawingGeomType}" Height="25">
|
|
||||||
<ComboBox.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
<TextBlock Text="{Binding GeomTypeMillingMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedMillingGeomType}" Height="25"
|
|
||||||
Margin="0,0,0,5">
|
Margin="0,0,0,5">
|
||||||
<ComboBox.ItemTemplate>
|
<TextBlock Text="{Binding TopSceneBackgroundMsg}" VerticalAlignment="Center"/>
|
||||||
<DataTemplate>
|
<Button Background="{Binding TopSceneBackground}"
|
||||||
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
Command="{Binding TopSceneBackground_Command}"
|
||||||
</DataTemplate>
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
<TextBlock Text="{Binding GeomTypePocketingMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedPocketingGeomType}" Height="25">
|
|
||||||
<ComboBox.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
<TextBlock Text="{Binding GeomTypeMortisingMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedMortisingGeomType}" Height="25">
|
|
||||||
<ComboBox.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
<TextBlock Text="{Binding GeomTypeChiselingMsg}" VerticalAlignment="Center"/>
|
|
||||||
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedChiselingGeomType}" Height="25">
|
|
||||||
<ComboBox.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</GroupBox>-->
|
<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding BotSceneBackgroundMsg}" VerticalAlignment="Center"/>
|
||||||
|
<Button Background="{Binding BotSceneBackground}"
|
||||||
|
Command="{Binding BotSceneBackground_Command}"
|
||||||
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding GridColorMsg}" VerticalAlignment="Center"/>
|
||||||
|
<Button Background="{Binding GridColor}"
|
||||||
|
Command="{Binding GridColor_Command}"
|
||||||
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Text="{Binding ThickLineMsg}" VerticalAlignment="Center"
|
||||||
|
Grid.Row="0" Margin="0,5,0,5"/>
|
||||||
|
<CheckBox IsChecked="{Binding ThickLine}"
|
||||||
|
Grid.Column="1" Grid.Row="0" Margin="22,5,0,5" VerticalAlignment="Center"/>
|
||||||
|
<TextBlock Text="{Binding SmoothTriMeshMsg}" VerticalAlignment="Center"
|
||||||
|
Grid.Row="1" Margin="0,5,0,5"/>
|
||||||
|
<CheckBox IsChecked="{Binding SmoothTriMesh}"
|
||||||
|
Grid.Column="1" Grid.Row="1" Margin="22,5,0,5" VerticalAlignment="Center"/>
|
||||||
|
</Grid>
|
||||||
|
<!--<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding FontMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding FontList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedTextFont}" Height="25"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
</UniformGrid>-->
|
||||||
|
<Grid Margin="5,5,5,5">
|
||||||
|
<Button Content="{Binding UpdateLicenceMsg}" Command="{Binding UpdateLicence_Command}" Height="26" Margin="100,1"/>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="{Binding CADMsg}">
|
||||||
|
<StackPanel Margin="5,5,5,0">
|
||||||
|
<UniformGrid Grid.ColumnSpan="2" Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding GeometryToleranceMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding GeometryTolerance}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,0,0,0"/>
|
||||||
|
</UniformGrid>
|
||||||
|
<ItemsControl ItemsSource="{Binding LayerColorList}">
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding Color_Msg}" VerticalAlignment="Center"/>
|
||||||
|
<Grid Margin="10,0,0,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="35"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Button Background="{Binding Background}"
|
||||||
|
Command="{Binding Color_Command}"
|
||||||
|
Margin="0,0,5,0"
|
||||||
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
|
<Slider Grid.Column="1"
|
||||||
|
Value="{Binding dAlpha}"
|
||||||
|
Minimum="10"
|
||||||
|
Maximum="100"
|
||||||
|
TickPlacement="BottomRight"
|
||||||
|
TickFrequency="10"
|
||||||
|
IsSnapToTickEnabled="True"
|
||||||
|
Margin="0,0,5,0"/>
|
||||||
|
<TextBlock Grid.Column="2"
|
||||||
|
Text="{Binding sAlpha}"
|
||||||
|
TextAlignment="Right"/>
|
||||||
|
</Grid>
|
||||||
|
</UniformGrid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
<!--<GroupBox Grid.Column="1" Grid.RowSpan="2"
|
||||||
|
Header="{Binding DimensionMsg}"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<UniformGrid Grid.ColumnSpan="2" Columns="2">
|
||||||
|
<TextBlock Text="{Binding ExtLineLenMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding ExtLineLen}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
<TextBlock Text="{Binding ArrowLenMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding ArrowLen}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
<TextBlock Text="{Binding TextDistMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding TextDist}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
<TextBlock Text="{Binding LenIsMMMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding UnitMeasureList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedUnitMeasure}" Height="25"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
<TextBlock Text="{Binding DecDigitMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding DecDigit}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
<TextBlock Text="{Binding FontMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding FontList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedFont}" Height="25"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
<TextBlock Text="{Binding TextHeightMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding TextHeight}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,5,0,0"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</GroupBox>-->
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
<!--<Grid Margin="5,5,5,0">
|
</TabItem>
|
||||||
<Grid.ColumnDefinitions>
|
<TabItem Header="{Binding ImportMsg}">
|
||||||
<ColumnDefinition Width="2*"/>
|
<StackPanel Margin="5,5,5,0">
|
||||||
<ColumnDefinition Width="1*"/>
|
<Grid Margin="0,5,0,0">
|
||||||
</Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<ColumnDefinition Width="1*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<ColumnDefinition Width="0.8*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding NewMachiningPosMsg}" VerticalAlignment="Center"
|
<Grid.RowDefinitions>
|
||||||
Grid.Row="0" Margin="0,0,0,5"/>
|
<RowDefinition Height="1*"/>
|
||||||
<CheckBox IsChecked="{Binding NewMachiningIsLastOne}"
|
<RowDefinition Height="1*"/>
|
||||||
Grid.Column="1" Grid.Row="0" Margin="4,0,0,0" VerticalAlignment="Center"/>
|
<RowDefinition Height="1*"/>
|
||||||
<TextBlock Text="{Binding UseDispositionScriptMsg}" VerticalAlignment="Center"
|
<RowDefinition Height="1*"/>
|
||||||
Grid.Row="1" Margin="0,0,0,5"/>
|
</Grid.RowDefinitions>
|
||||||
<CheckBox IsChecked="{Binding UseDispositionScript}"
|
<TextBlock Grid.Row="0" Grid.Column="1"
|
||||||
Grid.Column="1" Grid.Row="1" Margin="4,0,0,0" VerticalAlignment="Center"/>
|
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||||
</Grid>-->
|
Text="{Binding UnitScaleMsg}" />
|
||||||
|
<TextBlock Grid.Row="0" Grid.Column="2"
|
||||||
|
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||||
|
Text="{Binding FactorScaleMsg}"/>
|
||||||
|
|
||||||
<Grid Margin="5,5,5,0">
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
||||||
<Button Content="{Binding AddMachineMsg}" Command="{Binding AddMachine_Command}" Height="26" Margin="100,1"/>
|
Text="{Binding DxfScaleFactorMsg}" VerticalAlignment="Center"/>
|
||||||
</Grid>
|
<ComboBox Grid.Row="1" Grid.Column="1"
|
||||||
|
ItemsSource="{Binding ScaleDXFList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedDXFScale, UpdateSourceTrigger=PropertyChanged}" Height="25"
|
||||||
|
Margin="10,0,0,5"/>
|
||||||
|
<TextBox Grid.Row="1" Grid.Column="2"
|
||||||
|
Text="{Binding DxfScaleFactor}" Height="25"
|
||||||
|
IsEnabled="{Binding DXFScaleEnable, UpdateSourceTrigger=LostFocus}"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,0,0,5"/>
|
||||||
|
<TextBlock Grid.Row="2" Grid.Column="0"
|
||||||
|
Text="{Binding StlScaleFactorMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox Grid.Row="2" Grid.Column="1"
|
||||||
|
ItemsSource="{Binding ScaleSTLList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedSTLScale, UpdateSourceTrigger=PropertyChanged}" Height="25"
|
||||||
|
Margin="10,0,0,5"/>
|
||||||
|
<TextBox Grid.Row="2" Grid.Column="2"
|
||||||
|
Text="{Binding StlScaleFactor}" Height="25"
|
||||||
|
IsEnabled="{Binding STLScaleEnable, UpdateSourceTrigger=LostFocus}"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,0,0,5"/>
|
||||||
|
<!--<TextBlock Grid.Row="3" Grid.Column="0"
|
||||||
|
Text="{Binding ImageScaleFactorMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox Grid.Row="3" Grid.Column="1"
|
||||||
|
ItemsSource="{Binding ScaleImageList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedImageScale, UpdateSourceTrigger=PropertyChanged}" Height="25"
|
||||||
|
Margin="10,0,0,5"/>
|
||||||
|
<TextBox Grid.Row="3" Grid.Column="2"
|
||||||
|
Text="{Binding ImageScaleFactor}" Height="25"
|
||||||
|
IsEnabled="{Binding ImageScaleEnable, UpdateSourceTrigger=LostFocus}"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,0,0,5"/>-->
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem>
|
||||||
|
<!--<TabItem Header="{Binding ExportMsg}">
|
||||||
|
<StackPanel>
|
||||||
|
<GroupBox Grid.Column="1" Grid.RowSpan="2"
|
||||||
|
Header="{Binding ImageMsg}"
|
||||||
|
Margin="5,5,5,0">
|
||||||
|
<UniformGrid Grid.ColumnSpan="2" Columns="2">
|
||||||
|
<TextBlock Text="{Binding ImageWidthMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding ImageWidth}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,0,0,5"/>
|
||||||
|
<TextBlock Text="{Binding ImageHeightMsg}" VerticalAlignment="Center"/>
|
||||||
|
<TextBox Text="{Binding ImageHeight}" Height="25"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
Margin="10,0,0,5"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</GroupBox>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem>-->
|
||||||
|
<TabItem Header="{Binding CAMMsg}">
|
||||||
|
<StackPanel>
|
||||||
|
<!--<GroupBox Grid.Column="1" Grid.RowSpan="2"
|
||||||
|
Header="{Binding MachiningSelGeomMsg}"
|
||||||
|
Margin="5,5,5,0">
|
||||||
|
<UniformGrid Columns="2">
|
||||||
|
<TextBlock Text="{Binding GeomTypeDrillingMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedDrillingGeomType}" Height="25">
|
||||||
|
<ComboBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ComboBox.ItemTemplate>
|
||||||
|
</ComboBox>
|
||||||
|
<TextBlock Text="{Binding GeomTypeSawingMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedSawingGeomType}" Height="25">
|
||||||
|
<ComboBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ComboBox.ItemTemplate>
|
||||||
|
</ComboBox>
|
||||||
|
<TextBlock Text="{Binding GeomTypeMillingMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedMillingGeomType}" Height="25"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<ComboBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ComboBox.ItemTemplate>
|
||||||
|
</ComboBox>
|
||||||
|
<TextBlock Text="{Binding GeomTypePocketingMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedPocketingGeomType}" Height="25">
|
||||||
|
<ComboBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ComboBox.ItemTemplate>
|
||||||
|
</ComboBox>
|
||||||
|
<TextBlock Text="{Binding GeomTypeMortisingMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedMortisingGeomType}" Height="25">
|
||||||
|
<ComboBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ComboBox.ItemTemplate>
|
||||||
|
</ComboBox>
|
||||||
|
<TextBlock Text="{Binding GeomTypeChiselingMsg}" VerticalAlignment="Center"/>
|
||||||
|
<ComboBox ItemsSource="{Binding GeomTypeList, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding SelectedChiselingGeomType}" Height="25">
|
||||||
|
<ComboBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Converter={StaticResource GeomTypeConverter}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ComboBox.ItemTemplate>
|
||||||
|
</ComboBox>
|
||||||
|
</UniformGrid>
|
||||||
|
</GroupBox>-->
|
||||||
|
|
||||||
<Grid Margin="5,5,5,0">
|
<!--<Grid Margin="5,5,5,0">
|
||||||
<Button Content="{Binding ExportMachineMsg}" Command="{Binding ExportMachine_Command}" Height="26" Margin="100,1"/>
|
<Grid.ColumnDefinitions>
|
||||||
</Grid>
|
<ColumnDefinition Width="2*"/>
|
||||||
</StackPanel>
|
<ColumnDefinition Width="1*"/>
|
||||||
</TabItem>
|
</Grid.ColumnDefinitions>
|
||||||
</TabControl>
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Text="{Binding NewMachiningPosMsg}" VerticalAlignment="Center"
|
||||||
|
Grid.Row="0" Margin="0,0,0,5"/>
|
||||||
|
<CheckBox IsChecked="{Binding NewMachiningIsLastOne}"
|
||||||
|
Grid.Column="1" Grid.Row="0" Margin="4,0,0,0" VerticalAlignment="Center"/>
|
||||||
|
<TextBlock Text="{Binding UseDispositionScriptMsg}" VerticalAlignment="Center"
|
||||||
|
Grid.Row="1" Margin="0,0,0,5"/>
|
||||||
|
<CheckBox IsChecked="{Binding UseDispositionScript}"
|
||||||
|
Grid.Column="1" Grid.Row="1" Margin="4,0,0,0" VerticalAlignment="Center"/>
|
||||||
|
</Grid>-->
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Button Content="{Binding AddMachineMsg}" Command="{Binding AddMachine_Command}" Height="26" Margin="100,1"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Button Content="{Binding ExportMachineMsg}" Command="{Binding ExportMachine_Command}" Height="26" Margin="100,1"/>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
|
<Button Grid.Row="1"
|
||||||
|
Command="{Binding Ok_Command}"
|
||||||
|
IsCancel="True"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
|
|||||||
@@ -980,16 +980,17 @@ Public Class OptionWindowVM
|
|||||||
Dim bOldExists As Boolean = My.Computer.FileSystem.DirectoryExists( sMachDir)
|
Dim bOldExists As Boolean = My.Computer.FileSystem.DirectoryExists( sMachDir)
|
||||||
Dim bUpdate As Boolean = True
|
Dim bUpdate As Boolean = True
|
||||||
If bOldExists Then
|
If bOldExists Then
|
||||||
Dim MachBox As New MachineBox( Application.Current.MainWindow, sMachName)
|
Dim MachBox As New UpdateMachineV(Application.Current.MainWindow, New UpdateMachineVM(sMachName))
|
||||||
Select MachBox.ShowDialog()
|
MachBox.ShowDialog()
|
||||||
Case MessageBoxResult.Yes
|
Select Case MachBox.DialogResult
|
||||||
bUpdate = False
|
Case MessageBoxResult.Yes
|
||||||
Case MessageBoxResult.No
|
bUpdate = False
|
||||||
bUpdate = True
|
Case MessageBoxResult.No
|
||||||
Case MessageBoxResult.Cancel
|
bUpdate = True
|
||||||
' Rimuovo il direttorio temporaneo ed esco
|
Case MessageBoxResult.Cancel
|
||||||
My.Computer.FileSystem.DeleteDirectory( sTempDir, FileIO.DeleteDirectoryOption.DeleteAllContents)
|
' Rimuovo il direttorio temporaneo ed esco
|
||||||
Return
|
My.Computer.FileSystem.DeleteDirectory(sTempDir, FileIO.DeleteDirectoryOption.DeleteAllContents)
|
||||||
|
Return
|
||||||
End Select
|
End Select
|
||||||
' Faccio una copia di backup della macchina corrente
|
' Faccio una copia di backup della macchina corrente
|
||||||
Dim sBackupDir As String = sMachDir & ".old"
|
Dim sBackupDir As String = sMachDir & ".old"
|
||||||
@@ -1013,11 +1014,11 @@ Public Class OptionWindowVM
|
|||||||
' Se è un aggiornamento, recupero utensili, lavorazioni, attrezzaggi e dati per travi
|
' Se è un aggiornamento, recupero utensili, lavorazioni, attrezzaggi e dati per travi
|
||||||
If bOldExists And bUpdate Then
|
If bOldExists And bUpdate Then
|
||||||
Dim sBackupDir As String = sMachDir & ".old"
|
Dim sBackupDir As String = sMachDir & ".old"
|
||||||
If My.Computer.FileSystem.DirectoryExists( sBackupDir & "\Tools") Then
|
If My.Computer.FileSystem.DirectoryExists(sBackupDir & "\Tools") Then
|
||||||
If My.Computer.FileSystem.DirectoryExists( sMachDir & "\Tools") Then
|
If My.Computer.FileSystem.DirectoryExists(sMachDir & "\Tools") Then
|
||||||
My.Computer.FileSystem.DeleteDirectory( sMachDir & "\Tools", FileIO.DeleteDirectoryOption.DeleteAllContents)
|
My.Computer.FileSystem.DeleteDirectory(sMachDir & "\Tools", FileIO.DeleteDirectoryOption.DeleteAllContents)
|
||||||
End If
|
End If
|
||||||
My.Computer.FileSystem.CopyDirectory( sBackupDir & "\Tools", sMachDir & "\Tools", True)
|
My.Computer.FileSystem.CopyDirectory(sBackupDir & "\Tools", sMachDir & "\Tools", True)
|
||||||
End If
|
End If
|
||||||
If My.Computer.FileSystem.DirectoryExists(sBackupDir & "\Machinings") Then
|
If My.Computer.FileSystem.DirectoryExists(sBackupDir & "\Machinings") Then
|
||||||
If My.Computer.FileSystem.DirectoryExists(sMachDir & "\Machinings") Then
|
If My.Computer.FileSystem.DirectoryExists(sMachDir & "\Machinings") Then
|
||||||
@@ -1037,50 +1038,12 @@ Public Class OptionWindowVM
|
|||||||
End If
|
End If
|
||||||
My.Computer.FileSystem.CopyDirectory(sBackupDir & "\SetUp", sMachDir & "\SetUp", True)
|
My.Computer.FileSystem.CopyDirectory(sBackupDir & "\SetUp", sMachDir & "\SetUp", True)
|
||||||
End If
|
End If
|
||||||
'If My.Computer.FileSystem.DirectoryExists( sBackupDir & "\Beam") Then
|
If My.Computer.FileSystem.DirectoryExists(sBackupDir & "\CustomData") Then
|
||||||
' ' Flag per sovrascrivere vecchio file BeamData.lua con nuovo
|
If My.Computer.FileSystem.DirectoryExists(sMachDir & "\CustomData") Then
|
||||||
' Dim bBeamDataExists As Boolean = False
|
My.Computer.FileSystem.DeleteDirectory(sMachDir & "\CustomData", FileIO.DeleteDirectoryOption.DeleteAllContents)
|
||||||
' Const sBeamData As String = "\BeamData.lua"
|
End If
|
||||||
' ' Flag per sovrascrivere vecchio file MachiningTypes.ini
|
My.Computer.FileSystem.CopyDirectory(sBackupDir & "\CustomData", sMachDir & "\CustomData", True)
|
||||||
' Dim bMchgTypesExists As Boolean = False
|
End If
|
||||||
' Const sMchgTypes As String = "\MachiningTypes.ini"
|
|
||||||
' If My.Computer.FileSystem.DirectoryExists( sMachDir & "\Beam") Then
|
|
||||||
' If My.Computer.FileSystem.FileExists( sMachDir & "\Beam" & sBeamData) Then
|
|
||||||
' bBeamDataExists = True
|
|
||||||
' My.Computer.FileSystem.MoveFile( sMachDir & "\Beam" & sBeamData, sMachDir & sBeamData, True)
|
|
||||||
' End If
|
|
||||||
' If My.Computer.FileSystem.FileExists( sMachDir & "\Beam" & sMchgTypes) Then
|
|
||||||
' bMchgTypesExists = True
|
|
||||||
' My.Computer.FileSystem.MoveFile( sMachDir & "\Beam" & sMchgTypes, sMachDir & sMchgTypes, True)
|
|
||||||
' End If
|
|
||||||
' My.Computer.FileSystem.DeleteDirectory( sMachDir & "\Beam", FileIO.DeleteDirectoryOption.DeleteAllContents)
|
|
||||||
' End If
|
|
||||||
' My.Computer.FileSystem.CopyDirectory( sBackupDir & "\Beam", sMachDir & "\Beam", True)
|
|
||||||
' If bBeamDataExists Then My.Computer.FileSystem.MoveFile( sMachDir & sBeamData, sMachDir & "\Beam" & sBeamData, True)
|
|
||||||
' If bMchgTypesExists Then My.Computer.FileSystem.MoveFile( sMachDir & sMchgTypes, sMachDir & "\Beam" & sMchgTypes, True)
|
|
||||||
'End If
|
|
||||||
'If My.Computer.FileSystem.DirectoryExists( sBackupDir & "\Wall") Then
|
|
||||||
' ' Flag per sovrascrittura vecchio file WallData.lua con nuovo
|
|
||||||
' Dim bWallDataExists As Boolean = False
|
|
||||||
' Const sWallData As String = "\WallData.lua"
|
|
||||||
' ' Flag per sovrascrivere vecchio file MachiningTypes.ini
|
|
||||||
' Dim bMchgTypesExists As Boolean = False
|
|
||||||
' Const sMchgTypes As String = "\MachiningTypes.ini"
|
|
||||||
' If My.Computer.FileSystem.DirectoryExists( sMachDir & "\Wall") Then
|
|
||||||
' If My.Computer.FileSystem.FileExists( sMachDir & "\Wall" & sWallData) Then
|
|
||||||
' bWallDataExists = True
|
|
||||||
' My.Computer.FileSystem.MoveFile( sMachDir & "\Wall" & sWallData, sMachDir & sWallData, True)
|
|
||||||
' End If
|
|
||||||
' If My.Computer.FileSystem.FileExists( sMachDir & "\Wall" & sMchgTypes) Then
|
|
||||||
' bMchgTypesExists = True
|
|
||||||
' My.Computer.FileSystem.MoveFile( sMachDir & "\Wall" & sMchgTypes, sMachDir & sMchgTypes, True)
|
|
||||||
' End If
|
|
||||||
' My.Computer.FileSystem.DeleteDirectory( sMachDir & "\Wall", FileIO.DeleteDirectoryOption.DeleteAllContents)
|
|
||||||
' End If
|
|
||||||
' My.Computer.FileSystem.CopyDirectory( sBackupDir & "\Wall", sMachDir & "\Wall", True)
|
|
||||||
' If bWallDataExists Then My.Computer.FileSystem.MoveFile( sMachDir & sWallData, sMachDir & "\Wall" & sWallData, True)
|
|
||||||
' If bMchgTypesExists Then My.Computer.FileSystem.MoveFile( sMachDir & sMchgTypes, sMachDir & "\Wall" & sMchgTypes, True)
|
|
||||||
'End If
|
|
||||||
End If
|
End If
|
||||||
'La macchina "{0}" è stata aggiornata con successo.
|
'La macchina "{0}" è stata aggiornata con successo.
|
||||||
Dim sOk As String = String.Format(EgtMsg(6530), sMachName)
|
Dim sOk As String = String.Format(EgtMsg(6530), sMachName)
|
||||||
|
|||||||
@@ -193,23 +193,11 @@ Public Class ProjManagerVM
|
|||||||
''' Execute the Open. This method is invoked by the OpenCommand.
|
''' Execute the Open. This method is invoked by the OpenCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Friend Sub Open()
|
Friend Sub Open()
|
||||||
OpenProject(Nothing)
|
OpenProject("")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Function OpenProject(sFilePath As String) As Boolean
|
Friend Function OpenProject(sFilePath As String) As Boolean
|
||||||
If String.IsNullOrEmpty(sFilePath) Then
|
Return Map.refSceneHostVM.OpenProject(sFilePath)
|
||||||
' Recupero cartella dell'ultimo progetto aperto
|
|
||||||
Dim sDir As String = Map.refSceneHostVM.MainController.GetCurrFile()
|
|
||||||
If String.IsNullOrWhiteSpace(sDir) Then
|
|
||||||
GetMainPrivateProfileString(S_MRUFILES, K_FILE & 1, "", sDir)
|
|
||||||
End If
|
|
||||||
If Not String.IsNullOrWhiteSpace(sDir) Then
|
|
||||||
sDir = Path.GetDirectoryName(sDir)
|
|
||||||
End If
|
|
||||||
Return Map.refSceneHostVM.MainController.OpenProject(sDir)
|
|
||||||
Else
|
|
||||||
Return Map.refSceneHostVM.MainController.OpenProject(sFilePath, False)
|
|
||||||
End If
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region ' OpenCommand
|
#End Region ' OpenCommand
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:PrintApp="clr-namespace:Icarus">
|
xmlns:PrintApp="clr-namespace:Icarus">
|
||||||
|
<DockPanel.Resources>
|
||||||
|
<PrintApp:VisibilityToRowConverter x:Key="VisibilityToRowConverter"/>
|
||||||
|
</DockPanel.Resources>
|
||||||
<Grid DockPanel.Dock="Top">
|
<Grid DockPanel.Dock="Top">
|
||||||
<PrintApp:TopPanelV Grid.Column="1"
|
<PrintApp:TopPanelV Grid.Column="1"
|
||||||
DataContext="{StaticResource TopPanelVM }"/>
|
DataContext="{StaticResource TopPanelVM }"/>
|
||||||
@@ -27,12 +29,27 @@
|
|||||||
DataContext="{StaticResource SliderManagerVM}"
|
DataContext="{StaticResource SliderManagerVM}"
|
||||||
HorizontalAlignment="Stretch"/>
|
HorizontalAlignment="Stretch"/>
|
||||||
<!--StatusBar -->
|
<!--StatusBar -->
|
||||||
<PrintApp:ControllerInputPanelV Grid.Row="1"
|
<Grid Grid.RowSpan="2"
|
||||||
|
Grid.ColumnSpan="2">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="67"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<PrintApp:MessagePanelV Grid.Row="{Binding DataContext.Message_Visibility, ElementName=ControllerInputPanelV, Converter={StaticResource VisibilityToRowConverter}}"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
DataContext="{StaticResource StatusBarVM}"/>
|
||||||
|
<PrintApp:ControllerInputPanelV x:Name="ControllerInputPanelV" Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
DataContext="{StaticResource ControllerInputPanelVM}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<!--<PrintApp:ControllerInputPanelV Grid.Row="1"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
DataContext="{StaticResource ControllerInputPanelVM}"/>
|
DataContext="{StaticResource ControllerInputPanelVM}"/>
|
||||||
<PrintApp:MessagePanelV Grid.Row="1"
|
<PrintApp:MessagePanelV Grid.Row="1"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
DataContext="{StaticResource StatusBarVM}"/>
|
DataContext="{StaticResource StatusBarVM}"/>-->
|
||||||
<PrintApp:ShowPanelV Grid.Column="2"
|
<PrintApp:ShowPanelV Grid.Column="2"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
DataContext="{StaticResource ShowPanelVM}"/>
|
DataContext="{StaticResource ShowPanelVM}"/>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Imports EgtWPFLib5
|
|||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
|
Imports System.Globalization
|
||||||
|
|
||||||
Public Class ProjectVM
|
Public Class ProjectVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
@@ -28,3 +29,15 @@ Public Class ProjectVM
|
|||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
Public Class VisibilityToRowConverter
|
||||||
|
Implements IValueConverter
|
||||||
|
|
||||||
|
Public Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.Convert
|
||||||
|
If IsNothing(value) Then Return 2
|
||||||
|
Return If(value = Visibility.Visible, 1, 2)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function ConvertBack(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.ConvertBack
|
||||||
|
Throw New System.NotImplementedException()
|
||||||
|
End Function
|
||||||
|
End Class
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<UserControl x:Class="ReferencePanelV"
|
<UserControl x:Class="ReferencePanelV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:PrintApp="clr-namespace:Icarus">
|
||||||
<Border Padding="2.5"
|
<Border Padding="2.5"
|
||||||
Style="{StaticResource LeftPanel_PopupButton_Border}">
|
Style="{StaticResource LeftPanel_PopupButton_Border}">
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -33,12 +34,33 @@
|
|||||||
</ListBox.ItemContainerStyle>
|
</ListBox.ItemContainerStyle>
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<RadioButton Content="{Binding sText}"
|
<PrintApp:CheckedImageRadioButton IsChecked="{Binding IsSelected,RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
|
||||||
IsChecked="{Binding IsSelected,RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
|
ImageSource="{Binding sText}"
|
||||||
FontSize="40"
|
CheckedImageSource="{Binding sSelText}"
|
||||||
GroupName="ReferenceRadio"
|
FontSize="40"
|
||||||
Margin="2.5,2.5,2.5,2.5"
|
GroupName="ReferenceRadio"
|
||||||
Style="{StaticResource OptionPanel_NestingToggleButton}"/>
|
Margin="2.5,2.5,2.5,2.5">
|
||||||
|
<!--<RadioButton.Resources>
|
||||||
|
<DataTemplate x:Key="Normal">
|
||||||
|
<Image Source="{Binding sText}"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
<DataTemplate x:Key="Selected">
|
||||||
|
<Image Source="{Binding sSelText}"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</RadioButton.Resources>
|
||||||
|
<RadioButton.Style>
|
||||||
|
<Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource OptionPanel_NestingToggleButton}">
|
||||||
|
<Setter Property="ContentTemplate" Value="{StaticResource Normal}"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsChecked" Value="True">
|
||||||
|
<Setter Property="ContentTemplate" Value="{StaticResource Selected}"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</RadioButton.Style>-->
|
||||||
|
</PrintApp:CheckedImageRadioButton>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
|
|||||||
@@ -190,25 +190,52 @@ Public Class ReferenceBtn
|
|||||||
Get
|
Get
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case References.TL
|
Case References.TL
|
||||||
Return "┌"
|
Return "/Resources/ReferencePanel/TL.png" '"┌"
|
||||||
Case References.TR
|
Case References.TR
|
||||||
Return "┐"
|
Return "/Resources/ReferencePanel/TR.png" '"┐"
|
||||||
Case References.BL
|
Case References.BL
|
||||||
Return "└"
|
Return "/Resources/ReferencePanel/BL.png" '"└"
|
||||||
Case References.BR
|
Case References.BR
|
||||||
Return "┘"
|
Return "/Resources/ReferencePanel/BR.png" '"┘"
|
||||||
Case References.TC
|
Case References.TC
|
||||||
Return "┬"
|
Return "/Resources/ReferencePanel/TC.png" '"┬"
|
||||||
Case References.ML
|
Case References.ML
|
||||||
Return "├"
|
Return "/Resources/ReferencePanel/ML.png" '"├"
|
||||||
Case References.MR
|
Case References.MR
|
||||||
Return "┤"
|
Return "/Resources/ReferencePanel/MR.png" '"┤"
|
||||||
Case References.BC
|
Case References.BC
|
||||||
Return "┴"
|
Return "/Resources/ReferencePanel/BC.png" '"┴"
|
||||||
Case References.MC
|
Case References.MC
|
||||||
Return "┼"
|
Return "/Resources/ReferencePanel/MC.png" '"┼"
|
||||||
Case Else
|
Case Else
|
||||||
Return "X"
|
Return "" '"X"
|
||||||
|
End Select
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property sSelText As String
|
||||||
|
Get
|
||||||
|
Select Case Type
|
||||||
|
Case References.TL
|
||||||
|
Return "/Resources/ReferencePanel/White_TL.png" '"┌"
|
||||||
|
Case References.TR
|
||||||
|
Return "/Resources/ReferencePanel/White_TR.png" '"┐"
|
||||||
|
Case References.BL
|
||||||
|
Return "/Resources/ReferencePanel/White_BL.png" '"└"
|
||||||
|
Case References.BR
|
||||||
|
Return "/Resources/ReferencePanel/White_BR.png" '"┘"
|
||||||
|
Case References.TC
|
||||||
|
Return "/Resources/ReferencePanel/White_TC.png" '"┬"
|
||||||
|
Case References.ML
|
||||||
|
Return "/Resources/ReferencePanel/White_ML.png" '"├"
|
||||||
|
Case References.MR
|
||||||
|
Return "/Resources/ReferencePanel/White_MR.png" '"┤"
|
||||||
|
Case References.BC
|
||||||
|
Return "/Resources/ReferencePanel/White_BC.png" '"┴"
|
||||||
|
Case References.MC
|
||||||
|
Return "/Resources/ReferencePanel/White_MC.png" '"┼"
|
||||||
|
Case Else
|
||||||
|
Return "" '"X"
|
||||||
End Select
|
End Select
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|||||||
|
After Width: | Height: | Size: 301 B |
|
After Width: | Height: | Size: 159 B |
|
After Width: | Height: | Size: 136 B |
|
After Width: | Height: | Size: 254 B |
|
After Width: | Height: | Size: 321 B |
|
After Width: | Height: | Size: 197 B |
|
After Width: | Height: | Size: 226 B |
|
After Width: | Height: | Size: 235 B |
|
After Width: | Height: | Size: 366 B |
|
After Width: | Height: | Size: 229 B |
|
After Width: | Height: | Size: 199 B |
|
After Width: | Height: | Size: 204 B |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 233 B |
|
After Width: | Height: | Size: 221 B |
|
After Width: | Height: | Size: 197 B |
|
After Width: | Height: | Size: 226 B |
|
After Width: | Height: | Size: 197 B |
|
After Width: | Height: | Size: 229 B |
|
After Width: | Height: | Size: 199 B |
|
After Width: | Height: | Size: 204 B |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 233 B |
|
After Width: | Height: | Size: 221 B |
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 528 B |
|
After Width: | Height: | Size: 566 B |
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 331 B |
|
After Width: | Height: | Size: 431 B |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 341 B |
@@ -42,6 +42,10 @@ Public Class RibPanelVM
|
|||||||
Return m_SelRib
|
Return m_SelRib
|
||||||
End Get
|
End Get
|
||||||
Set(value As RibEntity)
|
Set(value As RibEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelRib))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelRib = value
|
m_SelRib = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -238,7 +242,7 @@ Public Class RibPanelVM
|
|||||||
Return m_bAdd_IsChecked
|
Return m_bAdd_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bAdd_IsChecked = value
|
m_bAdd_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
@@ -260,7 +264,7 @@ Public Class RibPanelVM
|
|||||||
Return m_bEdit_IsChecked
|
Return m_bEdit_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelRib) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelRib) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bEdit_IsChecked = value
|
m_bEdit_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -284,7 +288,7 @@ Public Class RibPanelVM
|
|||||||
Return m_bGrid_IsChecked
|
Return m_bGrid_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bGrid_IsChecked = value
|
m_bGrid_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -312,7 +316,7 @@ Public Class RibPanelVM
|
|||||||
Return m_bMove_IsChecked
|
Return m_bMove_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelRib) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelRib) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bMove_IsChecked = value
|
m_bMove_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -336,7 +340,7 @@ Public Class RibPanelVM
|
|||||||
Return m_bRotate_IsChecked
|
Return m_bRotate_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelRib) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelRib) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bRotate_IsChecked = value
|
m_bRotate_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -360,7 +364,7 @@ Public Class RibPanelVM
|
|||||||
Return m_bMachParam_IsChecked
|
Return m_bMachParam_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelRib) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not IsNothing(Map.refTopPanelVM.SelMachining) AndAlso value Then
|
If Not IsNothing(m_SelRib) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive AndAlso Not IsNothing(Map.refTopPanelVM.SelMachining) AndAlso value Then
|
||||||
m_bMachParam_IsChecked = True
|
m_bMachParam_IsChecked = True
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
@@ -374,6 +378,8 @@ Public Class RibPanelVM
|
|||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.RIBPARAM)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.RIBPARAM)
|
||||||
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
||||||
|
' disattivo interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Else
|
Else
|
||||||
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
||||||
End If
|
End If
|
||||||
@@ -383,6 +389,8 @@ Public Class RibPanelVM
|
|||||||
m_bMachParam_IsChecked = False
|
m_bMachParam_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
||||||
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
||||||
|
' riattivo interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Compo_Visibility As Visibility
|
Public ReadOnly Property Compo_Visibility As Visibility
|
||||||
@@ -391,11 +399,17 @@ Public Class RibPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_RibList_IsEnabled As Boolean = False
|
||||||
Public ReadOnly Property RibList_IsEnabled As Boolean
|
Public ReadOnly Property RibList_IsEnabled As Boolean
|
||||||
Get
|
Get
|
||||||
Return Not m_bMachParam_IsChecked
|
Return If(m_RibList.Count > 0, m_RibList_IsEnabled, False)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
Friend Sub SetRibListIsEnabled(bValue As Boolean)
|
||||||
|
m_RibList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -413,6 +427,8 @@ Public Class RibPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Import_ToolTip As String
|
Public ReadOnly Property Import_ToolTip As String
|
||||||
@@ -542,7 +558,6 @@ Public Class RibPanelVM
|
|||||||
Private m_cmdCPlaneObj As ICommand
|
Private m_cmdCPlaneObj As ICommand
|
||||||
Private m_cmdDragMove As ICommand
|
Private m_cmdDragMove As ICommand
|
||||||
Private m_cmdDragRotate As ICommand
|
Private m_cmdDragRotate As ICommand
|
||||||
Private m_cmdMachParam As ICommand
|
|
||||||
|
|
||||||
#End Region ' FIELDS & PROPERTIES
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
@@ -597,6 +612,8 @@ Public Class RibPanelVM
|
|||||||
SelRib = m_RibList(0)
|
SelRib = m_RibList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelRib))
|
NotifyPropertyChanged(NameOf(SelRib))
|
||||||
End If
|
End If
|
||||||
|
' abilito lista ribs
|
||||||
|
SetRibListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -632,8 +649,13 @@ Public Class RibPanelVM
|
|||||||
EgtSelectObj(m_SelRib.nCurveId)
|
EgtSelectObj(m_SelRib.nCurveId)
|
||||||
Case RibSelectionTypes.EXTRUSION
|
Case RibSelectionTypes.EXTRUSION
|
||||||
' creo layer per estrusione
|
' creo layer per estrusione
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId = GDB_ID.NULL Then
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
Else
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
EgtSelectObj(m_SelRib.nCurveId)
|
EgtSelectObj(m_SelRib.nCurveId)
|
||||||
Case RibSelectionTypes.BOTH
|
Case RibSelectionTypes.BOTH
|
||||||
@@ -641,6 +663,8 @@ Public Class RibPanelVM
|
|||||||
EgtSelectObj(m_SelRib.nExtrusionId)
|
EgtSelectObj(m_SelRib.nExtrusionId)
|
||||||
End Select
|
End Select
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -650,6 +674,7 @@ Public Class RibPanelVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
Select Case command
|
Select Case command
|
||||||
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
||||||
' leggo altezza estrusione
|
' leggo altezza estrusione
|
||||||
@@ -689,6 +714,10 @@ Public Class RibPanelVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End Select
|
End Select
|
||||||
|
' se non ho creato percorso riabilito interfaccia
|
||||||
|
If Not m_bIsCreatingPath Then
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
||||||
' se finita creazione estrusione
|
' se finita creazione estrusione
|
||||||
If m_bIsCreatingExtrusion Then
|
If m_bIsCreatingExtrusion Then
|
||||||
@@ -740,18 +769,25 @@ Public Class RibPanelVM
|
|||||||
' lo seleziono
|
' lo seleziono
|
||||||
SelRib = NewEntity
|
SelRib = NewEntity
|
||||||
NotifyPropertyChanged(NameOf(SelRib))
|
NotifyPropertyChanged(NameOf(SelRib))
|
||||||
' creo layer per estrusione
|
' verifico se esiste gia' layer estrusione e lo svuoto
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId <> GDB_ID.NULL Then
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
Else
|
||||||
|
' altrimenti lo creo
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
' seleziono percorso da estrudere
|
' seleziono percorso da estrudere
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
EgtSelectObj(nNewEntityId)
|
EgtSelectObj(nNewEntityId)
|
||||||
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
||||||
m_bIsCreatingExtrusion = True
|
m_bIsCreatingExtrusion = True
|
||||||
|
If Not EgtCurveIsClosed(nNewEntityId) Then
|
||||||
|
m_bEscOnLine2P = True
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
' cancello layer
|
|
||||||
'EgtErase(nNewRibLayerId)
|
|
||||||
EgtErase(nNewExtrusionLayerId)
|
EgtErase(nNewExtrusionLayerId)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -774,6 +810,13 @@ Public Class RibPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
If m_bIsCreatingExtrusion Then m_bIsCreatingExtrusion = False
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -809,6 +852,18 @@ Public Class RibPanelVM
|
|||||||
Return nRibIndex + 1
|
Return nRibIndex + 1
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetRibListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -831,8 +886,10 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Import(ByVal param As Object)
|
Public Sub Import(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.InsertRib()
|
Map.refSceneHostVM.InsertRib()
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Import
|
#End Region ' Import
|
||||||
@@ -855,7 +912,8 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Dim nNewRibLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
Dim nNewRibLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
||||||
If nNewRibLayerId = GDB_ID.NULL Then nNewRibLayerId = EgtCreateGroup(m_nPartId)
|
If nNewRibLayerId = GDB_ID.NULL Then nNewRibLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewRibLayerId, LAY_NEWRIB)
|
EgtSetName(nNewRibLayerId, LAY_NEWRIB)
|
||||||
@@ -880,7 +938,7 @@ Public Class RibPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Delete()
|
Public Sub Delete()
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If IsNothing(SelRib) Then Return
|
If IsNothing(SelRib) Then Return
|
||||||
Dim bOk As Boolean = False
|
Dim bOk As Boolean = False
|
||||||
Select Case m_SelRib.Type
|
Select Case m_SelRib.Type
|
||||||
@@ -900,10 +958,11 @@ Public Class RibPanelVM
|
|||||||
Else
|
Else
|
||||||
SelRib = Nothing
|
SelRib = Nothing
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf( bEdit_IsChecked))
|
NotifyPropertyChanged(NameOf(bEdit_IsChecked))
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelRib))
|
NotifyPropertyChanged(NameOf(SelRib))
|
||||||
End If
|
End If
|
||||||
|
SetRibListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
@@ -926,7 +985,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub ModifyCurve(ByVal param As Object)
|
Public Sub ModifyCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(RibSelectionTypes.CURVE)
|
InitCommand(RibSelectionTypes.CURVE)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -951,7 +1010,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub AddPointCurve(ByVal param As Object)
|
Public Sub AddPointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(RibSelectionTypes.CURVE)
|
InitCommand(RibSelectionTypes.CURVE)
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
||||||
@@ -980,7 +1039,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub RemovePointCurve(ByVal param As Object)
|
Public Sub RemovePointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(RibSelectionTypes.CURVE)
|
InitCommand(RibSelectionTypes.CURVE)
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
||||||
@@ -1009,7 +1068,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the Extrude. This method is invoked by the ExtrudeCommand.
|
''' Execute the Extrude. This method is invoked by the ExtrudeCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Extrude(ByVal param As Object)
|
Public Sub Extrude(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(RibSelectionTypes.EXTRUSION)
|
InitCommand(RibSelectionTypes.EXTRUSION)
|
||||||
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
||||||
m_bIsCreatingExtrusion = True
|
m_bIsCreatingExtrusion = True
|
||||||
@@ -1036,7 +1095,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneTop(ByVal param As Object)
|
Public Sub CPlaneTop(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1061,7 +1120,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneFront(ByVal param As Object)
|
Public Sub CPlaneFront(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1086,7 +1145,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneRight(ByVal param As Object)
|
Public Sub CPlaneRight(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1111,7 +1170,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBack(ByVal param As Object)
|
Public Sub CPlaneBack(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1136,7 +1195,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneLeft(ByVal param As Object)
|
Public Sub CPlaneLeft(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1161,7 +1220,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBottom(ByVal param As Object)
|
Public Sub CPlaneBottom(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1186,7 +1245,8 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1210,7 +1270,8 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1234,7 +1295,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneRotate. This method is invoked by the CPlaneRotateCommand.
|
''' Execute the CPlaneRotate. This method is invoked by the CPlaneRotateCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneRotate(ByVal param As Object)
|
Public Sub CPlaneRotate(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ROTATE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ROTATE)
|
||||||
Else
|
Else
|
||||||
@@ -1262,7 +1323,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlane3P. This method is invoked by the CPlane3PCommand.
|
''' Execute the CPlane3P. This method is invoked by the CPlane3PCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlane3P(ByVal param As Object)
|
Public Sub CPlane3P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_3P)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_3P)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1286,7 +1347,7 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlanePerpObj. This method is invoked by the CPlanePerpObjCommand.
|
''' Execute the CPlanePerpObj. This method is invoked by the CPlanePerpObjCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlanePerpObj(ByVal param As Object)
|
Public Sub CPlanePerpObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_PERPCURVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_PERPCURVE)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1326,7 +1387,8 @@ Public Class RibPanelVM
|
|||||||
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
@@ -1336,7 +1398,7 @@ Public Class RibPanelVM
|
|||||||
End While
|
End While
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
m_bCPlaneObj_IsActive = True
|
m_bCPlaneObj_IsActive = True
|
||||||
' Map.refControllerInputPanelVM.PrepareInputBox("Grid from Selection", "Select the face of the object where to place the grid", "", False, False)
|
Map.refControllerInputPanelVM.ShowMessage("Grid from Selection", "Select the face of the object where to place the grid")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CPlaneObj
|
#End Region ' CPlaneObj
|
||||||
@@ -1353,6 +1415,7 @@ Public Class RibPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DragMove()
|
Public Sub DragMove()
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(RibSelectionTypes.BOTH)
|
InitCommand(RibSelectionTypes.BOTH)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1371,40 +1434,13 @@ Public Class RibPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DragRotate()
|
Public Sub DragRotate()
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(RibSelectionTypes.BOTH)
|
InitCommand(RibSelectionTypes.BOTH)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.ROTATE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.ROTATE)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' DragRotate
|
#End Region ' DragRotate
|
||||||
|
|
||||||
#Region "MachParam"
|
|
||||||
|
|
||||||
Public ReadOnly Property MachParam_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdMachParam Is Nothing Then
|
|
||||||
m_cmdMachParam = New Command(AddressOf MachParam)
|
|
||||||
End If
|
|
||||||
Return m_cmdMachParam
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub MachParam()
|
|
||||||
If IsNothing(Map.refTopPanelVM.SelMachining) Then Return
|
|
||||||
m_bAdd_IsChecked = False
|
|
||||||
m_bEdit_IsChecked = False
|
|
||||||
m_bGrid_IsChecked = False
|
|
||||||
m_bMove_IsChecked = False
|
|
||||||
m_bRotate_IsChecked = False
|
|
||||||
NotifyPropertyChanged(NameOf(bAdd_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bEdit_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bGrid_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bMove_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.RIBPARAM)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' MachParam
|
|
||||||
|
|
||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,35 +1,45 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="CopyFromWndV"
|
<EgtWPFLib5:EgtMainWindow x:Class="CopyFromWndV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Title="Copy From"
|
||||||
Title="{Binding sTitle}" Icon="/Resources/Icarus.ico"
|
SizeToContent="WidthAndHeight"
|
||||||
WindowStyle="None" ResizeMode="NoResize" IsClosable="False"
|
WindowStartupLocation="CenterOwner"
|
||||||
WindowStartupLocation="CenterOwner"
|
Style="{StaticResource Dialog_Window}">
|
||||||
SizeToContent="WidthAndHeight">
|
<Grid Margin="2.5,2.5,2.5,0">
|
||||||
<Grid Margin="5">
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="Select Rib to Copy"
|
<TextBlock Text="Select Rib to Copy"
|
||||||
HorizontalAlignment="Center"
|
Margin="20,20,20,2.5"
|
||||||
Margin="0,0,0,2.5"/>
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<ComboBox Grid.Row="1"
|
<ComboBox Grid.Row="1"
|
||||||
ItemsSource="{Binding RibList}"
|
ItemsSource="{Binding RibList}"
|
||||||
SelectedItem="{Binding SelRib}"
|
SelectedItem="{Binding SelRib}"
|
||||||
DisplayMemberPath="ghName"
|
DisplayMemberPath="ghName"
|
||||||
Margin="0,2.5,0,2.5"/>
|
Width="160"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
HorizontalContentAlignment="Center"
|
||||||
|
Margin="2.5,10,2.5,2.5"
|
||||||
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
<UniformGrid Grid.Row="2"
|
<UniformGrid Grid.Row="2"
|
||||||
Rows="1"
|
Rows="1"
|
||||||
Margin="0,2.5,0,0">
|
Margin="0,20,0,0">
|
||||||
<Button Content="Ok"
|
<Button Command="{Binding Ok_Command}"
|
||||||
Command="{Binding Ok_Command}"
|
IsDefault="True"
|
||||||
Style="{StaticResource ToolBar_TextButton}"/>
|
Margin="0,0,2.5,0"
|
||||||
<Button Content="Cancel"
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
Command="{Binding Cancel_Command}"
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
Style="{StaticResource ToolBar_TextButton}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
<Button IsCancel="True"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
|
|||||||
@@ -114,15 +114,25 @@
|
|||||||
<UniformGrid Grid.Row="1"
|
<UniformGrid Grid.Row="1"
|
||||||
Rows="1"
|
Rows="1"
|
||||||
Margin="0,2.5,0,0">
|
Margin="0,2.5,0,0">
|
||||||
<Button Content="Ok"
|
<Button Command="{Binding Ok_Command}"
|
||||||
Command="{Binding Ok_Command}"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
<Button Content="Cancel"
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
Command="{Binding Cancel_Command}"
|
Style="{StaticResource Button_Image}"/>
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
</Button>
|
||||||
<Button Content="Copy From"
|
<Button Command="{Binding Cancel_Command}"
|
||||||
Command="{Binding CopyFrom_Command}"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding CopyFrom_Command}"
|
||||||
|
ToolTip="Copy From"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\RibParamPanel\CopyFrom.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
@@ -42,19 +42,19 @@ Public Class RibParamPanelVM
|
|||||||
|
|
||||||
m_Type = Cathegories.RIBS
|
m_Type = Cathegories.RIBS
|
||||||
m_sName = "Ribs"
|
m_sName = "Ribs"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New RibComboMachiningParam(MachiningParam.Params.RIBSTYPE, nRibId, nPartId),
|
m_MachiningParamList = New List(Of MachiningParam)({New RibComboMachiningParam(MachiningParam.Params.RIBSTYPE, nRibId, nPartId, Me),
|
||||||
New RibNumericMachiningParam(MachiningParam.Params.RIBSOVERLAP, nRibId, nPartId),
|
New RibNumericMachiningParam(MachiningParam.Params.RIBSOVERLAP, nRibId, nPartId, Me),
|
||||||
New RibNumericMachiningParam(MachiningParam.Params.RIBSSTRANDCOUNT, nRibId, nPartId),
|
New RibNumericMachiningParam(MachiningParam.Params.RIBSSTRANDCOUNT, nRibId, nPartId, Me),
|
||||||
New RibCheckMachiningParam(MachiningParam.Params.RIBSLINK, nRibId, nPartId),
|
New RibCheckMachiningParam(MachiningParam.Params.RIBSLINK, nRibId, nPartId, Me),
|
||||||
New RibCheckMachiningParam(MachiningParam.Params.RIBSINVERTDIRECTION, nRibId, nPartId),
|
New RibCheckMachiningParam(MachiningParam.Params.RIBSINVERTDIRECTION, nRibId, nPartId, Me),
|
||||||
New RibCheckMachiningParam(MachiningParam.Params.RIBSINVERTSTRANDORDER, nRibId, nPartId),
|
New RibCheckMachiningParam(MachiningParam.Params.RIBSINVERTSTRANDORDER, nRibId, nPartId, Me),
|
||||||
New RibCheckMachiningParam(MachiningParam.Params.RIBSLEADININVERT, nRibId, nPartId),
|
New RibCheckMachiningParam(MachiningParam.Params.RIBSLEADININVERT, nRibId, nPartId, Me),
|
||||||
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADINLEN, nRibId, nPartId),
|
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADINLEN, nRibId, nPartId, Me),
|
||||||
New RibCheckMachiningParam(MachiningParam.Params.RIBSLEADOUTINVERT, nRibId, nPartId),
|
New RibCheckMachiningParam(MachiningParam.Params.RIBSLEADOUTINVERT, nRibId, nPartId, Me),
|
||||||
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTLEN, nRibId, nPartId),
|
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTLEN, nRibId, nPartId, Me),
|
||||||
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTCOASTING, nRibId, nPartId),
|
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTCOASTING, nRibId, nPartId, Me),
|
||||||
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPE, nRibId, nPartId),
|
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPE, nRibId, nPartId, Me),
|
||||||
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPEDIR, nRibId, nPartId)})
|
New RibNumericMachiningParam(MachiningParam.Params.RIBSLEADOUTWIPEDIR, nRibId, nPartId, Me)})
|
||||||
NotifyPropertyChanged(NameOf(MachiningParamList))
|
NotifyPropertyChanged(NameOf(MachiningParamList))
|
||||||
NotifyPropertyChanged(NameOf(sName))
|
NotifyPropertyChanged(NameOf(sName))
|
||||||
End Sub
|
End Sub
|
||||||
@@ -135,6 +135,8 @@ Public Class RibParamPanelVM
|
|||||||
Map.refSliceManagerVM.UpdateDimensions()
|
Map.refSliceManagerVM.UpdateDimensions()
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
' riattivo lista ribs
|
||||||
|
Map.refRibPanelVM.SetRibListIsEnabled(False)
|
||||||
' ripristino modalita' standard
|
' ripristino modalita' standard
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.NULL)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.NULL)
|
||||||
Map.refRibPanelVM.ResetMachParamIsChecked()
|
Map.refRibPanelVM.ResetMachParamIsChecked()
|
||||||
@@ -224,8 +226,8 @@ Public Class RibNumericMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nRibId As Integer, nPartId As Integer)
|
Sub New(Type As Params, nRibId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type)
|
MyBase.New(Type, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
@@ -420,8 +422,8 @@ Public Class RibComboMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nRibId As Integer, nPartId As Integer)
|
Sub New(Type As Params, nRibId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type)
|
MyBase.New(Type, Cathegory)
|
||||||
Dim bReadFromRib As Boolean = False
|
Dim bReadFromRib As Boolean = False
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
@@ -525,8 +527,8 @@ Public Class RibCheckMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nRibId As Integer, nPartId As Integer)
|
Sub New(Type As Params, nRibId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type)
|
MyBase.New(Type, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.RIBSLINK
|
Case Params.RIBSLINK
|
||||||
|
|||||||
@@ -234,32 +234,22 @@ Public Class MySceneHostVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub EmitTitle()
|
Friend Sub EmitTitle()
|
||||||
' nome file
|
|
||||||
Dim sTitle As String = MainController.GetCurrFile()
|
|
||||||
If String.IsNullOrEmpty(sTitle) Then
|
|
||||||
sTitle = EgtMsg(MSG_TOPCOMMANDBAR + 1) & Map.refMainWindowVM.MainWindowM.nInstance.ToString()
|
|
||||||
End If
|
|
||||||
' indicazione di modificato
|
|
||||||
If MainController.GetModified() Then
|
|
||||||
sTitle += "*"
|
|
||||||
End If
|
|
||||||
' dati del prodotto
|
|
||||||
sTitle += " - Icarus"
|
|
||||||
' emissione del titolo
|
' emissione del titolo
|
||||||
Map.refMainWindowVM.SetTitle(sTitle)
|
Map.refSecondaryWindowVM.SetTitle()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "ProjectManager"
|
#Region "ProjectManager"
|
||||||
|
|
||||||
Public Overrides Sub NewProject()
|
Public Overrides Function NewProject() As Boolean
|
||||||
EgtSetCurrentContext(MainScene.GetCtx())
|
EgtSetCurrentContext(MainScene.GetCtx())
|
||||||
Dim bOk As Boolean = MainController.NewProject()
|
Dim bOk As Boolean = MainController.NewProject()
|
||||||
MainScene.SetStatusNull()
|
MainScene.SetStatusNull()
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Overrides Sub OpenProject(sFilePath As String)
|
Public Overrides Function OpenProject(sFilePath As String) As Boolean
|
||||||
EgtSetCurrentContext(MainScene.GetCtx())
|
EgtSetCurrentContext(MainScene.GetCtx())
|
||||||
Dim bOk As Boolean = False
|
Dim bOk As Boolean = False
|
||||||
If String.IsNullOrEmpty(sFilePath) Then
|
If String.IsNullOrEmpty(sFilePath) Then
|
||||||
@@ -271,39 +261,76 @@ Public Class MySceneHostVM
|
|||||||
If Not String.IsNullOrWhiteSpace(sDir) Then
|
If Not String.IsNullOrWhiteSpace(sDir) Then
|
||||||
sDir = Path.GetDirectoryName(sDir)
|
sDir = Path.GetDirectoryName(sDir)
|
||||||
End If
|
End If
|
||||||
bOk = MainController.OpenProject(sDir)
|
Dim OpenFileDialog As New Windows.Forms.OpenFileDialog With {
|
||||||
Else
|
.Title = "Open",
|
||||||
bOk = MainController.OpenProject(sFilePath, False)
|
.Filter = "Icarus project(*.icrs)|*.icrs" &
|
||||||
|
"|New geometry EgalTech(*.nge)|*.nge",
|
||||||
|
.FilterIndex = 1,
|
||||||
|
.InitialDirectory = sDir
|
||||||
|
}
|
||||||
|
If Not OpenFileDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then Return False
|
||||||
|
sFilePath = OpenFileDialog.FileName
|
||||||
End If
|
End If
|
||||||
|
bOk = MainController.OpenProject(sFilePath, False)
|
||||||
|
' Imposto stato gestione mouse diretto della scena a nessuno
|
||||||
MainScene.SetStatusNull()
|
MainScene.SetStatusNull()
|
||||||
' imposto modalita' import
|
Return bOk
|
||||||
Map.refTopPanelVM.SelPage = Pages.NULL
|
End Function
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public Overrides Sub SaveProject()
|
Public Overrides Function SaveProject() As Boolean
|
||||||
' Se nome progetto non definito o con estensione non valida lo chiedo
|
' Se nome progetto non definito o con estensione non valida lo chiedo
|
||||||
Dim sCurrFile As String = ""
|
Dim sCurrFile As String = ""
|
||||||
EgtGetCurrFilePath(sCurrFile)
|
EgtGetCurrFilePath(sCurrFile)
|
||||||
|
Dim bOk As Boolean = False
|
||||||
If String.IsNullOrWhiteSpace(sCurrFile) Or EgtGetFileType(sCurrFile) <> FT.NGE Then
|
If String.IsNullOrWhiteSpace(sCurrFile) Or EgtGetFileType(sCurrFile) <> FT.NGE Then
|
||||||
MyBase.SaveAsProject()
|
bOk = SaveAsProject()
|
||||||
Return
|
Else
|
||||||
|
Dim bDeleteNgeFile As Boolean = Path.GetExtension(sCurrFile) = ".nge"
|
||||||
|
EgtSetCurrFilePath(Path.ChangeExtension(sCurrFile, "icrs"))
|
||||||
|
' Salvataggio standard
|
||||||
|
bOk = MainController.SaveProject()
|
||||||
|
If bOk AndAlso bDeleteNgeFile AndAlso File.Exists(sCurrFile) Then
|
||||||
|
Try
|
||||||
|
File.Delete(sCurrFile)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Delete nge file failed!")
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
' Salvataggio standard
|
|
||||||
MyBase.SaveProject()
|
|
||||||
' Imposto stato gestione mouse diretto della scena a nessuno
|
' Imposto stato gestione mouse diretto della scena a nessuno
|
||||||
MainScene.SetStatusNull()
|
MainScene.SetStatusNull()
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Overrides Sub SaveAsProject()
|
Public Overrides Function SaveAsProject() As Boolean
|
||||||
m_bIsSaveAs = True
|
m_bIsSaveAs = True
|
||||||
MyBase.SaveAsProject()
|
Dim sFile As String = ""
|
||||||
|
EgtGetCurrFilePath(sFile)
|
||||||
|
Dim bOk As Boolean = False
|
||||||
|
' Se nome vuoto, assegno "New"
|
||||||
|
If String.IsNullOrWhiteSpace(sFile) Then sFile = "New.icrs"
|
||||||
|
' Eventuale sistemazione estensione
|
||||||
|
sFile = IO.Path.ChangeExtension(sFile, "icrs")
|
||||||
|
' Assegnazione nome file con dialogo
|
||||||
|
Dim SaveFileDialog As New Windows.Forms.SaveFileDialog With {
|
||||||
|
.Title = "Save",
|
||||||
|
.Filter = "Icarus Project(*.icrs)|*.icrs",
|
||||||
|
.FileName = sFile,
|
||||||
|
.InitialDirectory = IO.Path.GetDirectoryName(sFile)
|
||||||
|
}
|
||||||
|
If SaveFileDialog.ShowDialog = Windows.Forms.DialogResult.OK Then
|
||||||
|
Dim sFileName As String = SaveFileDialog.FileName
|
||||||
|
EgtSetCurrFilePath(sFileName)
|
||||||
|
' Salvataggio standard
|
||||||
|
bOk = MainController.SaveProject()
|
||||||
|
End If
|
||||||
m_bIsSaveAs = False
|
m_bIsSaveAs = False
|
||||||
' Imposto stato gestione mouse diretto della scena a nessuno
|
' Imposto stato gestione mouse diretto della scena a nessuno
|
||||||
MainScene.SetStatusNull()
|
MainScene.SetStatusNull()
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Overrides Sub InsertProject()
|
Public Overrides Function InsertProject() As Boolean
|
||||||
' eseguo
|
|
||||||
' Recupero cartella dell'ultimo progetto aperto
|
' Recupero cartella dell'ultimo progetto aperto
|
||||||
Dim sDir As String = MainController.GetCurrFile()
|
Dim sDir As String = MainController.GetCurrFile()
|
||||||
If String.IsNullOrWhiteSpace(sDir) Then
|
If String.IsNullOrWhiteSpace(sDir) Then
|
||||||
@@ -324,7 +351,7 @@ Public Class MySceneHostVM
|
|||||||
.FilterIndex = ExtIndex,
|
.FilterIndex = ExtIndex,
|
||||||
.InitialDirectory = sDir}
|
.InitialDirectory = sDir}
|
||||||
If Not OpenFileDialog.ShowDialog Then
|
If Not OpenFileDialog.ShowDialog Then
|
||||||
Return
|
Return False
|
||||||
End If
|
End If
|
||||||
WriteMainPrivateProfileString(S_PRINTING3D, K_IMPORTCURREXTENSION, OpenFileDialog.FilterIndex)
|
WriteMainPrivateProfileString(S_PRINTING3D, K_IMPORTCURREXTENSION, OpenFileDialog.FilterIndex)
|
||||||
Dim sFile As String = String.Empty
|
Dim sFile As String = String.Empty
|
||||||
@@ -338,8 +365,12 @@ Public Class MySceneHostVM
|
|||||||
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(False)
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(False)
|
||||||
Map.refInstrumentPanelVM.SetEdgeAnalysisIsEnabled(False)
|
Map.refInstrumentPanelVM.SetEdgeAnalysisIsEnabled(False)
|
||||||
Map.refSliderManagerVM.SetSliderVisibility(False)
|
Map.refSliderManagerVM.SetSliderVisibility(False)
|
||||||
|
' mostro finestra di caricamento
|
||||||
|
Dim ImportLoadingWnd As ImportLoadingWndV = New ImportLoadingWndV(Application.Current.MainWindow, New ImportLoadingWndVM)
|
||||||
|
ImportLoadingWnd.Show()
|
||||||
' importo la nuova geometria
|
' importo la nuova geometria
|
||||||
If MainController.InsertProject(sFile, False) Then
|
Dim bOk As Boolean = MainController.InsertProject(sFile, False)
|
||||||
|
If bOk Then
|
||||||
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(True)
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(True)
|
||||||
' la sposto in centro tavola
|
' la sposto in centro tavola
|
||||||
Dim nNewPartId As Integer = EgtGetLastPart()
|
Dim nNewPartId As Integer = EgtGetLastPart()
|
||||||
@@ -357,10 +388,13 @@ Public Class MySceneHostVM
|
|||||||
Map.refInstrumentPanelVM.SetEdgeAnalysisIsEnabled(True)
|
Map.refInstrumentPanelVM.SetEdgeAnalysisIsEnabled(True)
|
||||||
Map.refSliderManagerVM.SetSliderVisibility(True)
|
Map.refSliderManagerVM.SetSliderVisibility(True)
|
||||||
End If
|
End If
|
||||||
|
' chiudo finestra di caricamento
|
||||||
|
ImportLoadingWnd.Close()
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Sub InsertRib()
|
Public Function InsertRib() As Boolean
|
||||||
' Recupero cartella dell'ultimo progetto aperto
|
' Recupero cartella dell'ultimo progetto aperto
|
||||||
Dim sDir As String = MainController.GetCurrFile()
|
Dim sDir As String = MainController.GetCurrFile()
|
||||||
If String.IsNullOrWhiteSpace(sDir) Then
|
If String.IsNullOrWhiteSpace(sDir) Then
|
||||||
@@ -380,12 +414,13 @@ Public Class MySceneHostVM
|
|||||||
.FilterIndex = 1,
|
.FilterIndex = 1,
|
||||||
.InitialDirectory = sDir}
|
.InitialDirectory = sDir}
|
||||||
If Not OpenFileDialog.ShowDialog Then
|
If Not OpenFileDialog.ShowDialog Then
|
||||||
Return
|
Return False
|
||||||
End If
|
End If
|
||||||
Dim sFile As String = String.Empty
|
Dim sFile As String = String.Empty
|
||||||
sFile = OpenFileDialog.FileName
|
sFile = OpenFileDialog.FileName
|
||||||
' importo la nuova geometria
|
' importo la nuova geometria
|
||||||
If MainController.InsertProject(sFile, False) Then
|
Dim bOk As Boolean = MainController.InsertProject(sFile, False)
|
||||||
|
If bOk Then
|
||||||
' sposto le nuove geometrie nel layer rib del pezzo
|
' sposto le nuove geometrie nel layer rib del pezzo
|
||||||
Dim nNewPartId As Integer = EgtGetLastPart()
|
Dim nNewPartId As Integer = EgtGetLastPart()
|
||||||
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
||||||
@@ -427,9 +462,10 @@ Public Class MySceneHostVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End If
|
End If
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Sub InsertPrint(MenuItem As ManagerLayer_MenuItem)
|
Public Function InsertPrint(MenuItem As ManagerLayer_MenuItem) As Boolean
|
||||||
' Recupero cartella dell'ultimo progetto aperto
|
' Recupero cartella dell'ultimo progetto aperto
|
||||||
Dim sDir As String = MainController.GetCurrFile()
|
Dim sDir As String = MainController.GetCurrFile()
|
||||||
If String.IsNullOrWhiteSpace(sDir) Then
|
If String.IsNullOrWhiteSpace(sDir) Then
|
||||||
@@ -449,12 +485,13 @@ Public Class MySceneHostVM
|
|||||||
.FilterIndex = 1,
|
.FilterIndex = 1,
|
||||||
.InitialDirectory = sDir}
|
.InitialDirectory = sDir}
|
||||||
If Not OpenFileDialog.ShowDialog Then
|
If Not OpenFileDialog.ShowDialog Then
|
||||||
Return
|
Return False
|
||||||
End If
|
End If
|
||||||
Dim sFile As String = String.Empty
|
Dim sFile As String = String.Empty
|
||||||
sFile = OpenFileDialog.FileName
|
sFile = OpenFileDialog.FileName
|
||||||
' importo la nuova geometria
|
' importo la nuova geometria
|
||||||
If MainController.InsertProject(sFile, False) Then
|
Dim bOk As Boolean = MainController.InsertProject(sFile, False)
|
||||||
|
If bOk Then
|
||||||
' sposto le nuove geometrie nel layer rib del pezzo
|
' sposto le nuove geometrie nel layer rib del pezzo
|
||||||
Dim nNewPartId As Integer = EgtGetLastPart()
|
Dim nNewPartId As Integer = EgtGetLastPart()
|
||||||
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
||||||
@@ -483,9 +520,10 @@ Public Class MySceneHostVM
|
|||||||
EgtErase(nNewPartId)
|
EgtErase(nNewPartId)
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
End If
|
End If
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Sub InsertShellNumber()
|
Public Function InsertShellNumber() As Boolean
|
||||||
' Recupero cartella dell'ultimo progetto aperto
|
' Recupero cartella dell'ultimo progetto aperto
|
||||||
Dim sDir As String = MainController.GetCurrFile()
|
Dim sDir As String = MainController.GetCurrFile()
|
||||||
If String.IsNullOrWhiteSpace(sDir) Then
|
If String.IsNullOrWhiteSpace(sDir) Then
|
||||||
@@ -505,12 +543,13 @@ Public Class MySceneHostVM
|
|||||||
.FilterIndex = 1,
|
.FilterIndex = 1,
|
||||||
.InitialDirectory = sDir}
|
.InitialDirectory = sDir}
|
||||||
If Not OpenFileDialog.ShowDialog Then
|
If Not OpenFileDialog.ShowDialog Then
|
||||||
Return
|
Return False
|
||||||
End If
|
End If
|
||||||
Dim sFile As String = String.Empty
|
Dim sFile As String = String.Empty
|
||||||
sFile = OpenFileDialog.FileName
|
sFile = OpenFileDialog.FileName
|
||||||
' importo la nuova geometria
|
' importo la nuova geometria
|
||||||
If MainController.InsertProject(sFile, False) Then
|
Dim bOk As Boolean = MainController.InsertProject(sFile, False)
|
||||||
|
If bOk Then
|
||||||
' sposto le nuove geometrie nel layer ShellNumber del pezzo
|
' sposto le nuove geometrie nel layer ShellNumber del pezzo
|
||||||
Dim nNewPartId As Integer = EgtGetLastPart()
|
Dim nNewPartId As Integer = EgtGetLastPart()
|
||||||
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
||||||
@@ -552,9 +591,10 @@ Public Class MySceneHostVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End If
|
End If
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Sub InsertFilledSolid()
|
Public Function InsertFilledSolid() As Boolean
|
||||||
' Recupero cartella dell'ultimo progetto aperto
|
' Recupero cartella dell'ultimo progetto aperto
|
||||||
Dim sDir As String = MainController.GetCurrFile()
|
Dim sDir As String = MainController.GetCurrFile()
|
||||||
If String.IsNullOrWhiteSpace(sDir) Then
|
If String.IsNullOrWhiteSpace(sDir) Then
|
||||||
@@ -574,12 +614,13 @@ Public Class MySceneHostVM
|
|||||||
.FilterIndex = 1,
|
.FilterIndex = 1,
|
||||||
.InitialDirectory = sDir}
|
.InitialDirectory = sDir}
|
||||||
If Not OpenFileDialog.ShowDialog Then
|
If Not OpenFileDialog.ShowDialog Then
|
||||||
Return
|
Return False
|
||||||
End If
|
End If
|
||||||
Dim sFile As String = String.Empty
|
Dim sFile As String = String.Empty
|
||||||
sFile = OpenFileDialog.FileName
|
sFile = OpenFileDialog.FileName
|
||||||
' importo la nuova geometria
|
' importo la nuova geometria
|
||||||
If MainController.InsertProject(sFile, False) Then
|
Dim bOk As Boolean = MainController.InsertProject(sFile, False)
|
||||||
|
If bOk Then
|
||||||
' sposto le nuove geometrie nel layer ShellNumber del pezzo
|
' sposto le nuove geometrie nel layer ShellNumber del pezzo
|
||||||
Dim nNewPartId As Integer = EgtGetLastPart()
|
Dim nNewPartId As Integer = EgtGetLastPart()
|
||||||
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
Dim nNewLayerId As Integer = EgtGetFirstGroupInGroup(nNewPartId)
|
||||||
@@ -621,21 +662,10 @@ Public Class MySceneHostVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End If
|
End If
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Overrides Sub ImportProject()
|
Public Overrides Function ExportProject() As Boolean
|
||||||
Dim sDir As String = String.Empty
|
|
||||||
GetMainPrivateProfileString(S_MRUIMPORT, K_FILE & "1", "", sDir)
|
|
||||||
If Not String.IsNullOrWhiteSpace(sDir) Then
|
|
||||||
sDir = Path.GetDirectoryName(sDir)
|
|
||||||
End If
|
|
||||||
sDir.TrimEnd("\"c)
|
|
||||||
MainController.ImportProject(sDir)
|
|
||||||
' Imposto stato gestione mouse diretto della scena a nessuno
|
|
||||||
MainScene.SetStatusNull()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public Overrides Sub ExportProject()
|
|
||||||
' Reset controller e scena
|
' Reset controller e scena
|
||||||
MainController.ResetStatus()
|
MainController.ResetStatus()
|
||||||
'Assegnazione nome file con dialogo
|
'Assegnazione nome file con dialogo
|
||||||
@@ -647,18 +677,19 @@ Public Class MySceneHostVM
|
|||||||
.FileName = Path.ChangeExtension(MainController.GetCurrFile(), "").TrimEnd("."c)
|
.FileName = Path.ChangeExtension(MainController.GetCurrFile(), "").TrimEnd("."c)
|
||||||
}
|
}
|
||||||
Dim DialogResult As Boolean? = SaveFileDialog.ShowDialog
|
Dim DialogResult As Boolean? = SaveFileDialog.ShowDialog
|
||||||
If IsNothing(DialogResult) OrElse Not DialogResult Then Return
|
If IsNothing(DialogResult) OrElse Not DialogResult Then Return False
|
||||||
MainController.SetDefaultFilterForExport(EEX_FLT.DEFAULT + EEX_FLT.LEV_TEMP)
|
MainController.SetDefaultFilterForExport(EEX_FLT.DEFAULT + EEX_FLT.LEV_TEMP)
|
||||||
MainController.ExportProject(SaveFileDialog.FileName, False)
|
Return MainController.ExportProject(SaveFileDialog.FileName, False)
|
||||||
End Sub
|
End Function
|
||||||
|
|
||||||
Friend Shadows Sub ExecScript(sFilePath As String)
|
Public Overrides Function ExecScript(sFilePath As String) As Boolean
|
||||||
|
Dim bOk As Boolean = False
|
||||||
If String.IsNullOrEmpty(sFilePath) Then
|
If String.IsNullOrEmpty(sFilePath) Then
|
||||||
Dim sDir As String = String.Empty
|
Dim sDir As String = String.Empty
|
||||||
'GetMainPrivateProfileString(S_GENERAL, K_LASTLUADIR, "", sDir)
|
'GetMainPrivateProfileString(S_GENERAL, K_LASTLUADIR, "", sDir)
|
||||||
MainController.Exec(sDir)
|
bOk = MainController.Exec(sDir)
|
||||||
Else
|
Else
|
||||||
MainController.Exec(sFilePath, False)
|
bOk = MainController.Exec(sFilePath, False)
|
||||||
End If
|
End If
|
||||||
Dim bMachiningMode As Boolean = EgtGetCurrMachGroup() <> GDB_ID.NULL
|
Dim bMachiningMode As Boolean = EgtGetCurrMachGroup() <> GDB_ID.NULL
|
||||||
If Not bMachiningMode And EgtGetCurrLayer() = GDB_ID.NULL Then
|
If Not bMachiningMode And EgtGetCurrLayer() = GDB_ID.NULL Then
|
||||||
@@ -667,7 +698,8 @@ Public Class MySceneHostVM
|
|||||||
EgtResetCurrPartLayer()
|
EgtResetCurrPartLayer()
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
#End Region ' ProjectManager
|
#End Region ' ProjectManager
|
||||||
|
|
||||||
@@ -961,33 +993,15 @@ Public Class MySceneHostVM
|
|||||||
Map.refDispositionPanelVM.OnKeyDown(e.KeyData)
|
Map.refDispositionPanelVM.OnKeyDown(e.KeyData)
|
||||||
Case ModifyModes.REFERENCE
|
Case ModifyModes.REFERENCE
|
||||||
Case ModifyModes.STARTMACH
|
Case ModifyModes.STARTMACH
|
||||||
|
Map.refStartMachPanelVM.OnKeyDown(e.KeyData)
|
||||||
Case ModifyModes.RIBS
|
Case ModifyModes.RIBS
|
||||||
|
Map.refRibPanelVM.OnKeyDown(e.KeyData)
|
||||||
Case ModifyModes.SHELLNUMBER
|
Case ModifyModes.SHELLNUMBER
|
||||||
Map.refShellNumberPanelVM.OnKeyDown(e.KeyData)
|
Map.refShellNumberPanelVM.OnKeyDown(e.KeyData)
|
||||||
Case ModifyModes.AUXSOLIDS
|
Case ModifyModes.AUXSOLIDS
|
||||||
Map.refFilledSolidPanelVM.OnKeyDown(e.KeyData)
|
Map.refFilledSolidPanelVM.OnKeyDown(e.KeyData)
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
'' Se in modalità edit L250
|
|
||||||
'If Map.refMainMenuVM.SelPage = Pages.VIEW AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM) AndAlso Map.refFreeContourManagerVM.bIsActive Then
|
|
||||||
' ' Con DEL eseguo cancellazione delle entità selezionate
|
|
||||||
' If e.KeyData = System.Windows.Forms.Keys.Delete Then
|
|
||||||
' MainController.SetLastInteger(GDB_ID.SEL)
|
|
||||||
' MainController.ExecuteCommand(Controller.CMD.DELETE)
|
|
||||||
' ' Con SPAZIO ripeto l'ultimo comando
|
|
||||||
' ElseIf e.KeyData = System.Windows.Forms.Keys.Space Then
|
|
||||||
' MainController.RepeatLastCommand()
|
|
||||||
' ' Con 'A' e in modalità continuazione, forzo il passaggio ad arco
|
|
||||||
' ElseIf e.KeyData = System.Windows.Forms.Keys.A And MainController.GetContinue() Then
|
|
||||||
' MainController.ContinueArcPDP()
|
|
||||||
' ' Con 'L' e in modalità continuazione, forzo il passaggio a retta
|
|
||||||
' ElseIf e.KeyData = System.Windows.Forms.Keys.L And MainController.GetContinue() Then
|
|
||||||
' MainController.ContinueLine2P()
|
|
||||||
' ' Con 'V' cambio lo stato del check
|
|
||||||
' ElseIf e.KeyData = System.Windows.Forms.Keys.V Then
|
|
||||||
' Map.refFreeContourInputVM.ChangeInputBoxCheck()
|
|
||||||
' End If
|
|
||||||
'End If
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub OnCloseGetDist(sender As System.Object)
|
Private Sub OnCloseGetDist(sender As System.Object)
|
||||||
@@ -1013,6 +1027,7 @@ Public Class MySceneHostVM
|
|||||||
Map.refTopPanelVM.PartList.Clear()
|
Map.refTopPanelVM.PartList.Clear()
|
||||||
Map.refTopPanelVM.SetSelModifyMode(ModifyModes.NULL)
|
Map.refTopPanelVM.SetSelModifyMode(ModifyModes.NULL)
|
||||||
Map.refSliceManagerVM.UpdateTimeAndMass()
|
Map.refSliceManagerVM.UpdateTimeAndMass()
|
||||||
|
Map.refSliceManagerVM.UpdateDimensions()
|
||||||
Map.refSliderManagerVM.RefreshSlider(0, 0)
|
Map.refSliderManagerVM.RefreshSlider(0, 0)
|
||||||
Map.refSliderManagerVM.SetLayerIndexToMax()
|
Map.refSliderManagerVM.SetLayerIndexToMax()
|
||||||
|
|
||||||
@@ -1119,6 +1134,7 @@ Public Class MySceneHostVM
|
|||||||
|
|
||||||
' aggiorno tempo e massa
|
' aggiorno tempo e massa
|
||||||
Map.refSliceManagerVM.UpdateTimeAndMass()
|
Map.refSliceManagerVM.UpdateTimeAndMass()
|
||||||
|
Map.refSliceManagerVM.UpdateDimensions()
|
||||||
|
|
||||||
Map.refSliderManagerVM.SetLayerIndexToMax()
|
Map.refSliderManagerVM.SetLayerIndexToMax()
|
||||||
|
|
||||||
@@ -1462,7 +1478,10 @@ Public Class MySceneHostVM
|
|||||||
Friend Sub StartMach_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
Friend Sub StartMach_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
||||||
' Se eseguito drag
|
' Se eseguito drag
|
||||||
If Not m_bDragToStart Then
|
If Not m_bDragToStart Then
|
||||||
|
' se in scelta piano da oggetto resetto eventuale selezione
|
||||||
|
If Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
EgtDeselectAll()
|
||||||
|
End If
|
||||||
' Se selezione da eseguire
|
' Se selezione da eseguire
|
||||||
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
||||||
If Map.refStartMachPanelVM.bCPlaneObj_IsActive Then
|
If Map.refStartMachPanelVM.bCPlaneObj_IsActive Then
|
||||||
@@ -1543,7 +1562,10 @@ Public Class MySceneHostVM
|
|||||||
Friend Sub Rib_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
Friend Sub Rib_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
||||||
' Se eseguito drag
|
' Se eseguito drag
|
||||||
If Not m_bDragToStart Then
|
If Not m_bDragToStart Then
|
||||||
|
' se in scelta piano da oggetto resetto eventuale selezione
|
||||||
|
If Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
EgtDeselectAll()
|
||||||
|
End If
|
||||||
' Se selezione da eseguire
|
' Se selezione da eseguire
|
||||||
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
||||||
If Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
If Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
||||||
@@ -1625,7 +1647,10 @@ Public Class MySceneHostVM
|
|||||||
Friend Sub ShellNumber_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
Friend Sub ShellNumber_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
||||||
' Se eseguito drag
|
' Se eseguito drag
|
||||||
If Not m_bDragToStart Then
|
If Not m_bDragToStart Then
|
||||||
|
' se in scelta piano da oggetto resetto eventuale selezione
|
||||||
|
If Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
EgtDeselectAll()
|
||||||
|
End If
|
||||||
' Se selezione da eseguire
|
' Se selezione da eseguire
|
||||||
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
||||||
If Map.refShellNumberPanelVM.bCPlaneObj_IsActive Then
|
If Map.refShellNumberPanelVM.bCPlaneObj_IsActive Then
|
||||||
@@ -1707,7 +1732,10 @@ Public Class MySceneHostVM
|
|||||||
Friend Sub FilledSolid_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
Friend Sub FilledSolid_OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
|
||||||
' Se eseguito drag
|
' Se eseguito drag
|
||||||
If Not m_bDragToStart Then
|
If Not m_bDragToStart Then
|
||||||
|
' se in scelta piano da oggetto resetto eventuale selezione
|
||||||
|
If Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
EgtDeselectAll()
|
||||||
|
End If
|
||||||
' Se selezione da eseguire
|
' Se selezione da eseguire
|
||||||
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
ElseIf m_nIdToSel <> GDB_ID.NULL Then
|
||||||
If Map.refFilledSolidPanelVM.bCPlaneObj_IsActive Then
|
If Map.refFilledSolidPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="SecondaryWindowV"
|
<EgtWPFLib5:EgtMainWindow x:Class="SecondaryWindowV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
xmlns:PrintApp="clr-namespace:Icarus"
|
xmlns:PrintApp="clr-namespace:Icarus"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Title="{Binding sTitle}"
|
||||||
Title="{Binding sTitle}" Icon="/Resources/Icarus.ico"
|
ProjectName="{Binding sProjectName}"
|
||||||
WindowStyle="None" ResizeMode="NoResize"
|
ProjectPath="{Binding sProjectPath}"
|
||||||
ShowInTaskbar="False"
|
Icon="/Resources/Icarus.ico"
|
||||||
AllowsTransparency="True"
|
CloseCommand="{Binding CloseApplicationCommand, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Background="Transparent"
|
ShowInTaskbar="False"
|
||||||
AboutBoxCommand="{Binding AboutBoxCommand}"
|
AllowsTransparency="True"
|
||||||
CloseCommand="{Binding CloseApplicationCommand,
|
Background="Transparent"
|
||||||
Mode=OneWay,
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtMainWindow}}">
|
||||||
UpdateSourceTrigger=PropertyChanged}"
|
<EgtWPFLib5:EgtMainWindow.TitlePanel>
|
||||||
>
|
|
||||||
<EgtWPFLib5:EgtCustomWindow.TitlePanel>
|
|
||||||
|
|
||||||
<PrintApp:ProjManagerV DataContext="{StaticResource ProjManagerVM}"/>
|
<PrintApp:ProjManagerV DataContext="{StaticResource ProjManagerVM}"/>
|
||||||
|
</EgtWPFLib5:EgtMainWindow.TitlePanel>
|
||||||
|
<EgtWPFLib5:EgtMainWindow.OpacityMask>
|
||||||
|
<SolidColorBrush Color="White" Opacity="{Binding Window_Opacity}"/>
|
||||||
|
</EgtWPFLib5:EgtMainWindow.OpacityMask>
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow.TitlePanel>
|
|
||||||
|
|
||||||
<!--Pannello principale -->
|
<!--Pannello principale -->
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
@@ -26,7 +26,5 @@
|
|||||||
<PrintApp:ProjectV DataContext="{StaticResource ProjectVM}"/>
|
<PrintApp:ProjectV DataContext="{StaticResource ProjectVM}"/>
|
||||||
|
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!--<PrintApp:SceneHostV/>-->
|
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ Public Class SecondaryWindowV
|
|||||||
AddHandler Me.StateChanged, AddressOf SecondaryWindowV_StateChanged
|
AddHandler Me.StateChanged, AddressOf SecondaryWindowV_StateChanged
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub SecondaryWindowV_ContentRendered(sender As Object, e As EventArgs)
|
|
||||||
m_SecondaryWindowVM.ContentRendered()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub SecondaryWindowV_Loaded(sender As Object, e As RoutedEventArgs)
|
Private Sub SecondaryWindowV_Loaded(sender As Object, e As RoutedEventArgs)
|
||||||
' Carico e imposto posizione finestra
|
' Carico e imposto posizione finestra
|
||||||
WinPosFromIniToWindow(S_GENERAL, K_WINPLACE, Me)
|
WinPosFromIniToWindow(S_GENERAL, K_WINPLACE, Me)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SecondaryWindowV_ContentRendered(sender As Object, e As EventArgs)
|
||||||
|
m_SecondaryWindowVM.ContentRendered()
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub SecondaryWindowV_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs)
|
Private Sub SecondaryWindowV_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs)
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
||||||
e.Cancel = True
|
e.Cancel = True
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
|
Imports System.IO
|
||||||
Imports System.Windows.Threading
|
Imports System.Windows.Threading
|
||||||
|
|
||||||
Public Class SecondaryWindowVM
|
Public Class SecondaryWindowVM
|
||||||
@@ -8,16 +9,42 @@ Public Class SecondaryWindowVM
|
|||||||
Private m_SplashScreen_Timer As New DispatcherTimer
|
Private m_SplashScreen_Timer As New DispatcherTimer
|
||||||
Private m_WaitAfterRender As Integer = 0
|
Private m_WaitAfterRender As Integer = 0
|
||||||
|
|
||||||
' Titolo
|
Private m_Window_Opacity As Double = 0.2
|
||||||
Private m_sTitle As String
|
Public ReadOnly Property Window_Opacity As Double
|
||||||
Public Property sTitle As String
|
|
||||||
Get
|
Get
|
||||||
Return m_sTitle
|
Return m_Window_Opacity
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' Titolo
|
||||||
|
Public ReadOnly Property sTitle As String
|
||||||
|
Get
|
||||||
|
Return "Icarus"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property sProjectName As String
|
||||||
|
Get
|
||||||
|
Dim sFilePath As String = ""
|
||||||
|
EgtGetCurrFilePath(sFilePath)
|
||||||
|
If String.IsNullOrEmpty(sFilePath) Then
|
||||||
|
sFilePath = EgtMsg(MSG_TOPCOMMANDBAR + 1) & Map.refMainWindowVM.MainWindowM.nInstance.ToString()
|
||||||
|
Return sFilePath
|
||||||
|
Else
|
||||||
|
Return Path.GetFileNameWithoutExtension(sFilePath) & If(EgtGetModified(), "*", "")
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property sProjectPath As String
|
||||||
|
Get
|
||||||
|
Dim sFilePath As String = ""
|
||||||
|
EgtGetCurrFilePath(sFilePath)
|
||||||
|
If String.IsNullOrEmpty(sFilePath) Then
|
||||||
|
sFilePath = EgtMsg(MSG_TOPCOMMANDBAR + 1) & Map.refMainWindowVM.MainWindowM.nInstance.ToString()
|
||||||
|
End If
|
||||||
|
Return sFilePath
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
|
||||||
m_sTitle = value
|
|
||||||
NotifyPropertyChanged(NameOf(sTitle))
|
|
||||||
End Set
|
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_Visibility As Boolean
|
Private m_Visibility As Boolean
|
||||||
@@ -37,11 +64,13 @@ Public Class SecondaryWindowVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub SetTitle(sTitle As String)
|
Friend Sub SetTitle()
|
||||||
m_sTitle = sTitle
|
|
||||||
NotifyPropertyChanged(NameOf(sTitle))
|
NotifyPropertyChanged(NameOf(sTitle))
|
||||||
|
NotifyPropertyChanged(NameOf(sProjectName))
|
||||||
|
NotifyPropertyChanged(NameOf(sProjectPath))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
' definizione comandi
|
' definizione comandi
|
||||||
Private m_cmdAboutBox As ICommand
|
Private m_cmdAboutBox As ICommand
|
||||||
Private m_cmdCloseApplication As ICommand
|
Private m_cmdCloseApplication As ICommand
|
||||||
@@ -84,8 +113,11 @@ Public Class SecondaryWindowVM
|
|||||||
|
|
||||||
Private Sub SplashScreenTimer_Tick()
|
Private Sub SplashScreenTimer_Tick()
|
||||||
If m_WaitAfterRender > 1 Then
|
If m_WaitAfterRender > 1 Then
|
||||||
|
m_Window_Opacity = 1
|
||||||
|
NotifyPropertyChanged(NameOf(Window_Opacity))
|
||||||
' chiudo SplashScreen
|
' chiudo SplashScreen
|
||||||
Map.refSplashScreen.Close()
|
Map.refSplashScreen.Close()
|
||||||
|
m_SplashScreen_Timer.Stop()
|
||||||
ElseIf m_WaitAfterRender > 0 Then
|
ElseIf m_WaitAfterRender > 0 Then
|
||||||
m_WaitAfterRender += 1
|
m_WaitAfterRender += 1
|
||||||
End If
|
End If
|
||||||
@@ -98,7 +130,10 @@ Public Class SecondaryWindowVM
|
|||||||
Dim sFile As String = Environment.GetCommandLineArgs(1)
|
Dim sFile As String = Environment.GetCommandLineArgs(1)
|
||||||
Dim sExt As String = IO.Path.GetExtension(sFile).ToLower()
|
Dim sExt As String = IO.Path.GetExtension(sFile).ToLower()
|
||||||
If String.IsNullOrWhiteSpace(sFile) OrElse String.IsNullOrWhiteSpace(sExt) Then Return False
|
If String.IsNullOrWhiteSpace(sFile) OrElse String.IsNullOrWhiteSpace(sExt) Then Return False
|
||||||
Return OpenStdFile(sFile)
|
Dim bOk As Boolean = OpenStdFile(sFile)
|
||||||
|
m_Window_Opacity = 1
|
||||||
|
NotifyPropertyChanged(NameOf(Window_Opacity))
|
||||||
|
Return bOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Friend Function OpenStdFile(sFile As String) As Boolean
|
Friend Function OpenStdFile(sFile As String) As Boolean
|
||||||
@@ -106,8 +141,6 @@ Public Class SecondaryWindowVM
|
|||||||
Select Case nFileType
|
Select Case nFileType
|
||||||
Case FT.NGE
|
Case FT.NGE
|
||||||
Return Map.refProjManagerVM.OpenProject(sFile)
|
Return Map.refProjManagerVM.OpenProject(sFile)
|
||||||
'Case FT.DXF, FT.STL, FT._3MF, FT.OBJ, FT.CNC, FT.CSF, FT.BTL, FT.BTLX, FT.IMG, FT.PNT, FT.IGES, FT.STEP_, FT.ACIS, FT.PARASOLID, FT.JT, FT.VRML, FT.C3D
|
|
||||||
' Return m_Controller.ImportProject(sFile, False)
|
|
||||||
End Select
|
End Select
|
||||||
Return False
|
Return False
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_SelShellNumber
|
Return m_SelShellNumber
|
||||||
End Get
|
End Get
|
||||||
Set(value As ShellNumberEntity)
|
Set(value As ShellNumberEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refShellNumberPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelShellNumber))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelShellNumber = value
|
m_SelShellNumber = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -218,7 +222,7 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_bAdd_IsChecked
|
Return m_bAdd_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bAdd_IsChecked = value
|
m_bAdd_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
@@ -240,7 +244,7 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_bEdit_IsChecked
|
Return m_bEdit_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelShellNumber) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelShellNumber) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bEdit_IsChecked = value
|
m_bEdit_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -264,7 +268,7 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_bGrid_IsChecked
|
Return m_bGrid_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bGrid_IsChecked = value
|
m_bGrid_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -292,7 +296,7 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_bMove_IsChecked
|
Return m_bMove_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelShellNumber) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelShellNumber) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bMove_IsChecked = value
|
m_bMove_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -316,7 +320,7 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_bRotate_IsChecked
|
Return m_bRotate_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelShellNumber) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelShellNumber) AndAlso Not m_bMachParam_IsChecked AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bRotate_IsChecked = value
|
m_bRotate_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -340,7 +344,7 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_bMachParam_IsChecked
|
Return m_bMachParam_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelShellNumber) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not IsNothing(Map.refTopPanelVM.SelMachining) AndAlso value Then
|
If Not IsNothing(m_SelShellNumber) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive AndAlso Not IsNothing(Map.refTopPanelVM.SelMachining) AndAlso value Then
|
||||||
m_bMachParam_IsChecked = True
|
m_bMachParam_IsChecked = True
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
@@ -354,6 +358,8 @@ Public Class ShellNumberPanelVM
|
|||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.SHELLNUMBERPARAM)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.SHELLNUMBERPARAM)
|
||||||
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
||||||
|
' disattivo interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Else
|
Else
|
||||||
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
||||||
End If
|
End If
|
||||||
@@ -363,6 +369,8 @@ Public Class ShellNumberPanelVM
|
|||||||
m_bMachParam_IsChecked = False
|
m_bMachParam_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
||||||
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
||||||
|
' riattivo interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Compo_Visibility As Visibility
|
Public ReadOnly Property Compo_Visibility As Visibility
|
||||||
@@ -371,11 +379,17 @@ Public Class ShellNumberPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_ShellNumberList_IsEnabled As Boolean = False
|
||||||
Public ReadOnly Property ShellNumberList_IsEnabled As Boolean
|
Public ReadOnly Property ShellNumberList_IsEnabled As Boolean
|
||||||
Get
|
Get
|
||||||
Return Not m_bMachParam_IsChecked
|
Return If(m_ShellNumberList.Count > 0, m_ShellNumberList_IsEnabled, False)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
Friend Sub SetShellNumberListIsEnabled(bValue As Boolean)
|
||||||
|
m_ShellNumberList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -393,6 +407,8 @@ Public Class ShellNumberPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Import_ToolTip As String
|
Public ReadOnly Property Import_ToolTip As String
|
||||||
@@ -522,7 +538,6 @@ Public Class ShellNumberPanelVM
|
|||||||
Private m_cmdCPlaneObj As ICommand
|
Private m_cmdCPlaneObj As ICommand
|
||||||
Private m_cmdDragMove As ICommand
|
Private m_cmdDragMove As ICommand
|
||||||
Private m_cmdDragRotate As ICommand
|
Private m_cmdDragRotate As ICommand
|
||||||
Private m_cmdMachParam As ICommand
|
|
||||||
|
|
||||||
#End Region ' FIELDS & PROPERTIES
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
@@ -577,6 +592,8 @@ Public Class ShellNumberPanelVM
|
|||||||
SelShellNumber = m_ShellNumberList(0)
|
SelShellNumber = m_ShellNumberList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelShellNumber))
|
NotifyPropertyChanged(NameOf(SelShellNumber))
|
||||||
End If
|
End If
|
||||||
|
' abilito lista shell number
|
||||||
|
SetShellNumberListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -612,8 +629,13 @@ Public Class ShellNumberPanelVM
|
|||||||
EgtSelectObj(m_SelShellNumber.nCurveId)
|
EgtSelectObj(m_SelShellNumber.nCurveId)
|
||||||
Case ShellNumberSelectionTypes.EXTRUSION
|
Case ShellNumberSelectionTypes.EXTRUSION
|
||||||
' creo layer per estrusione
|
' creo layer per estrusione
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId = GDB_ID.NULL Then
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
Else
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
EgtSelectObj(m_SelShellNumber.nCurveId)
|
EgtSelectObj(m_SelShellNumber.nCurveId)
|
||||||
Case ShellNumberSelectionTypes.BOTH
|
Case ShellNumberSelectionTypes.BOTH
|
||||||
@@ -621,6 +643,8 @@ Public Class ShellNumberPanelVM
|
|||||||
EgtSelectObj(m_SelShellNumber.nExtrusionId)
|
EgtSelectObj(m_SelShellNumber.nExtrusionId)
|
||||||
End Select
|
End Select
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -630,6 +654,7 @@ Public Class ShellNumberPanelVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
Select Case command
|
Select Case command
|
||||||
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
||||||
' leggo altezza estrusione
|
' leggo altezza estrusione
|
||||||
@@ -669,6 +694,10 @@ Public Class ShellNumberPanelVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End Select
|
End Select
|
||||||
|
' se non ho creato percorso riabilito interfaccia
|
||||||
|
If Not m_bIsCreatingPath Then
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
||||||
' se finita creazione estrusione
|
' se finita creazione estrusione
|
||||||
If m_bIsCreatingExtrusion Then
|
If m_bIsCreatingExtrusion Then
|
||||||
@@ -711,6 +740,7 @@ Public Class ShellNumberPanelVM
|
|||||||
If NewGeomType = GDB_TY.CRV_COMPO Then
|
If NewGeomType = GDB_TY.CRV_COMPO Then
|
||||||
If Not EgtCurveIsClosed(nNewEntityId) Then
|
If Not EgtCurveIsClosed(nNewEntityId) Then
|
||||||
EgtCloseCurveCompo(nNewEntityId)
|
EgtCloseCurveCompo(nNewEntityId)
|
||||||
|
m_bEscOnLine2P = True
|
||||||
End If
|
End If
|
||||||
EgtSetName(nNewEntityId, RIB_CURVE)
|
EgtSetName(nNewEntityId, RIB_CURVE)
|
||||||
' resetto colore entita'
|
' resetto colore entita'
|
||||||
@@ -723,9 +753,15 @@ Public Class ShellNumberPanelVM
|
|||||||
' lo seleziono
|
' lo seleziono
|
||||||
SelShellNumber = NewEntity
|
SelShellNumber = NewEntity
|
||||||
NotifyPropertyChanged(NameOf(SelShellNumber))
|
NotifyPropertyChanged(NameOf(SelShellNumber))
|
||||||
' creo layer per estrusione
|
' verifico se esiste gia' layer estrusione e lo svuoto
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId <> GDB_ID.NULL Then
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
Else
|
||||||
|
' altrimenti lo creo
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
' seleziono percorso da estrudere
|
' seleziono percorso da estrudere
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
@@ -757,6 +793,13 @@ Public Class ShellNumberPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
If m_bIsCreatingExtrusion Then m_bIsCreatingExtrusion = False
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -792,6 +835,19 @@ Public Class ShellNumberPanelVM
|
|||||||
Return nShellNumberIndex + 1
|
Return nShellNumberIndex + 1
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetShellNumberListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -814,8 +870,10 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Import(ByVal param As Object)
|
Public Sub Import(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.InsertShellNumber()
|
Map.refSceneHostVM.InsertShellNumber()
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Import
|
#End Region ' Import
|
||||||
@@ -838,7 +896,8 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
||||||
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
||||||
@@ -863,7 +922,7 @@ Public Class ShellNumberPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Delete()
|
Public Sub Delete()
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If IsNothing(SelShellNumber) Then Return
|
If IsNothing(SelShellNumber) Then Return
|
||||||
Dim bOk As Boolean = False
|
Dim bOk As Boolean = False
|
||||||
Select Case m_SelShellNumber.Type
|
Select Case m_SelShellNumber.Type
|
||||||
@@ -887,6 +946,7 @@ Public Class ShellNumberPanelVM
|
|||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelShellNumber))
|
NotifyPropertyChanged(NameOf(SelShellNumber))
|
||||||
End If
|
End If
|
||||||
|
SetShellNumberListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
@@ -909,7 +969,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub ModifyCurve(ByVal param As Object)
|
Public Sub ModifyCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(ShellNumberSelectionTypes.CURVE)
|
InitCommand(ShellNumberSelectionTypes.CURVE)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -934,7 +994,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub AddPointCurve(ByVal param As Object)
|
Public Sub AddPointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(ShellNumberSelectionTypes.CURVE)
|
InitCommand(ShellNumberSelectionTypes.CURVE)
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
||||||
@@ -963,7 +1023,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub RemovePointCurve(ByVal param As Object)
|
Public Sub RemovePointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(ShellNumberSelectionTypes.CURVE)
|
InitCommand(ShellNumberSelectionTypes.CURVE)
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
||||||
@@ -992,7 +1052,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the Extrude. This method is invoked by the ExtrudeCommand.
|
''' Execute the Extrude. This method is invoked by the ExtrudeCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Extrude(ByVal param As Object)
|
Public Sub Extrude(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(ShellNumberSelectionTypes.EXTRUSION)
|
InitCommand(ShellNumberSelectionTypes.EXTRUSION)
|
||||||
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
||||||
m_bIsCreatingExtrusion = True
|
m_bIsCreatingExtrusion = True
|
||||||
@@ -1020,7 +1080,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneTop(ByVal param As Object)
|
Public Sub CPlaneTop(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1045,7 +1105,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneFront(ByVal param As Object)
|
Public Sub CPlaneFront(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1070,7 +1130,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneRight(ByVal param As Object)
|
Public Sub CPlaneRight(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1095,7 +1155,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBack(ByVal param As Object)
|
Public Sub CPlaneBack(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1120,7 +1180,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneLeft(ByVal param As Object)
|
Public Sub CPlaneLeft(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1145,7 +1205,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBottom(ByVal param As Object)
|
Public Sub CPlaneBottom(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1170,7 +1230,8 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1194,7 +1255,8 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1218,7 +1280,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneRotate. This method is invoked by the CPlaneRotateCommand.
|
''' Execute the CPlaneRotate. This method is invoked by the CPlaneRotateCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneRotate(ByVal param As Object)
|
Public Sub CPlaneRotate(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) <> ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ROTATE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ROTATE)
|
||||||
Else
|
Else
|
||||||
@@ -1246,7 +1308,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlane3P. This method is invoked by the CPlane3PCommand.
|
''' Execute the CPlane3P. This method is invoked by the CPlane3PCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlane3P(ByVal param As Object)
|
Public Sub CPlane3P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_3P)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_3P)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1270,7 +1332,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlanePerpObj. This method is invoked by the CPlanePerpObjCommand.
|
''' Execute the CPlanePerpObj. This method is invoked by the CPlanePerpObjCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlanePerpObj(ByVal param As Object)
|
Public Sub CPlanePerpObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_PERPCURVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_PERPCURVE)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1310,7 +1372,8 @@ Public Class ShellNumberPanelVM
|
|||||||
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
@@ -1320,7 +1383,7 @@ Public Class ShellNumberPanelVM
|
|||||||
End While
|
End While
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
m_bCPlaneObj_IsActive = True
|
m_bCPlaneObj_IsActive = True
|
||||||
' Map.refControllerInputPanelVM.PrepareInputBox("Grid from Selection", "Select the face of the object where to place the grid", "", False, False)
|
Map.refControllerInputPanelVM.ShowMessage("Grid from Selection", "Select the face of the object where to place the grid")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CPlaneObj
|
#End Region ' CPlaneObj
|
||||||
@@ -1337,7 +1400,7 @@ Public Class ShellNumberPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DragMove()
|
Public Sub DragMove()
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(ShellNumberSelectionTypes.BOTH)
|
InitCommand(ShellNumberSelectionTypes.BOTH)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1356,41 +1419,13 @@ Public Class ShellNumberPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DragRotate()
|
Public Sub DragRotate()
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand(ShellNumberSelectionTypes.BOTH)
|
InitCommand(ShellNumberSelectionTypes.BOTH)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.ROTATE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.ROTATE)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' DragRotate
|
#End Region ' DragRotate
|
||||||
|
|
||||||
#Region "MachParam"
|
|
||||||
|
|
||||||
Public ReadOnly Property MachParam_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdMachParam Is Nothing Then
|
|
||||||
m_cmdMachParam = New Command(AddressOf MachParam)
|
|
||||||
End If
|
|
||||||
Return m_cmdMachParam
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub MachParam()
|
|
||||||
If IsNothing(Map.refTopPanelVM.SelMachining) Then Return
|
|
||||||
m_bAdd_IsChecked = False
|
|
||||||
m_bEdit_IsChecked = False
|
|
||||||
m_bGrid_IsChecked = False
|
|
||||||
m_bMove_IsChecked = False
|
|
||||||
m_bRotate_IsChecked = False
|
|
||||||
NotifyPropertyChanged(NameOf(bAdd_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bEdit_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bGrid_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bMove_IsChecked))
|
|
||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.SHELLNUMBERPARAM)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' MachParam
|
|
||||||
|
|
||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ Public Class ShellNumberParamPanelVM
|
|||||||
|
|
||||||
m_Type = Cathegories.SHELL_NUMBER
|
m_Type = Cathegories.SHELL_NUMBER
|
||||||
m_sName = "Reduce Shell Number"
|
m_sName = "Reduce Shell Number"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRDIFFERENCE, nShellNumberId, nPartId),
|
m_MachiningParamList = New List(Of MachiningParam)({New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRDIFFERENCE, nShellNumberId, nPartId, Me),
|
||||||
New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRCOASTING, nShellNumberId, nPartId),
|
New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRCOASTING, nShellNumberId, nPartId, Me),
|
||||||
New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPE, nShellNumberId, nPartId),
|
New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPE, nShellNumberId, nPartId, Me),
|
||||||
New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nShellNumberId, nPartId)})
|
New ShellNumberNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nShellNumberId, nPartId, Me)})
|
||||||
NotifyPropertyChanged(NameOf(MachiningParamList))
|
NotifyPropertyChanged(NameOf(MachiningParamList))
|
||||||
NotifyPropertyChanged(NameOf(sName))
|
NotifyPropertyChanged(NameOf(sName))
|
||||||
End Sub
|
End Sub
|
||||||
@@ -164,8 +164,8 @@ Public Class ShellNumberNumericMachiningParam
|
|||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdResetParam As ICommand
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
Sub New(Type As Params, nShellNumberId As Integer, nPartId As Integer)
|
Sub New(Type As Params, nShellNumberId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
MyBase.New(Type)
|
MyBase.New(Type, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.SHELLNBRDIFFERENCE
|
Case Params.SHELLNBRDIFFERENCE
|
||||||
|
|||||||
@@ -2,146 +2,154 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Width="310"
|
xmlns:PrintApp="clr-namespace:Icarus"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<Grid.Resources>
|
<Grid.Resources>
|
||||||
<SolidColorBrush x:Key="SliderThumb.Track.Background" Color="{StaticResource Icarus_Blue_Color}"/>
|
<SolidColorBrush x:Key="SliderThumb.Track.Background" Color="{StaticResource Icarus_Blue_Color}"/>
|
||||||
<SolidColorBrush x:Key="SliderThumb.Track.Border" Color="{StaticResource Icarus_Blue_Color}"/>
|
<SolidColorBrush x:Key="SliderThumb.Track.Border" Color="{StaticResource Icarus_Blue_Color}"/>
|
||||||
</Grid.Resources>
|
</Grid.Resources>
|
||||||
<Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<RowDefinition Height="1*"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Border Margin="0,0,0,2.5"
|
<PrintApp:MachineViewPanelV DataContext="{StaticResource MachineViewPanelVM}"
|
||||||
Style="{StaticResource Title_Border}">
|
Margin="0,0,5,0"/>
|
||||||
<TextBlock Text="SIMULATION"
|
<Grid Grid.Column="1"
|
||||||
Style="{StaticResource Title_TextBlock}"/>
|
Width="310">
|
||||||
</Border>
|
<Grid.RowDefinitions>
|
||||||
<Border Grid.Row="1"
|
<RowDefinition Height="Auto"/>
|
||||||
Margin="0,2.5,0,0"
|
<RowDefinition Height="1*"/>
|
||||||
Style="{StaticResource BottomGrayRow_Border}">
|
</Grid.RowDefinitions>
|
||||||
<Grid>
|
<Border Margin="0,0,0,2.5"
|
||||||
<Grid.RowDefinitions>
|
Style="{StaticResource Title_Border}">
|
||||||
<RowDefinition Height="Auto"/>
|
<TextBlock Text="SIMULATION"
|
||||||
<RowDefinition Height="Auto"/>
|
Style="{StaticResource Title_TextBlock}"/>
|
||||||
<RowDefinition Height="Auto"/>
|
</Border>
|
||||||
</Grid.RowDefinitions>
|
<Border Grid.Row="1"
|
||||||
|
Margin="0,2.5,0,0"
|
||||||
|
Style="{StaticResource BottomGrayRow_Border}">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<StackPanel DataContext="{Binding MySimul}"
|
<StackPanel DataContext="{Binding MySimul}"
|
||||||
Margin="2.5">
|
Margin="2.5">
|
||||||
<UniformGrid Columns="3"
|
<UniformGrid Columns="3"
|
||||||
Margin="0,2.5,0,2.5">
|
Margin="0,2.5,0,2.5">
|
||||||
<Button Grid.Column="0"
|
<Button Grid.Column="0"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Command="{Binding StepCommand}"
|
Command="{Binding StepCommand}"
|
||||||
ToolTip="{Binding OneStepToolTip}"
|
ToolTip="{Binding OneStepToolTip}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource SimulationPanel_Button}">
|
Style="{StaticResource SimulationPanel_Button}">
|
||||||
<Image Source="/Resources/SimulationPanel/PlayStep.png"
|
<Image Source="/Resources/SimulationPanel/PlayStep.png"
|
||||||
Style="{StaticResource SimulationButton_Image}"/>
|
Style="{StaticResource SimulationButton_Image}"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Grid.Column="1"
|
<Button Grid.Column="1"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Command="{Binding PlayPauseCommand}"
|
Command="{Binding PlayPauseCommand}"
|
||||||
ToolTip="{Binding PlayPauseToolTip}"
|
ToolTip="{Binding PlayPauseToolTip}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource SimulationPanel_Button}">
|
Style="{StaticResource SimulationPanel_Button}">
|
||||||
<Image Source="{Binding PlayPauseImage}"
|
<Image Source="{Binding PlayPauseImage}"
|
||||||
Style="{StaticResource SimulationButton_Image}"/>
|
Style="{StaticResource SimulationButton_Image}"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Grid.Column="2" Grid.Row="3"
|
<Button Grid.Column="2" Grid.Row="3"
|
||||||
Command="{Binding StopCommand}"
|
Command="{Binding StopCommand}"
|
||||||
ToolTip="{Binding StopHomeToolTip}"
|
ToolTip="{Binding StopHomeToolTip}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource SimulationPanel_Button}">
|
Style="{StaticResource SimulationPanel_Button}">
|
||||||
<Image Source="/Resources/SimulationPanel/Stop.png"
|
<Image Source="/Resources/SimulationPanel/Stop.png"
|
||||||
Style="{StaticResource SimulationButton_Image}"/>
|
Style="{StaticResource SimulationButton_Image}"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
<TextBlock Text="{Binding StatusMsg}"
|
<TextBlock Text="{Binding StatusMsg}"
|
||||||
TextAlignment="Center"
|
TextAlignment="Center"
|
||||||
Margin="2.5"
|
|
||||||
Style="{StaticResource Simulation_TextBlock}"/>
|
|
||||||
<Slider Name="SpeedSlider"
|
|
||||||
Foreground="{StaticResource Icarus_Gray}"
|
|
||||||
Value="{Binding SliderValue}"
|
|
||||||
Minimum="1"
|
|
||||||
Maximum="100"
|
|
||||||
TickPlacement="TopLeft"
|
|
||||||
TickFrequency="5"
|
|
||||||
Margin="2.5"
|
|
||||||
Style="{StaticResource LayerIndex_Slider}"/>
|
|
||||||
<Grid Margin="2.5">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Border Style="{StaticResource SimulPanel_KeyValue_Border}">
|
|
||||||
<TextBlock Text="{Binding TName}"
|
|
||||||
Margin="2.5,2.5,2.5,2.5"
|
|
||||||
Style="{StaticResource Simulation_TextBlock}"/>
|
|
||||||
</Border>
|
|
||||||
<Border Grid.Column="1"
|
|
||||||
Style="{StaticResource SimulPanel_KeyValue_Border}">
|
|
||||||
<TextBlock Text="{Binding SValue}"
|
|
||||||
Margin="2.5,2.5,2.5,2.5"
|
|
||||||
Style="{StaticResource Simulation_TextBlock}"/>
|
|
||||||
</Border>
|
|
||||||
<Border Grid.Row="1"
|
|
||||||
Style="{StaticResource SimulPanel_KeyValue_Border}">
|
|
||||||
<TextBlock Text="{Binding GCode}"
|
|
||||||
Margin="2.5,2.5,2.5,2.5"
|
|
||||||
Style="{StaticResource Simulation_TextBlock}"/>
|
|
||||||
</Border>
|
|
||||||
<Border Grid.Column="1"
|
|
||||||
Grid.Row="1"
|
|
||||||
Style="{StaticResource SimulPanel_KeyValue_Border}">
|
|
||||||
<TextBlock Text="{Binding FValue}"
|
|
||||||
Margin="2.5,2.5,2.5,2.5"
|
|
||||||
Style="{StaticResource Simulation_TextBlock}"/>
|
|
||||||
</Border>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
<ItemsControl ItemsSource="{Binding MachineAxisList}"
|
|
||||||
Margin="2.5"
|
Margin="2.5"
|
||||||
BorderThickness="0"
|
Style="{StaticResource Simulation_TextBlock}"/>
|
||||||
Padding="0">
|
<Slider Name="SpeedSlider"
|
||||||
<ItemsControl.ItemTemplate>
|
Foreground="{StaticResource Icarus_Gray}"
|
||||||
<DataTemplate>
|
Value="{Binding SliderValue}"
|
||||||
<Border Style="{StaticResource SimulPanel_KeyValue_Border}"
|
Minimum="1"
|
||||||
Margin="0,1,0,1">
|
Maximum="100"
|
||||||
<Grid>
|
TickPlacement="TopLeft"
|
||||||
<Grid.ColumnDefinitions>
|
TickFrequency="5"
|
||||||
<ColumnDefinition Width="1*"/>
|
Margin="2.5"
|
||||||
<ColumnDefinition Width="1*"/>
|
Style="{StaticResource LayerIndex_Slider}"/>
|
||||||
</Grid.ColumnDefinitions>
|
<Grid Margin="2.5">
|
||||||
<TextBlock Text="{Binding Token}"
|
<Grid.ColumnDefinitions>
|
||||||
Style="{StaticResource Simulation_TextBlock}"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
<ColumnDefinition Width="1*"/>
|
||||||
BorderThickness="0"
|
</Grid.ColumnDefinitions>
|
||||||
Text="{Binding Value, UpdateSourceTrigger=Explicit}"
|
<Grid.RowDefinitions>
|
||||||
IsReadOnly="{Binding IsReadOnlyAxesValue}"
|
<RowDefinition Height="1*"/>
|
||||||
IsEnabled="{Binding IsEnabledAxesValue}"
|
<RowDefinition Height="1*"/>
|
||||||
Style="{StaticResource SimulationPanel_Axes_TextBox}">
|
</Grid.RowDefinitions>
|
||||||
</EgtWPFLib5:EgtTextBox>
|
<Border Style="{StaticResource SimulPanel_KeyValue_Border}">
|
||||||
</Grid>
|
<TextBlock Text="{Binding TName}"
|
||||||
</Border>
|
Margin="2.5,2.5,2.5,2.5"
|
||||||
</DataTemplate>
|
Style="{StaticResource Simulation_TextBlock}"/>
|
||||||
</ItemsControl.ItemTemplate>
|
</Border>
|
||||||
</ItemsControl>
|
<Border Grid.Column="1"
|
||||||
</StackPanel>
|
Style="{StaticResource SimulPanel_KeyValue_Border}">
|
||||||
<Button Grid.Row="3"
|
<TextBlock Text="{Binding SValue}"
|
||||||
Command="{Binding Ok_Command}"
|
Margin="2.5,2.5,2.5,2.5"
|
||||||
Style="{StaticResource RightPanel_HalfRound_Button}">
|
Style="{StaticResource Simulation_TextBlock}"/>
|
||||||
<Image Source="\Resources\Common\Ok.png"
|
</Border>
|
||||||
Style="{StaticResource Button_Image}"/>
|
<Border Grid.Row="1"
|
||||||
</Button>
|
Style="{StaticResource SimulPanel_KeyValue_Border}">
|
||||||
</Grid>
|
<TextBlock Text="{Binding GCode}"
|
||||||
</Border>
|
Margin="2.5,2.5,2.5,2.5"
|
||||||
|
Style="{StaticResource Simulation_TextBlock}"/>
|
||||||
|
</Border>
|
||||||
|
<Border Grid.Column="1"
|
||||||
|
Grid.Row="1"
|
||||||
|
Style="{StaticResource SimulPanel_KeyValue_Border}">
|
||||||
|
<TextBlock Text="{Binding FValue}"
|
||||||
|
Margin="2.5,2.5,2.5,2.5"
|
||||||
|
Style="{StaticResource Simulation_TextBlock}"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
<ItemsControl ItemsSource="{Binding MachineAxisList}"
|
||||||
|
Margin="2.5"
|
||||||
|
BorderThickness="0"
|
||||||
|
Padding="0">
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Border Style="{StaticResource SimulPanel_KeyValue_Border}"
|
||||||
|
Margin="0,1,0,1">
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Text="{Binding Token}"
|
||||||
|
Style="{StaticResource Simulation_TextBlock}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox2 Grid.Column="1"
|
||||||
|
BorderThickness="0"
|
||||||
|
Text="{Binding Value, UpdateSourceTrigger=Explicit}"
|
||||||
|
IsReadOnly="{Binding IsReadOnlyAxesValue}"
|
||||||
|
IsEnabled="{Binding IsEnabledAxesValue}"
|
||||||
|
Style="{StaticResource SimulationPanel_Axes_TextBox}">
|
||||||
|
</EgtWPFLib5:EgtTextBox2>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
</StackPanel>
|
||||||
|
<Button Grid.Row="3"
|
||||||
|
Command="{Binding Ok_Command}"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Ok.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -52,6 +52,10 @@ Public Class SimulationPanelVM
|
|||||||
' Creo riferimento a questa classe in OmagOFFICEMap
|
' Creo riferimento a questa classe in OmagOFFICEMap
|
||||||
Map.SetRefSimulationPanelVM(Me)
|
Map.SetRefSimulationPanelVM(Me)
|
||||||
MySimul = New MySimulation
|
MySimul = New MySimulation
|
||||||
|
' leggo vista macchina da ini e la imposto
|
||||||
|
Dim DefaultMachViewMode As Integer = GetMainPrivateProfileInt(S_SIMUL, K_MACHVIEWMODE, 3)
|
||||||
|
MySimul.SetMachLook(DefaultMachViewMode)
|
||||||
|
Map.refMachineViewPanelVM.RefreshSelViewSlider()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CONSTRUCTOR
|
#End Region ' CONSTRUCTOR
|
||||||
@@ -76,7 +80,6 @@ Public Class SimulationPanelVM
|
|||||||
'Cambio la vista della scena
|
'Cambio la vista della scena
|
||||||
EgtGetGenericView(m_dPrevAngVertDegView, m_dPrevAngHorizDegView)
|
EgtGetGenericView(m_dPrevAngVertDegView, m_dPrevAngHorizDegView)
|
||||||
EgtSetView(VT.ISO_SW, False)
|
EgtSetView(VT.ISO_SW, False)
|
||||||
MySimul.SetMachLook(MCH_LOOK.ALL)
|
|
||||||
EgtSetMachineLook(MySimul.GetMachLook())
|
EgtSetMachineLook(MySimul.GetMachLook())
|
||||||
' Nascondo griglia
|
' Nascondo griglia
|
||||||
EgtSetGridShow(False, False)
|
EgtSetGridShow(False, False)
|
||||||
@@ -111,6 +114,7 @@ Public Class SimulationPanelVM
|
|||||||
Map.refSliderManagerVM.SetLayerIndexIsEnabled(False)
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(False)
|
||||||
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(False)
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(False)
|
||||||
Map.refInstrumentPanelVM.SetEdgeAnalysisIsEnabled(False)
|
Map.refInstrumentPanelVM.SetEdgeAnalysisIsEnabled(False)
|
||||||
|
EgtDraw()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function LoadCurrTools() As Boolean
|
Private Function LoadCurrTools() As Boolean
|
||||||
@@ -138,9 +142,6 @@ Public Class SimulationPanelVM
|
|||||||
Map.refMyStatusBarVM.ClearOutputMessage()
|
Map.refMyStatusBarVM.ClearOutputMessage()
|
||||||
' Mi assicuro di terminare la simulazione
|
' Mi assicuro di terminare la simulazione
|
||||||
MySimul.ResetSimulation()
|
MySimul.ResetSimulation()
|
||||||
' Ripristino visibilità standard
|
|
||||||
MySimul.SetMachLook(MCH_LOOK.TAB)
|
|
||||||
EgtSetMachineLook(MySimul.GetMachLook())
|
|
||||||
'' Nascondo tutte le lavorazioni
|
'' Nascondo tutte le lavorazioni
|
||||||
'CamAuto.HideAllMachinings()
|
'CamAuto.HideAllMachinings()
|
||||||
' Abilito impostazione modificato
|
' Abilito impostazione modificato
|
||||||
|
|||||||
@@ -15,21 +15,63 @@
|
|||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding ghTime}"
|
<Grid HorizontalAlignment="Center"
|
||||||
Visibility="{Binding Time_Visibility}"
|
Visibility="{Binding Time_Visibility}"
|
||||||
FontSize="35"
|
Margin="0,0,0,5">
|
||||||
Style="{StaticResource SliceManager_TextBlock}"/>
|
<Grid.ColumnDefinitions>
|
||||||
<TextBlock Grid.Row="1"
|
<ColumnDefinition Width="Auto"/>
|
||||||
Text="{Binding ghDimensions}"
|
<ColumnDefinition Width="1*"/>
|
||||||
FontSize="18"
|
</Grid.ColumnDefinitions>
|
||||||
Margin="0,0,0,5"
|
<Image Source="\Resources\SliceManager\Time.png"
|
||||||
Style="{StaticResource SliceManager_TextBlock}"/>
|
Height="25"
|
||||||
<TextBlock Grid.Row="2"
|
Width="25"
|
||||||
Text="{Binding ghMass}"
|
Margin="0,0,2.5,0"
|
||||||
Visibility="{Binding Mass_Visibility}"
|
Style="{StaticResource Button_Image}"/>
|
||||||
FontSize="18"
|
<TextBlock Grid.Column="1"
|
||||||
Margin="0,0,0,5"
|
Text="{Binding ghTime}"
|
||||||
Style="{StaticResource SliceManager_TextBlock}"/>
|
FontSize="35"
|
||||||
|
Style="{StaticResource SliceManager_TextBlock}"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="1"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="\Resources\SliceManager\Dimensions.png"
|
||||||
|
Visibility="{Binding ghDimensions, Converter={StaticResource StringToVisibilityConverter}}"
|
||||||
|
Height="25"
|
||||||
|
Width="25"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding ghDimensions}"
|
||||||
|
FontSize="18"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource SliceManager_TextBlock}"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="2"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Visibility="{Binding Mass_Visibility}"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="\Resources\SliceManager\Mass.png"
|
||||||
|
Height="25"
|
||||||
|
Width="25"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding ghMass}"
|
||||||
|
FontSize="18"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource SliceManager_TextBlock}"/>
|
||||||
|
</Grid>
|
||||||
<TextBlock Grid.Row="3"
|
<TextBlock Grid.Row="3"
|
||||||
Text="{Binding sLoadingText}"
|
Text="{Binding sLoadingText}"
|
||||||
Visibility="{Binding Loading_Visibility}"
|
Visibility="{Binding Loading_Visibility}"
|
||||||
@@ -76,12 +118,12 @@
|
|||||||
Visibility="{Binding ModifyMode_Visibility}"
|
Visibility="{Binding ModifyMode_Visibility}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource SliceMannager_Button}"/>
|
Style="{StaticResource SliceMannager_Button}"/>
|
||||||
<Button Content="Update"
|
<!--<Button Content="Update"
|
||||||
Command="{Binding Update_Command}"
|
Command="{Binding Update_Command}"
|
||||||
IsEnabled="{Binding Buttons_IsEnabled}"
|
IsEnabled="{Binding Buttons_IsEnabled}"
|
||||||
Visibility="{Binding SliceMode_Visibility}"
|
Visibility="{Binding SliceMode_Visibility}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource SliceMannager_Button}"/>
|
Style="{StaticResource SliceMannager_Button}"/>-->
|
||||||
<Button Content="Generate"
|
<Button Content="Generate"
|
||||||
Command="{Binding Generate_Command}"
|
Command="{Binding Generate_Command}"
|
||||||
IsEnabled="{Binding Buttons_IsEnabled}"
|
IsEnabled="{Binding Buttons_IsEnabled}"
|
||||||
|
|||||||
@@ -36,9 +36,19 @@ Public Class SliceManagerVM
|
|||||||
Private m_bStopScriptToManage As Boolean = False
|
Private m_bStopScriptToManage As Boolean = False
|
||||||
|
|
||||||
Private m_bSlice As Boolean = False
|
Private m_bSlice As Boolean = False
|
||||||
|
Friend ReadOnly Property bSlice As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bSlice
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
Private m_bCalcTFS As Boolean = False
|
Private m_bCalcTFS As Boolean = False
|
||||||
Private m_bGenerate As Boolean = False
|
Private m_bGenerate As Boolean = False
|
||||||
Private m_bCalcSolid As Boolean = False
|
Private m_bCalcSolid As Boolean = False
|
||||||
|
Friend ReadOnly Property bCalcSolid As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bCalcSolid
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
Friend Sub SetCalcSolid(value As Boolean)
|
Friend Sub SetCalcSolid(value As Boolean)
|
||||||
m_bCalcSolid = value
|
m_bCalcSolid = value
|
||||||
End Sub
|
End Sub
|
||||||
@@ -118,7 +128,7 @@ Public Class SliceManagerVM
|
|||||||
Public ReadOnly Property ghTime As String
|
Public ReadOnly Property ghTime As String
|
||||||
Get
|
Get
|
||||||
Dim dtTime As TimeSpan = TimeSpan.FromSeconds(m_dTime)
|
Dim dtTime As TimeSpan = TimeSpan.FromSeconds(m_dTime)
|
||||||
Return Math.Floor(dtTime.TotalHours) & ":" & (Math.Floor(dtTime.Minutes)).ToString("00") & ":" & (Math.Ceiling(dtTime.Seconds)).ToString("00")
|
Return Math.Floor(dtTime.TotalHours) & "h " & (Math.Floor(dtTime.Minutes)).ToString("00") & "m" '& (Math.Ceiling(dtTime.Seconds)).ToString("00")
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -133,7 +143,7 @@ Public Class SliceManagerVM
|
|||||||
Get
|
Get
|
||||||
If Not IsNothing(Map.refTopPanelVM.SelPart) Then
|
If Not IsNothing(Map.refTopPanelVM.SelPart) Then
|
||||||
Dim b3Print As BBox3d = Map.refDispositionPanelVM.GetSolidForReferenceBBox(Map.refTopPanelVM.SelPart)
|
Dim b3Print As BBox3d = Map.refDispositionPanelVM.GetSolidForReferenceBBox(Map.refTopPanelVM.SelPart)
|
||||||
Return "[ " & DoubleToString(b3Print.DimX, 1) & " x " & DoubleToString(b3Print.DimY, 1) & " x " & DoubleToString(b3Print.DimZ, 1) & " ]"
|
Return DoubleToString(b3Print.DimX, 1) & " x " & DoubleToString(b3Print.DimY, 1) & " x " & DoubleToString(b3Print.DimZ, 1) & " mm"
|
||||||
End If
|
End If
|
||||||
Return ""
|
Return ""
|
||||||
End Get
|
End Get
|
||||||
@@ -194,8 +204,6 @@ Public Class SliceManagerVM
|
|||||||
Sub New()
|
Sub New()
|
||||||
' Creo riferimento a questa classe in EgtCAM5Map
|
' Creo riferimento a questa classe in EgtCAM5Map
|
||||||
Map.SetRefSliceManagerVM(Me)
|
Map.SetRefSliceManagerVM(Me)
|
||||||
' Installo funzione gestione eventi per lua
|
|
||||||
EgtSetProcessEvents(m_ProcEventsCallback)
|
|
||||||
UpdateState(False)
|
UpdateState(False)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -230,7 +238,7 @@ Public Class SliceManagerVM
|
|||||||
NotifyPropertyChanged(NameOf(Mass_Visibility))
|
NotifyPropertyChanged(NameOf(Mass_Visibility))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
Friend Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
||||||
' Se previsto, imposto progress
|
' Se previsto, imposto progress
|
||||||
If nProg >= 0 Then
|
If nProg >= 0 Then
|
||||||
Dim dPartialProgress As Integer = 0
|
Dim dPartialProgress As Integer = 0
|
||||||
@@ -433,9 +441,6 @@ Public Class SliceManagerVM
|
|||||||
Map.refSliderManagerVM.SetLayerIndexIsEnabled(True)
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(True)
|
||||||
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(True)
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(True)
|
||||||
SetButtonsIsEnabled(True)
|
SetButtonsIsEnabled(True)
|
||||||
m_bSlice = False
|
|
||||||
m_bCalcTFS = False
|
|
||||||
m_bGenerate = False
|
|
||||||
Return bOk
|
Return bOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -526,6 +531,8 @@ Public Class SliceManagerVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Slice()
|
Public Sub Slice()
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refStartMachPanelVM.bCPlaneObj_IsActive OrElse Map.refRibPanelVM.bCPlaneObj_IsActive OrElse
|
||||||
|
Map.refShellNumberPanelVM.bCPlaneObj_IsActive OrElse Map.refFilledSolidPanelVM.bCPlaneObj_IsActive Then Return
|
||||||
If m_bCalculating Then Return
|
If m_bCalculating Then Return
|
||||||
m_bCalculating = True
|
m_bCalculating = True
|
||||||
If IsNothing(Map.refTopPanelVM.SelPart) Then
|
If IsNothing(Map.refTopPanelVM.SelPart) Then
|
||||||
@@ -543,8 +550,12 @@ Public Class SliceManagerVM
|
|||||||
m_bCalculating = False
|
m_bCalculating = False
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
'' esco da altre pagine
|
Dim b3Print As BBox3d = Map.refDispositionPanelVM.GetSolidForReferenceBBox(Map.refTopPanelVM.SelPart)
|
||||||
'Dim PreviousPage As Pages = Map.refTopPanelVM.SelPage
|
If Not String.IsNullOrWhiteSpace(CurrentMachine.sMachDataIniFile) AndAlso Not CurrentMachine.b3ExtrusionArea.EnclosesXY(b3Print) Then
|
||||||
|
MessageBox.Show("Part outside the extrusion area!", "Error", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
m_bCalculating = False
|
||||||
|
Return
|
||||||
|
End If
|
||||||
' eseguo calcoli
|
' eseguo calcoli
|
||||||
CalcSlice(False)
|
CalcSlice(False)
|
||||||
' se non ho interrotto calcoli
|
' se non ho interrotto calcoli
|
||||||
@@ -554,11 +565,16 @@ Public Class SliceManagerVM
|
|||||||
Map.refSliderManagerVM.SetLayerIndexToMax()
|
Map.refSliderManagerVM.SetLayerIndexToMax()
|
||||||
NotifyPropertyChanged(NameOf(Time_Visibility))
|
NotifyPropertyChanged(NameOf(Time_Visibility))
|
||||||
NotifyPropertyChanged(NameOf(Mass_Visibility))
|
NotifyPropertyChanged(NameOf(Mass_Visibility))
|
||||||
'Else
|
' se ricalcolato slice attivo vista SliceToolpath e modo TillSelected
|
||||||
' Map.refTopPanelVM.SelPage = PreviousPage
|
If m_bSlice Then
|
||||||
|
Map.refSliderManagerVM.SetSelViewSlider(SliderManagerVM.ViewSliderType.UNTIL_SELECTED)
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
m_bStopScriptToManage = False
|
m_bStopScriptToManage = False
|
||||||
End If
|
End If
|
||||||
|
m_bSlice = False
|
||||||
|
m_bCalcTFS = False
|
||||||
|
m_bGenerate = False
|
||||||
m_bCalculating = False
|
m_bCalculating = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ Public Class SliderManagerVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Friend Sub SetSelViewSlider(value As ViewSliderType)
|
Friend Sub SetSelViewSlider(value As ViewSliderType)
|
||||||
m_nSelViewSlider = value
|
ghSelViewSlider = value - 1
|
||||||
NotifyPropertyChanged(NameOf(ghSelViewSlider))
|
NotifyPropertyChanged(NameOf(ghSelViewSlider))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -381,7 +381,8 @@ Public Class SliderManagerVM
|
|||||||
Map.SetRefSliderManagerVM(Me)
|
Map.SetRefSliderManagerVM(Me)
|
||||||
' leggo valore default ViewSlider
|
' leggo valore default ViewSlider
|
||||||
Dim nViewSlider As Integer = GetMainPrivateProfileInt(S_PRINTING3D, K_VIEWSLIDER, 1)
|
Dim nViewSlider As Integer = GetMainPrivateProfileInt(S_PRINTING3D, K_VIEWSLIDER, 1)
|
||||||
SetSelViewSlider(nViewSlider)
|
m_nSelViewSlider = nViewSlider
|
||||||
|
NotifyPropertyChanged(NameOf(ghSelViewSlider))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CONSTRUCTOR
|
#End Region ' CONSTRUCTOR
|
||||||
|
|||||||
@@ -10,32 +10,19 @@
|
|||||||
Height="600"
|
Height="600"
|
||||||
Width="1000">
|
Width="1000">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Image Source="/Resources/SplashScreen/GoldSplashscreen.png"
|
<Image Source="/Resources/SplashScreen/BlueSplashscreen.png"
|
||||||
Stretch="UniformToFill"/>
|
Stretch="UniformToFill"/>
|
||||||
<TextBlock Text="ICARUS"
|
|
||||||
Foreground="#b9984c"
|
|
||||||
FontSize="47"
|
|
||||||
FontFamily="/Resources/Fonts/#Roboto"
|
|
||||||
FontWeight="Light"
|
|
||||||
Margin="463,125,0,0"/>
|
|
||||||
<TextBlock x:Name="VersionTxBl"
|
<TextBlock x:Name="VersionTxBl"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
FontFamily="/Resources/Fonts/#Roboto"
|
FontFamily="/Resources/Fonts/#Roboto"
|
||||||
Margin="500,175,0,0"/>
|
Foreground="White"
|
||||||
<Grid Height="180"
|
HorizontalAlignment="Center"
|
||||||
Width="92"
|
Margin="591,140,0,0"/>
|
||||||
VerticalAlignment="Bottom"
|
<!--<TextBlock Text="2022-2023"
|
||||||
Margin="620,0,0,0">
|
FontSize="6"
|
||||||
<Image Source="/Resources/SplashScreen/LogoEgalware.png"
|
FontFamily="/Resources/Fonts/#Roboto"
|
||||||
Height="180"
|
HorizontalAlignment="Right"
|
||||||
Width="92"
|
VerticalAlignment="Bottom"
|
||||||
Stretch="UniformToFill"/>
|
Margin="0,0,254,60"/>-->
|
||||||
<TextBlock Text="2022-2023"
|
|
||||||
FontSize="12"
|
|
||||||
FontFamily="/Resources/Fonts/#Roboto"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Margin="0,140,0,0"/>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
ItemsSource="{Binding StartList}"
|
ItemsSource="{Binding StartList}"
|
||||||
SelectedItem="{Binding SelStart}"
|
SelectedItem="{Binding SelStart}"
|
||||||
DisplayMemberPath="ghName"
|
DisplayMemberPath="ghName"
|
||||||
|
IsEnabled="{Binding StartList_IsEnabled}"
|
||||||
Style="{StaticResource LeftPanel_ComboBox}"/>
|
Style="{StaticResource LeftPanel_ComboBox}"/>
|
||||||
<!-- Add Button -->
|
<!-- Add Button -->
|
||||||
<ToggleButton x:Name="AddBtn"
|
<ToggleButton x:Name="AddBtn"
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ Public Class StartMachPanelVM
|
|||||||
Return m_SelStart
|
Return m_SelStart
|
||||||
End Get
|
End Get
|
||||||
Set(value As StartEntity)
|
Set(value As StartEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refStartMachPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelStart = value
|
m_SelStart = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -199,7 +203,7 @@ Public Class StartMachPanelVM
|
|||||||
Return m_bAdd_IsChecked
|
Return m_bAdd_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bAdd_IsChecked = value
|
m_bAdd_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
@@ -221,7 +225,7 @@ Public Class StartMachPanelVM
|
|||||||
Return m_bEdit_IsChecked
|
Return m_bEdit_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelStart) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelStart) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bEdit_IsChecked = value
|
m_bEdit_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -243,7 +247,7 @@ Public Class StartMachPanelVM
|
|||||||
Return m_bGrid_IsChecked
|
Return m_bGrid_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bGrid_IsChecked = value
|
m_bGrid_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -271,7 +275,7 @@ Public Class StartMachPanelVM
|
|||||||
Return m_bMove_IsChecked
|
Return m_bMove_IsChecked
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If Not IsNothing(m_SelStart) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 Then
|
If Not IsNothing(m_SelStart) AndAlso Map.refSceneHostVM.MainController.GetStep = 0 AndAlso Not m_bCPlaneObj_IsActive Then
|
||||||
m_bMove_IsChecked = value
|
m_bMove_IsChecked = value
|
||||||
If value Then
|
If value Then
|
||||||
m_bAdd_IsChecked = False
|
m_bAdd_IsChecked = False
|
||||||
@@ -293,6 +297,18 @@ Public Class StartMachPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_StartList_IsEnabled As Boolean = False
|
||||||
|
Public ReadOnly Property StartList_IsEnabled As Boolean
|
||||||
|
Get
|
||||||
|
Return If(m_StartList.Count > 0, m_StartList_IsEnabled, False)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Friend Sub SetStartListIsEnabled(bValue As Boolean)
|
||||||
|
m_StartList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(StartList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -304,6 +320,8 @@ Public Class StartMachPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Point_ToolTip As String
|
Public ReadOnly Property Point_ToolTip As String
|
||||||
@@ -458,6 +476,8 @@ Public Class StartMachPanelVM
|
|||||||
SelStart = m_StartList(0)
|
SelStart = m_StartList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelStart))
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
End If
|
End If
|
||||||
|
' abilito lista start mach
|
||||||
|
SetStartListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -481,16 +501,33 @@ Public Class StartMachPanelVM
|
|||||||
' seleziono percorso corrente
|
' seleziono percorso corrente
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
EgtSelectObj(m_SelStart.nId)
|
EgtSelectObj(m_SelStart.nId)
|
||||||
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Friend Sub UpdateUI()
|
Friend Sub UpdateUI()
|
||||||
' se attiva operazione in piu' passaggi, esco
|
' se attiva operazione in piu' passaggi, esco
|
||||||
If Map.refSceneHostVM.MainController.GetContinue() Then Return
|
If Map.refSceneHostVM.MainController.GetContinue() Then Return
|
||||||
Dim NewEntity As StartEntity = Nothing
|
End Sub
|
||||||
' se finita creazione curva (è stata chiusa)
|
|
||||||
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Select Case command
|
||||||
|
Case Controller.CMD.LINE2P, Controller.CMD.DELETE, Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE,
|
||||||
|
Controller.CMD.MOVE, Controller.CMD.ROTATE
|
||||||
|
' Imposto flag di ricalcolo slice
|
||||||
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
|
' rimetto la selezione scena a null
|
||||||
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
|
End Select
|
||||||
|
' riabilito interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
|
' se finita creazione curva
|
||||||
If bIsCreatingPath Then
|
If bIsCreatingPath Then
|
||||||
m_bIsCreatingPath = False
|
m_bIsCreatingPath = False
|
||||||
|
Dim NewEntity As StartEntity = Nothing
|
||||||
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
||||||
Dim nNewEntityId As Integer = EgtGetFirstInGroup(nNewStartLayerId)
|
Dim nNewEntityId As Integer = EgtGetFirstInGroup(nNewStartLayerId)
|
||||||
Dim NewGeomType As GDB_TY = EgtGetType(nNewEntityId)
|
Dim NewGeomType As GDB_TY = EgtGetType(nNewEntityId)
|
||||||
@@ -503,37 +540,22 @@ Public Class StartMachPanelVM
|
|||||||
NewEntityType = StartMachTypes.COMPO
|
NewEntityType = StartMachTypes.COMPO
|
||||||
End Select
|
End Select
|
||||||
EgtSetName(nNewEntityId, START_GEOM)
|
EgtSetName(nNewEntityId, START_GEOM)
|
||||||
' coloro l'entita' di rosso
|
' resetto colore entita'
|
||||||
Dim c3Red As Color3d
|
EgtResetColor(nNewEntityId)
|
||||||
c3Red.FromColor(System.Drawing.Color.Red)
|
|
||||||
EgtSetColor(nNewEntityId, c3Red)
|
|
||||||
' lo sposto nel layer degli start
|
' lo sposto nel layer degli start
|
||||||
EgtRelocateGlob(nNewEntityId, m_nStartMachLayerId, GDB_POS.LAST_SON)
|
EgtRelocateGlob(nNewEntityId, m_nStartMachLayerId, GDB_POS.LAST_SON)
|
||||||
' lo aggiungo alla lista
|
' lo aggiungo alla lista
|
||||||
NewEntity = New StartEntity(nNewEntityId, NewEntityType)
|
NewEntity = New StartEntity(nNewEntityId, NewEntityType)
|
||||||
m_StartList.Add(NewEntity)
|
m_StartList.Add(NewEntity)
|
||||||
' cancello layer di disegno
|
' lo seleziono
|
||||||
EgtErase(nNewStartLayerId)
|
SelStart = NewEntity
|
||||||
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
End If
|
End If
|
||||||
|
' cancello layer di disegno
|
||||||
|
EgtErase(nNewStartLayerId)
|
||||||
End If
|
End If
|
||||||
' aggiorno posizione
|
' aggiorno posizione
|
||||||
RefreshPos()
|
RefreshPos()
|
||||||
' se aggiunta entita'
|
|
||||||
If Not IsNothing(NewEntity) Then
|
|
||||||
SelStart = NewEntity
|
|
||||||
NotifyPropertyChanged(NameOf(SelStart))
|
|
||||||
End If
|
|
||||||
' rimetto la selezione scena a null
|
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
|
||||||
Select Case command
|
|
||||||
Case Controller.CMD.LINE2P, Controller.CMD.DELETE, Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE,
|
|
||||||
Controller.CMD.MOVE, Controller.CMD.ROTATE
|
|
||||||
' Imposto flag di ricalcolo slice
|
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
|
||||||
End Select
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnKeyDown(Key As Forms.Keys)
|
Friend Sub OnKeyDown(Key As Forms.Keys)
|
||||||
@@ -550,6 +572,12 @@ Public Class StartMachPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -565,6 +593,18 @@ Public Class StartMachPanelVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetStartListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -587,14 +627,14 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Point(ByVal param As Object)
|
Public Sub Point(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup( m_nPartId, LAY_NEWSTART)
|
ManageInterface(False)
|
||||||
|
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
||||||
If nNewStartLayerId = GDB_ID.NULL Then
|
If nNewStartLayerId = GDB_ID.NULL Then
|
||||||
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
||||||
End If
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewStartLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewStartLayerId)
|
||||||
'InitCommand(True)
|
|
||||||
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.POINT) Then
|
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.POINT) Then
|
||||||
m_bIsCreatingPath = True
|
m_bIsCreatingPath = True
|
||||||
End If
|
End If
|
||||||
@@ -620,8 +660,9 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup( m_nPartId, LAY_NEWSTART)
|
ManageInterface(False)
|
||||||
|
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
||||||
If nNewStartLayerId = GDB_ID.NULL Then
|
If nNewStartLayerId = GDB_ID.NULL Then
|
||||||
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
||||||
@@ -653,7 +694,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub ModifyCurve(ByVal param As Object)
|
Public Sub ModifyCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand()
|
InitCommand()
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MODIFYCURVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -678,7 +719,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub AddPointCurve(ByVal param As Object)
|
Public Sub AddPointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand()
|
InitCommand()
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOARC)
|
||||||
@@ -707,7 +748,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
''' Execute the LinearDimension. This method is invoked by the LinDimCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub RemovePointCurve(ByVal param As Object)
|
Public Sub RemovePointCurve(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
InitCommand()
|
InitCommand()
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.CURVETOLINE)
|
||||||
@@ -737,7 +778,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneTop(ByVal param As Object)
|
Public Sub CPlaneTop(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.TOP)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -762,7 +803,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
''' Execute the CPlaneFront. This method is invoked by the CPlaneFrontCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneFront(ByVal param As Object)
|
Public Sub CPlaneFront(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.FRONT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -787,7 +828,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
''' Execute the CPlaneRight. This method is invoked by the CPlaneRightCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneRight(ByVal param As Object)
|
Public Sub CPlaneRight(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.RIGHT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -812,7 +853,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
''' Execute the CPlaneBack. This method is invoked by the CPlaneBackCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBack(ByVal param As Object)
|
Public Sub CPlaneBack(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BACK)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -837,7 +878,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
''' Execute the CPlaneLeft. This method is invoked by the CPlaneLeftCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneLeft(ByVal param As Object)
|
Public Sub CPlaneLeft(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.LEFT)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -862,7 +903,7 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
''' Execute the CPlaneBottom. This method is invoked by the CPlaneBottomCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneBottom(ByVal param As Object)
|
Public Sub CPlaneBottom(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
Map.refSceneHostVM.MainController.SetLastInteger(Controller.GRID_TYPE.BOTTOM)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -887,7 +928,8 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
''' Execute the CPlaneElevation. This method is invoked by the CPlaneElevationCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -911,7 +953,8 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
''' Execute the CPlaneOrigin. This method is invoked by the CPlaneOriginCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -951,7 +994,8 @@ Public Class StartMachPanelVM
|
|||||||
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
''' Execute the CPlaneObj. This method is invoked by the CPlaneObjCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
@@ -961,7 +1005,7 @@ Public Class StartMachPanelVM
|
|||||||
End While
|
End While
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
m_bCPlaneObj_IsActive = True
|
m_bCPlaneObj_IsActive = True
|
||||||
' Map.refControllerInputPanelVM.PrepareInputBox("Grid from Selection", "Select the face of the object where to place the grid", "", False, False)
|
Map.refControllerInputPanelVM.ShowMessage("Grid from Selection", "Select the face of the object where to place the grid")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CPlaneObj
|
#End Region ' CPlaneObj
|
||||||
@@ -978,6 +1022,7 @@ Public Class StartMachPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub DragMove()
|
Public Sub DragMove()
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
InitCommand()
|
InitCommand()
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.MOVE)
|
||||||
End Sub
|
End Sub
|
||||||
@@ -996,7 +1041,7 @@ Public Class StartMachPanelVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Delete()
|
Public Sub Delete()
|
||||||
If IsNothing(SelStart) Then Return
|
If IsNothing(SelStart) OrElse Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
If EgtErase(m_SelStart.nId) Then
|
If EgtErase(m_SelStart.nId) Then
|
||||||
Dim nSelStartIndex As Integer = m_StartList.IndexOf(SelStart)
|
Dim nSelStartIndex As Integer = m_StartList.IndexOf(SelStart)
|
||||||
m_StartList.Remove(SelStart)
|
m_StartList.Remove(SelStart)
|
||||||
@@ -1011,6 +1056,7 @@ Public Class StartMachPanelVM
|
|||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelStart))
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
End If
|
End If
|
||||||
|
SetStartListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ Public Class MyStatusBarVM
|
|||||||
Inherits EgtWPFLib5.StatusBarVM
|
Inherits EgtWPFLib5.StatusBarVM
|
||||||
|
|
||||||
' Funzioni di callback per output in interfaccia da LUA
|
' Funzioni di callback per output in interfaccia da LUA
|
||||||
Private m_ProcEventsCallback As New ProcessEventsCallback(AddressOf ProcessEvents)
|
|
||||||
Private m_OutTextCallback As New OutTextCallback(AddressOf OutText)
|
Private m_OutTextCallback As New OutTextCallback(AddressOf OutText)
|
||||||
|
|
||||||
Private m_bStopProgress As Boolean
|
Private m_bStopProgress As Boolean
|
||||||
@@ -115,8 +114,6 @@ Public Class MyStatusBarVM
|
|||||||
Sub New()
|
Sub New()
|
||||||
' Creo riferimento a questa classe in Map
|
' Creo riferimento a questa classe in Map
|
||||||
Map.SetRefMyStatusBarVM(Me)
|
Map.SetRefMyStatusBarVM(Me)
|
||||||
' Installo funzione gestione eventi per lua
|
|
||||||
EgtSetProcessEvents(m_ProcEventsCallback)
|
|
||||||
' Installo funzione output testo su status per lua
|
' Installo funzione output testo su status per lua
|
||||||
EgtSetOutText(m_OutTextCallback)
|
EgtSetOutText(m_OutTextCallback)
|
||||||
' imposto stato di visualizzazione della griglia
|
' imposto stato di visualizzazione della griglia
|
||||||
@@ -163,7 +160,7 @@ Public Class MyStatusBarVM
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
Friend Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
||||||
' Se previsto, imposto progress
|
' Se previsto, imposto progress
|
||||||
If nProg > 0 Then SetLoadingProgress(Math.Min(nProg, 100))
|
If nProg > 0 Then SetLoadingProgress(Math.Min(nProg, 100))
|
||||||
' Costringo ad aggiornare
|
' Costringo ad aggiornare
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
IsChecked="{Binding bGridVisibility}"
|
IsChecked="{Binding bGridVisibility}"
|
||||||
ImageSource="/Resources/StatusBar/GridVisibility.png"
|
ImageSource="/Resources/StatusBar/GridVisibility.png"
|
||||||
CheckedImageSource="/Resources/StatusBar/GridVisibilityWhite.png"
|
CheckedImageSource="/Resources/StatusBar/GridVisibilityWhite.png"
|
||||||
|
ToolTip="Grid Visibility"
|
||||||
Margin="0,2.5,0,0"
|
Margin="0,2.5,0,0"
|
||||||
Style="{StaticResource StatusBar_ToggleButton}"/>
|
Style="{StaticResource StatusBar_ToggleButton}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<Grid x:Class="ColumnHeader"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type Grid}}}"
|
||||||
|
Style="{StaticResource BaseTextBlock}"/>
|
||||||
|
<TextBlock Grid.Row="1"
|
||||||
|
Text="{Binding MeasureUnit, RelativeSource={RelativeSource AncestorType={x:Type Grid}}}"
|
||||||
|
Style="{StaticResource MeasureUnit_TextBlock}"/>
|
||||||
|
</Grid>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
Public Class ColumnHeader
|
||||||
|
|
||||||
|
Public Shared ReadOnly HeaderProperty As DependencyProperty = DependencyProperty.Register("Header", GetType(String), GetType(ColumnHeader), New FrameworkPropertyMetadata(""))
|
||||||
|
|
||||||
|
Public Property Header As String
|
||||||
|
Get
|
||||||
|
Return CStr(MyBase.GetValue(HeaderProperty))
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
MyBase.SetValue(HeaderProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Shared ReadOnly MeasureUnitProperty As DependencyProperty = DependencyProperty.Register("MeasureUnit", GetType(String), GetType(ColumnHeader), New FrameworkPropertyMetadata(""))
|
||||||
|
|
||||||
|
Public Property MeasureUnit As String
|
||||||
|
Get
|
||||||
|
Return CStr(MyBase.GetValue(MeasureUnitProperty))
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
MyBase.SetValue(MeasureUnitProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -29,13 +29,13 @@
|
|||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<StackPanel Grid.ColumnSpan="2"
|
<StackPanel Orientation="Horizontal"
|
||||||
Orientation="Horizontal"
|
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Margin="0,2.5,0,2.5">
|
Margin="0,2.5,0,2.5">
|
||||||
<TextBlock Text="Modify"
|
<TextBlock Text="Modify"
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<ComboBox ItemsSource="{Binding MediaTypeList}"
|
<ComboBox ItemsSource="{Binding MediaTypeList}"
|
||||||
SelectedIndex="{Binding ghSelMediaType}"
|
SelectedIndex="{Binding ghSelMediaType}"
|
||||||
Margin="2.5,0,0,0"
|
Margin="2.5,0,0,0"
|
||||||
Width="160"
|
Width="150"
|
||||||
Style="{StaticResource RightPanel_ComboBox}"/>
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Grid.Row="1"
|
<StackPanel Grid.Row="1"
|
||||||
@@ -77,12 +77,20 @@
|
|||||||
Style="{StaticResource RightPanel_Button}"/>
|
Style="{StaticResource RightPanel_Button}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Button Grid.Column="1"
|
<Button Grid.Column="1"
|
||||||
|
Grid.RowSpan="2"
|
||||||
|
Content="Update"
|
||||||
|
Command="{Binding Update_Command}"
|
||||||
|
Height="45"
|
||||||
|
Width="45"
|
||||||
|
Margin="0,2.5,2.5,2.5"
|
||||||
|
Style="{StaticResource RightPanel_Button}"/>
|
||||||
|
<Button Grid.Column="2"
|
||||||
Grid.RowSpan="2"
|
Grid.RowSpan="2"
|
||||||
Content="Reset"
|
Content="Reset"
|
||||||
Command="{Binding Reset_Command}"
|
Command="{Binding Reset_Command}"
|
||||||
Height="45"
|
Height="45"
|
||||||
Width="45"
|
Width="45"
|
||||||
Margin="0,2.5,5,2.5"
|
Margin="2.5,2.5,5,2.5"
|
||||||
Style="{StaticResource RightPanel_Button}"/>
|
Style="{StaticResource RightPanel_Button}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ContentControl.Style>
|
<ContentControl.Style>
|
||||||
@@ -106,7 +114,7 @@
|
|||||||
<ComboBox ItemsSource="{Binding MediaTypeList}"
|
<ComboBox ItemsSource="{Binding MediaTypeList}"
|
||||||
SelectedIndex="{Binding ghSelMediaType}"
|
SelectedIndex="{Binding ghSelMediaType}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Width="160"
|
Width="150"
|
||||||
Style="{StaticResource RightPanel_ComboBox}"/>
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Grid.Column="1"
|
<StackPanel Grid.Column="1"
|
||||||
@@ -136,12 +144,22 @@
|
|||||||
Margin="2.5,0,0,0"
|
Margin="2.5,0,0,0"
|
||||||
Style="{StaticResource RightPanel_Button}"/>
|
Style="{StaticResource RightPanel_Button}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Button Grid.Column="1"
|
<StackPanel Grid.Column="1"
|
||||||
Content="Reset"
|
Orientation="Horizontal"
|
||||||
Command="{Binding Reset_Command}"
|
HorizontalAlignment="Right">
|
||||||
HorizontalAlignment="Right"
|
<Button Grid.Column="1"
|
||||||
Margin="0,0,5,0"
|
Content="Update"
|
||||||
Style="{StaticResource RightPanel_Button}"/>
|
Command="{Binding Update_Command}"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="0,0,5,0"
|
||||||
|
Style="{StaticResource RightPanel_Button}"/>
|
||||||
|
<Button Grid.Column="1"
|
||||||
|
Content="Reset"
|
||||||
|
Command="{Binding Reset_Command}"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="0,0,5,0"
|
||||||
|
Style="{StaticResource RightPanel_Button}"/>
|
||||||
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
@@ -158,69 +176,150 @@
|
|||||||
SelectionMode="Extended"
|
SelectionMode="Extended"
|
||||||
HorizontalGridLinesBrush="White"
|
HorizontalGridLinesBrush="White"
|
||||||
VerticalGridLinesBrush="White"
|
VerticalGridLinesBrush="White"
|
||||||
|
ColumnHeaderHeight="40"
|
||||||
Margin="0,2.5,0,2.5">
|
Margin="0,2.5,0,2.5">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTextColumn Header="Index"
|
<DataGridTextColumn Header="Layer"
|
||||||
Binding="{Binding nIndex}"
|
Binding="{Binding nIndex}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Width="Auto"/>
|
Width="Auto">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.Layer_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Index_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Header="Length"
|
<DataGridTextColumn Header="Length"
|
||||||
Binding="{Binding sLength}"
|
Binding="{Binding sLength}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Visibility="{Binding DataContext.ColExtend_Visibility,
|
Visibility="{Binding DataContext.ColExtend_Visibility,
|
||||||
Source={x:Reference TFSEditorStackPanel}}"
|
Source={x:Reference TFSEditorStackPanel}}"
|
||||||
Width="2*"
|
Width="1.5*"
|
||||||
TextBlock.TextAlignment="Center"/>
|
TextBlock.TextAlignment="Center">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.Length_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Millimeters_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Header="TMin"
|
<DataGridTextColumn Header="TMin"
|
||||||
Binding="{Binding sTMin}"
|
Binding="{Binding sTMin}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Visibility="{Binding DataContext.ColExtend_Visibility,
|
Visibility="{Binding DataContext.ColExtend_Visibility,
|
||||||
Source={x:Reference TFSEditorStackPanel}}"
|
Source={x:Reference TFSEditorStackPanel}}"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.TMin_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Seconds_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Header="TTrg"
|
<DataGridTextColumn Header="TTrg"
|
||||||
Binding="{Binding sTTrg}"
|
Binding="{Binding sTTrg}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.TTrg_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Seconds_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Header="TMax"
|
<DataGridTextColumn Header="TMax"
|
||||||
Binding="{Binding sTMax}"
|
Binding="{Binding sTMax}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Visibility="{Binding DataContext.ColExtend_Visibility,
|
Visibility="{Binding DataContext.ColExtend_Visibility,
|
||||||
Source={x:Reference TFSEditorStackPanel}}"
|
Source={x:Reference TFSEditorStackPanel}}"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.TMax_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Seconds_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Header="TCurr"
|
<DataGridTextColumn Header="TCurr"
|
||||||
Binding="{Binding sTCurr}"
|
Binding="{Binding sTCurr}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.TCurr_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Seconds_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Header="TWait"
|
<DataGridTextColumn Header="TWait"
|
||||||
Binding="{Binding sTWait}"
|
Binding="{Binding sTWait}"
|
||||||
Visibility="{Binding DataContext.ColWait_Visibility,
|
Visibility="{Binding DataContext.ColWait_Visibility,
|
||||||
Source={x:Reference TFSEditorStackPanel}}"
|
Source={x:Reference TFSEditorStackPanel}}"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.TWait_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Seconds_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Header="FMin"
|
<DataGridTextColumn Header="FMin"
|
||||||
Binding="{Binding sFMin}"
|
Binding="{Binding sFMin}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Visibility="{Binding DataContext.ColExtend_Visibility,
|
Visibility="{Binding DataContext.ColExtend_Visibility,
|
||||||
Source={x:Reference TFSEditorStackPanel}}"
|
Source={x:Reference TFSEditorStackPanel}}"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
<DataGridTextColumn Header="FTrg"
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
Binding="{Binding sFTrg}"
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.FMin_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.MmPerMin_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<DataGridTextColumn Binding="{Binding sFTrg}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Visibility="{Binding DataContext.ColExtend_Visibility,
|
Visibility="{Binding DataContext.ColExtend_Visibility,
|
||||||
Source={x:Reference TFSEditorStackPanel}}"
|
Source={x:Reference TFSEditorStackPanel}}"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
<DataGridTextColumn Header="FMax"
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
Binding="{Binding sFMax}"
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.FTrg_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.MmPerMin_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<DataGridTextColumn Binding="{Binding sFMax}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Visibility="{Binding DataContext.ColExtend_Visibility,
|
Visibility="{Binding DataContext.ColExtend_Visibility,
|
||||||
Source={x:Reference TFSEditorStackPanel}}"
|
Source={x:Reference TFSEditorStackPanel}}"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
<DataGridTextColumn Header="FCurr"
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
Binding="{Binding sFCurr}"
|
<DataTemplate>
|
||||||
Width="1*"/>
|
<PrintApp:ColumnHeader Header="{Binding DataContext.FMax_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
<DataGridTextColumn Header="Speed"
|
MeasureUnit="{Binding DataContext.MmPerMin_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
Binding="{Binding sSpeed}"
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<DataGridTextColumn Binding="{Binding sFCurr}"
|
||||||
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.FCurr_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.MmPerMin_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<DataGridTextColumn Binding="{Binding sSpeed}"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
Width="1*"/>
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<PrintApp:ColumnHeader Header="{Binding DataContext.Speed_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"
|
||||||
|
MeasureUnit="{Binding DataContext.Rpm_Msg, RelativeSource={RelativeSource AncestorType={x:Type PrintApp:TFSEditorV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
<DataGrid.RowStyle>
|
<DataGrid.RowStyle>
|
||||||
<Style TargetType="DataGridRow" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
<Style TargetType="DataGridRow" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
||||||
@@ -243,16 +342,37 @@
|
|||||||
SelectedIndex="{Binding nSelFilter}"
|
SelectedIndex="{Binding nSelFilter}"
|
||||||
Width="125"
|
Width="125"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
|
ToolTip="Filter"
|
||||||
Style="{StaticResource RightPanel_ComboBox}"/>
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
<Button DockPanel.Dock="Right"
|
<ToggleButton DockPanel.Dock="Right"
|
||||||
Command="{Binding Extend_Command}"
|
IsChecked="{Binding bColExtend}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0">
|
||||||
Style="{StaticResource ToolBar_Button}">
|
<ToggleButton.Resources>
|
||||||
<Image Source="/Resources/TFSEditor/Expand.png"
|
<DataTemplate x:Key="Expand">
|
||||||
Style="{StaticResource Button_Image}"/>
|
<Image Source="/Resources/TFSEditor/Expand.png"
|
||||||
</Button>
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
<DataTemplate x:Key="Reduce">
|
||||||
|
<Image Source="/Resources/TFSEditor/Reduce.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ToggleButton.Resources>
|
||||||
|
<ToggleButton.Style>
|
||||||
|
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource ToolBar_ToggleButton}">
|
||||||
|
<Setter Property="ContentTemplate" Value="{StaticResource Expand}"/>
|
||||||
|
<Setter Property="ToolTip" Value="Expand"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsChecked" Value="True">
|
||||||
|
<Setter Property="ContentTemplate" Value="{StaticResource Reduce}"/>
|
||||||
|
<Setter Property="ToolTip" Value="Reduce"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</ToggleButton.Style>
|
||||||
|
</ToggleButton>
|
||||||
<Grid VerticalAlignment="Center"
|
<Grid VerticalAlignment="Center"
|
||||||
HorizontalAlignment="Center">
|
HorizontalAlignment="Left"
|
||||||
|
Margin="2.5,0,0,0">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ Public Class TFSEditorVM
|
|||||||
|
|
||||||
Public Enum MediaTypes As Integer
|
Public Enum MediaTypes As Integer
|
||||||
HEIGHT = 1
|
HEIGHT = 1
|
||||||
SECTIONCHANGE = 2
|
'SECTIONCHANGE = 2
|
||||||
SELECTION = 3
|
SELECTION = 2
|
||||||
FEED_INCREMENT = 4
|
FEED_INCREMENT = 3
|
||||||
SELECTION_WAIT = 5
|
SELECTION_WAIT = 4
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Public Enum Filters As Integer
|
Public Enum Filters As Integer
|
||||||
@@ -60,13 +60,13 @@ Public Class TFSEditorVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_MediaTypeList As New List(Of String)({"Feed by Slice Number", "Feed by Section change", "Feed by Selection", "Wait by Selection", "Feed by Increment"})
|
Private m_MediaTypeList As New List(Of String)({"Feed by Slice Number", "Feed by Selection", "Wait by Selection", "Feed by Increment"})
|
||||||
Public ReadOnly Property MediaTypeList As List(Of String)
|
Public ReadOnly Property MediaTypeList As List(Of String)
|
||||||
Get
|
Get
|
||||||
If bWaitingTime Then
|
If bWaitingTime Then
|
||||||
Return New List(Of String)({"Feed by Slice Number", "Feed by Section change", "Feed by Selection", "Feed by Increment", "Wait by Selection"})
|
Return New List(Of String)({"Feed by Slice Number", "Feed by Selection", "Feed by Increment", "Wait by Selection"})
|
||||||
Else
|
Else
|
||||||
Return New List(Of String)({"Feed by Slice Number", "Feed by Section change", "Feed by Selection", "Feed by Increment"})
|
Return New List(Of String)({"Feed by Slice Number", "Feed by Selection", "Feed by Increment"})
|
||||||
End If
|
End If
|
||||||
' Return m_MediaTypeList
|
' Return m_MediaTypeList
|
||||||
End Get
|
End Get
|
||||||
@@ -83,12 +83,12 @@ Public Class TFSEditorVM
|
|||||||
Case MediaTypes.HEIGHT
|
Case MediaTypes.HEIGHT
|
||||||
SetSetVisibility(False)
|
SetSetVisibility(False)
|
||||||
SetMediaVisibility(True)
|
SetMediaVisibility(True)
|
||||||
Case MediaTypes.SECTIONCHANGE
|
'Case MediaTypes.SECTIONCHANGE
|
||||||
SetSetVisibility(False)
|
' SetSetVisibility(False)
|
||||||
SetMediaVisibility(True)
|
' SetMediaVisibility(True)
|
||||||
Case MediaTypes.SELECTION
|
Case MediaTypes.SELECTION
|
||||||
SetSetVisibility(True)
|
SetSetVisibility(True)
|
||||||
SetMediaVisibility(True)
|
SetMediaVisibility(False)
|
||||||
Case MediaTypes.SELECTION_WAIT
|
Case MediaTypes.SELECTION_WAIT
|
||||||
SetSetVisibility(True)
|
SetSetVisibility(True)
|
||||||
SetMediaVisibility(False)
|
SetMediaVisibility(False)
|
||||||
@@ -170,10 +170,16 @@ Public Class TFSEditorVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_bColExtend As Boolean = False
|
Private m_bColExtend As Boolean = False
|
||||||
Public ReadOnly Property bColExtend As Boolean
|
Public Property bColExtend As Boolean
|
||||||
Get
|
Get
|
||||||
Return m_bColExtend
|
Return m_bColExtend
|
||||||
End Get
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_bColExtend = value
|
||||||
|
NotifyPropertyChanged(NameOf(bColExtend))
|
||||||
|
NotifyPropertyChanged(NameOf(ColExtend_Visibility))
|
||||||
|
NotifyPropertyChanged(NameOf(ControlWidth))
|
||||||
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property ColExtend_Visibility As Visibility
|
Public ReadOnly Property ColExtend_Visibility As Visibility
|
||||||
Get
|
Get
|
||||||
@@ -229,8 +235,8 @@ Public Class TFSEditorVM
|
|||||||
Select Case m_nSelMediaType
|
Select Case m_nSelMediaType
|
||||||
Case MediaTypes.HEIGHT
|
Case MediaTypes.HEIGHT
|
||||||
Return "Slice Number:"
|
Return "Slice Number:"
|
||||||
Case MediaTypes.SECTIONCHANGE
|
'Case MediaTypes.SECTIONCHANGE
|
||||||
Return "Difference:"
|
' Return "Difference:"
|
||||||
Case MediaTypes.SELECTION
|
Case MediaTypes.SELECTION
|
||||||
Return "Feed:"
|
Return "Feed:"
|
||||||
Case MediaTypes.SELECTION_WAIT
|
Case MediaTypes.SELECTION_WAIT
|
||||||
@@ -243,9 +249,116 @@ Public Class TFSEditorVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#Region "Messages"
|
||||||
|
|
||||||
|
Public ReadOnly Property Layer_Msg As String
|
||||||
|
Get
|
||||||
|
Return "Layer"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Length_Msg As String
|
||||||
|
Get
|
||||||
|
Return "Length"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property TMin_Msg As String
|
||||||
|
Get
|
||||||
|
Return "TMin"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property TTrg_Msg As String
|
||||||
|
Get
|
||||||
|
Return "TTrg"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property TMax_Msg As String
|
||||||
|
Get
|
||||||
|
Return "TMax"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property TCurr_Msg As String
|
||||||
|
Get
|
||||||
|
Return "TCurr"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property TWait_Msg As String
|
||||||
|
Get
|
||||||
|
Return "TWait"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property FMin_Msg As String
|
||||||
|
Get
|
||||||
|
Return "FMin"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property FTrg_Msg As String
|
||||||
|
Get
|
||||||
|
Return "FTrg"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property FMax_Msg As String
|
||||||
|
Get
|
||||||
|
Return "FMax"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property FCurr_Msg As String
|
||||||
|
Get
|
||||||
|
Return "FCurr"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Speed_Msg As String
|
||||||
|
Get
|
||||||
|
Return "Speed"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Index_Msg As String
|
||||||
|
Get
|
||||||
|
Return "n°"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Millimeters_Msg As String
|
||||||
|
Get
|
||||||
|
Return "mm"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Seconds_Msg As String
|
||||||
|
Get
|
||||||
|
Return "min:s"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property MmPerMin_Msg As String
|
||||||
|
Get
|
||||||
|
Return "mm/min"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Rpm_Msg As String
|
||||||
|
Get
|
||||||
|
Return "rpm"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Messages
|
||||||
|
|
||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdSet As ICommand
|
Private m_cmdSet As ICommand
|
||||||
Private m_cmdMedia As ICommand
|
Private m_cmdMedia As ICommand
|
||||||
|
Private m_cmdUpdate As ICommand
|
||||||
Private m_cmdReset As ICommand
|
Private m_cmdReset As ICommand
|
||||||
Private m_cmdExtend As ICommand
|
Private m_cmdExtend As ICommand
|
||||||
|
|
||||||
@@ -417,33 +530,33 @@ Public Class TFSEditorVM
|
|||||||
m_LayerList(Index2).SetFCurr(dNewFCurr)
|
m_LayerList(Index2).SetFCurr(dNewFCurr)
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
Case MediaTypes.SECTIONCHANGE
|
'Case MediaTypes.SECTIONCHANGE
|
||||||
Dim ChangeIndexList As New List(Of Integer)({0})
|
' Dim ChangeIndexList As New List(Of Integer)({0})
|
||||||
Dim dPrevLength As Double = m_LayerList(0).dLength
|
' Dim dPrevLength As Double = m_LayerList(0).dLength
|
||||||
' recupero punti di rottura
|
' ' recupero punti di rottura
|
||||||
For Index = 1 To m_LayerList.Count() - 1
|
' For Index = 1 To m_LayerList.Count() - 1
|
||||||
Dim dCurrLength = m_LayerList(Index)
|
' Dim dCurrLength = m_LayerList(Index)
|
||||||
If dPrevLength < m_LayerList(Index).dLength * (1 - (m_dModifyValue / 100)) OrElse dPrevLength > m_LayerList(Index).dLength * (1 + (m_dModifyValue / 100)) Then
|
' If dPrevLength < m_LayerList(Index).dLength * (1 - (m_dModifyValue / 100)) OrElse dPrevLength > m_LayerList(Index).dLength * (1 + (m_dModifyValue / 100)) Then
|
||||||
ChangeIndexList.Add(Index)
|
' ChangeIndexList.Add(Index)
|
||||||
End If
|
' End If
|
||||||
dPrevLength = m_LayerList(Index).dLength
|
' dPrevLength = m_LayerList(Index).dLength
|
||||||
Next
|
' Next
|
||||||
If ChangeIndexList(ChangeIndexList.Count - 1) <> m_LayerList.Count() - 1 Then
|
' If ChangeIndexList(ChangeIndexList.Count - 1) <> m_LayerList.Count() - 1 Then
|
||||||
ChangeIndexList.Add(m_LayerList.Count() - 1)
|
' ChangeIndexList.Add(m_LayerList.Count() - 1)
|
||||||
End If
|
' End If
|
||||||
' ricalcolo media sugli intervalli trovati
|
' ' ricalcolo media sugli intervalli trovati
|
||||||
For Index = 0 To ChangeIndexList.Count() - 2
|
' For Index = 0 To ChangeIndexList.Count() - 2
|
||||||
Dim dFSum As Double = 0
|
' Dim dFSum As Double = 0
|
||||||
Dim dFIndex As Double = 0
|
' Dim dFIndex As Double = 0
|
||||||
For Index2 = ChangeIndexList(Index) To ChangeIndexList(Index + 1)
|
' For Index2 = ChangeIndexList(Index) To ChangeIndexList(Index + 1)
|
||||||
dFSum += m_LayerList(Index2).sFCurr
|
' dFSum += m_LayerList(Index2).sFCurr
|
||||||
dFIndex += 1
|
' dFIndex += 1
|
||||||
Next
|
' Next
|
||||||
Dim dNewFCurr As Double = dFSum / dFIndex
|
' Dim dNewFCurr As Double = dFSum / dFIndex
|
||||||
For Index2 = ChangeIndexList(Index) To ChangeIndexList(Index + 1)
|
' For Index2 = ChangeIndexList(Index) To ChangeIndexList(Index + 1)
|
||||||
m_LayerList(Index2).SetFCurr(dNewFCurr)
|
' m_LayerList(Index2).SetFCurr(dNewFCurr)
|
||||||
Next
|
' Next
|
||||||
Next
|
' Next
|
||||||
Case MediaTypes.SELECTION
|
Case MediaTypes.SELECTION
|
||||||
If m_SelLayers.Count <= 0 Then Return
|
If m_SelLayers.Count <= 0 Then Return
|
||||||
Dim dFSum As Double = 0
|
Dim dFSum As Double = 0
|
||||||
@@ -475,6 +588,29 @@ Public Class TFSEditorVM
|
|||||||
|
|
||||||
#End Region ' Media
|
#End Region ' Media
|
||||||
|
|
||||||
|
#Region "Update"
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Returns a command that do CPlaneTop.
|
||||||
|
''' </summary>
|
||||||
|
Public ReadOnly Property Update_Command As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdUpdate Is Nothing Then
|
||||||
|
m_cmdUpdate = New Command(AddressOf Update)
|
||||||
|
End If
|
||||||
|
Return m_cmdUpdate
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
|
''' </summary>
|
||||||
|
Public Sub Update()
|
||||||
|
Map.refSliceManagerVM.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Update
|
||||||
|
|
||||||
#Region "Reset"
|
#Region "Reset"
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
@@ -571,14 +707,14 @@ Public Class TFSLayer
|
|||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property sTMin As String
|
Public ReadOnly Property sTMin As String
|
||||||
Get
|
Get
|
||||||
Return DoubleToString(m_dTMin, 0)
|
Return SecondsToStringConverter(m_dTMin)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_dTTrg As Double
|
Private m_dTTrg As Double
|
||||||
Public ReadOnly Property sTTrg As String
|
Public ReadOnly Property sTTrg As String
|
||||||
Get
|
Get
|
||||||
Return DoubleToString(m_dTTrg, 0)
|
Return SecondsToStringConverter(m_dTTrg)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -590,7 +726,7 @@ Public Class TFSLayer
|
|||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property sTMax As String
|
Public ReadOnly Property sTMax As String
|
||||||
Get
|
Get
|
||||||
Return DoubleToString(m_dTMax, 0)
|
Return SecondsToStringConverter(m_dTMax)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -602,14 +738,14 @@ Public Class TFSLayer
|
|||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property sTCurr As String
|
Public ReadOnly Property sTCurr As String
|
||||||
Get
|
Get
|
||||||
Return DoubleToString(m_dTCurr, 0)
|
Return SecondsToStringConverter(m_dTCurr)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_dTWait As Double
|
Private m_dTWait As Double
|
||||||
Public Property sTWait As String
|
Public Property sTWait As String
|
||||||
Get
|
Get
|
||||||
Return LenToString(m_dTWait, 0)
|
Return SecondsToStringConverter(m_dTWait)
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
Dim dNewValue As Double
|
Dim dNewValue As Double
|
||||||
@@ -818,4 +954,12 @@ Public Class TFSLayer
|
|||||||
m_dSpeed = dSpeed
|
m_dSpeed = dSpeed
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Function SecondsToStringConverter(value As Double) As String
|
||||||
|
Dim dtTime As TimeSpan = TimeSpan.FromSeconds(value)
|
||||||
|
Dim dHours As Double = Math.Floor(dtTime.TotalHours)
|
||||||
|
Dim dMinutes As Double = Math.Floor(dtTime.Minutes)
|
||||||
|
Dim dSeconds As Double = Math.Ceiling(dtTime.Seconds)
|
||||||
|
Return If(dHours > 0, dHours.ToString("00") & ":", "") & If(dHours > 0, dMinutes.ToString("00"), dMinutes.ToString()) & ":" & dSeconds.ToString("00")
|
||||||
|
End Function
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<ToggleButton x:Name="ModifyBtn"
|
<ToggleButton x:Name="ModifyBtn"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Content="{Binding SelectedItem.sName, ElementName=ModifyModeListBox}"
|
Content="{Binding SelModifyModeName}"
|
||||||
IsChecked="{Binding bModify_IsChecked}"
|
IsChecked="{Binding bModify_IsChecked}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource TopPanel_Modify_ToggleButton}">
|
Style="{StaticResource TopPanel_Modify_ToggleButton}">
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ Public Class TopPanelVM
|
|||||||
Map.refLeftPanelVM.SetSelPanel(LeftPanelVM.Panels.NULL)
|
Map.refLeftPanelVM.SetSelPanel(LeftPanelVM.Panels.NULL)
|
||||||
NotifyPropertyChanged(NameOf(SelModifyMode))
|
NotifyPropertyChanged(NameOf(SelModifyMode))
|
||||||
End If
|
End If
|
||||||
|
NotifyPropertyChanged(NameOf(SelModifyModeName))
|
||||||
' chiudo il popup
|
' chiudo il popup
|
||||||
SetModifyIsChecked(False)
|
SetModifyIsChecked(False)
|
||||||
End Set
|
End Set
|
||||||
@@ -128,8 +129,15 @@ Public Class TopPanelVM
|
|||||||
Friend Sub SetSelModifyMode(ModifyMode As ModifyModes)
|
Friend Sub SetSelModifyMode(ModifyMode As ModifyModes)
|
||||||
SelModifyMode = m_ModifyModeList.FirstOrDefault(Function(x) x.ModifyMode = ModifyMode)
|
SelModifyMode = m_ModifyModeList.FirstOrDefault(Function(x) x.ModifyMode = ModifyMode)
|
||||||
NotifyPropertyChanged(NameOf(SelModifyMode))
|
NotifyPropertyChanged(NameOf(SelModifyMode))
|
||||||
|
NotifyPropertyChanged(NameOf(SelModifyModeName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public ReadOnly Property SelModifyModeName As String
|
||||||
|
Get
|
||||||
|
Return If(Not IsNothing(m_SelModifyMode) AndAlso m_SelModifyMode.ModifyMode <> ModifyModes.NULL, m_SelModifyMode.sName, "Modify")
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Private m_bModify_IsChecked As Boolean
|
Private m_bModify_IsChecked As Boolean
|
||||||
Public Property bModify_IsChecked As Boolean
|
Public Property bModify_IsChecked As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -171,10 +179,8 @@ Public Class TopPanelVM
|
|||||||
End If
|
End If
|
||||||
m_SelPart = value
|
m_SelPart = value
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
' Eseguo la selezione
|
' deseleziono tutto
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
' EgtSetMark(m_SelPart.nPrintSolidId)
|
|
||||||
EgtDraw()
|
|
||||||
' imposto lavorazione e materiale del pezzo selezionato
|
' imposto lavorazione e materiale del pezzo selezionato
|
||||||
Map.refCurrMachiningPanelVM.ReadMachParamFromSelPart()
|
Map.refCurrMachiningPanelVM.ReadMachParamFromSelPart()
|
||||||
Dim DbMachining As MachiningIndex = MachiningList.FirstOrDefault(Function(x) x.sGUID = Map.refCurrMachiningPanelVM.CurrMachining.sCurrGUID)
|
Dim DbMachining As MachiningIndex = MachiningList.FirstOrDefault(Function(x) x.sGUID = Map.refCurrMachiningPanelVM.CurrMachining.sCurrGUID)
|
||||||
@@ -183,6 +189,9 @@ Public Class TopPanelVM
|
|||||||
' notifico posizione pezzo
|
' notifico posizione pezzo
|
||||||
Map.refDispositionPanelVM.RefreshPos()
|
Map.refDispositionPanelVM.RefreshPos()
|
||||||
Map.refSliceManagerVM.UpdateDimensions()
|
Map.refSliceManagerVM.UpdateDimensions()
|
||||||
|
' aggiorno area di estrusione
|
||||||
|
CurrentMachine.UpdateExtrusionArea()
|
||||||
|
EgtDraw()
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
@@ -265,7 +274,27 @@ Public Class TopPanelVM
|
|||||||
WriteMainPrivateProfileString(S_PRINTING3D, K_CURRMACHINING, value.sGUID.ToString())
|
WriteMainPrivateProfileString(S_PRINTING3D, K_CURRMACHINING, value.sGUID.ToString())
|
||||||
' imposto selezionata come corrente
|
' imposto selezionata come corrente
|
||||||
If Not IsNothing(m_SelPart) AndAlso (IsNothing(m_SelMachining) OrElse value.sGUID <> m_SelMachining.sGUID) Then
|
If Not IsNothing(m_SelPart) AndAlso (IsNothing(m_SelMachining) OrElse value.sGUID <> m_SelMachining.sGUID) Then
|
||||||
|
Dim GeneralCathegory As MachiningCathegory = Map.refTopPanelVM.CurrMachining.CathegoryList.FirstOrDefault(Function(x) x.Type = MachiningCathegory.Cathegories.GENERAL)
|
||||||
|
Dim OldSlicingTypeValue As Machining.MPAR_SLICINGTYPE = Nothing
|
||||||
|
Dim NewSlicingTypeValue As Machining.MPAR_SLICINGTYPE = Nothing
|
||||||
|
If Not IsNothing(GeneralCathegory) Then
|
||||||
|
Dim SlicingTypeParam As ComboMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(x) x.Type = MachiningParam.Params.SLICINGTYPE)
|
||||||
|
If Not IsNothing(SlicingTypeParam) Then
|
||||||
|
OldSlicingTypeValue = SlicingTypeParam.SelValue.Id
|
||||||
|
End If
|
||||||
|
End If
|
||||||
Map.refCurrMachiningPanelVM.SetCurrMachining(New CurrMachining(m_SelPart.nPartId, value.nIndex))
|
Map.refCurrMachiningPanelVM.SetCurrMachining(New CurrMachining(m_SelPart.nPartId, value.nIndex))
|
||||||
|
GeneralCathegory = Map.refTopPanelVM.CurrMachining.CathegoryList.FirstOrDefault(Function(x) x.Type = MachiningCathegory.Cathegories.GENERAL)
|
||||||
|
If Not IsNothing(GeneralCathegory) Then
|
||||||
|
Dim SlicingTypeParam As ComboMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(x) x.Type = MachiningParam.Params.SLICINGTYPE)
|
||||||
|
If Not IsNothing(SlicingTypeParam) Then
|
||||||
|
NewSlicingTypeValue = SlicingTypeParam.SelValue.Id
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
If IsNothing(OldSlicingTypeValue) OrElse IsNothing(NewSlicingTypeValue) OrElse OldSlicingTypeValue <> NewSlicingTypeValue Then
|
||||||
|
' aggiorno area di estrusione
|
||||||
|
CurrentMachine.UpdateExtrusionArea()
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
m_SelMachining = value
|
m_SelMachining = value
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
<EgtWPFLib5:EgtMainWindow x:Class="UpdateMachineV"
|
||||||
|
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"
|
||||||
|
Title="Update Machine"
|
||||||
|
SizeToContent="WidthAndHeight"
|
||||||
|
WindowStartupLocation="CenterOwner"
|
||||||
|
Style="{StaticResource Dialog_Window}">
|
||||||
|
|
||||||
|
<Grid Margin="2.5,2.5,2.5,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Text="{Binding UpdateMachine_Msg}"
|
||||||
|
Margin="20,20,20,2.5"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<UniformGrid Grid.Row="2"
|
||||||
|
Rows="1"
|
||||||
|
Margin="0,20,0,0">
|
||||||
|
<Button Content="{Binding Replace_Msg}"
|
||||||
|
Command="{Binding Replace_Command}"
|
||||||
|
IsDefault="True"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding Update_Msg}"
|
||||||
|
Command="{Binding Update_Command}"
|
||||||
|
IsDefault="True"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Command="{Binding Cancel_Command}"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}">
|
||||||
|
<Image Source="\Resources\Common\Cancel.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
Imports EgtUILib
|
||||||
|
|
||||||
|
Public Class UpdateMachineV
|
||||||
|
|
||||||
|
Private WithEvents m_UpdateMachineVM As UpdateMachineVM
|
||||||
|
|
||||||
|
Public Shadows DialogResult As MessageBoxResult = MessageBoxResult.Cancel
|
||||||
|
|
||||||
|
|
||||||
|
Public Sub New(Owner As Window, UpdateMachineVM As UpdateMachineVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
' This call is required by the designer.
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = UpdateMachineVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_UpdateMachineVM = UpdateMachineVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CloseWindow(DialogResult As MessageBoxResult) Handles m_UpdateMachineVM.m_CloseWindow
|
||||||
|
Me.DialogResult = DialogResult
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||