OmagCUT :
- Aggiunta pagina MoveRawPart.
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@
|
||||
<ComboBox Name="AuxiliaryToolCmBx" Grid.Column="1" Grid.Row="3" Visibility="Hidden">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Label Content="{Binding}" FontSize="20" />
|
||||
<Label Content="{Binding sName}" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
|
||||
+19
-33
@@ -10,6 +10,8 @@ Public Class AlarmsPageUC
|
||||
Private m_CurrentMachine As CurrentMachine
|
||||
Friend m_CN As CN_generico
|
||||
|
||||
' Definizione pagina attrezzaggio
|
||||
Friend m_SetUpPage As SetUpPage
|
||||
' Properties
|
||||
Private m_bFirst As Boolean = True
|
||||
|
||||
@@ -17,7 +19,7 @@ Public Class AlarmsPageUC
|
||||
Private m_SawList As New List(Of String)
|
||||
Private m_DrillList As New List(Of String)
|
||||
Private m_MillList As New List(Of String)
|
||||
Private m_AuxToolTypeList As New List(Of String)
|
||||
Private m_AuxToolTypeList As New List(Of StringIdCmBx)
|
||||
|
||||
Private Sub AlarmsPage_Initialized(sender As Object, e As EventArgs)
|
||||
|
||||
@@ -60,17 +62,18 @@ Public Class AlarmsPageUC
|
||||
Case CurrentMachine.MountedToolConfigs.SAW
|
||||
'Non eseguo alcuna azione
|
||||
Case CurrentMachine.MountedToolConfigs.SAWANDAUXTOOL
|
||||
m_AuxToolTypeList.Add("Nessuno")
|
||||
If m_CurrentMachine.bDrilling Then
|
||||
m_AuxToolTypeList.Add("Fresatura")
|
||||
m_AuxToolTypeList.Add(New StringIdCmBx(2, EgtMsg(MSG_ALARMSPAGEUC + 22)))
|
||||
If m_CurrentMachine.bMilling Then
|
||||
m_AuxToolTypeList.Add("Foratura")
|
||||
m_AuxToolTypeList.Add(New StringIdCmBx(1, EgtMsg(MSG_ALARMSPAGEUC + 21)))
|
||||
End If
|
||||
Else
|
||||
If m_CurrentMachine.bMilling Then
|
||||
m_AuxToolTypeList.Add("Foratura")
|
||||
m_AuxToolTypeList.Add(New StringIdCmBx(1, EgtMsg(MSG_ALARMSPAGEUC + 21)))
|
||||
End If
|
||||
End If
|
||||
' Aggiungo elemento nessuno in fondo alla lista
|
||||
m_AuxToolTypeList.Add(New StringIdCmBx(0, EgtMsg(MSG_ALARMSPAGEUC + 20)))
|
||||
|
||||
AuxiliaryToolTxBl.Visibility = Windows.Visibility.Visible
|
||||
AuxiliaryToolCmBx.Visibility = Windows.Visibility.Visible
|
||||
@@ -80,41 +83,22 @@ Public Class AlarmsPageUC
|
||||
CurrMillCmBx.Visibility = Windows.Visibility.Hidden
|
||||
|
||||
If m_CurrentMachine.sCurrDrill <> String.Empty Then
|
||||
AuxiliaryToolCmBx.SelectedItem = "Foratura"
|
||||
AuxiliaryToolCmBx.SelectedItem = StringIdCmBx.FromIdToStringIdCmBx(1, m_AuxToolTypeList)
|
||||
CurrDrillTxBl.SetValue(Grid.RowProperty, 4)
|
||||
CurrDrillCmBx.SetValue(Grid.RowProperty, 5)
|
||||
CurrDrillTxBl.Visibility = Windows.Visibility.Visible
|
||||
CurrDrillCmBx.Visibility = Windows.Visibility.Visible
|
||||
ElseIf m_CurrentMachine.sCurrMill <> String.Empty Then
|
||||
AuxiliaryToolCmBx.SelectedItem = "Fresatura"
|
||||
AuxiliaryToolCmBx.SelectedItem = StringIdCmBx.FromIdToStringIdCmBx(2, m_AuxToolTypeList)
|
||||
CurrMillTxBl.Visibility = Windows.Visibility.Visible
|
||||
CurrMillCmBx.Visibility = Windows.Visibility.Visible
|
||||
Else
|
||||
AuxiliaryToolCmBx.SelectedItem = "Nessuno"
|
||||
AuxiliaryToolCmBx.SelectedItem = StringIdCmBx.FromIdToStringIdCmBx(0, m_AuxToolTypeList)
|
||||
End If
|
||||
|
||||
Case CurrentMachine.MountedToolConfigs.MANUALTOOLCHANGER, CurrentMachine.MountedToolConfigs.TOOLCHANGER
|
||||
SetUpBtn.Visibility = Windows.Visibility.Visible
|
||||
'CreateToolList(MCH_TF.DRILLBIT, m_DrillList)
|
||||
'm_DrillList.Add("Nessuno")
|
||||
'CreateToolList(MCH_TF.MILL, m_MillList)
|
||||
'm_MillList.Add("Nessuna")
|
||||
'AuxiliaryToolTxBl.Visibility = Windows.Visibility.Hidden
|
||||
'AuxiliaryToolCmBx.Visibility = Windows.Visibility.Hidden
|
||||
'CurrDrillTxBl.Visibility = Windows.Visibility.Visible
|
||||
'CurrDrillCmBx.Visibility = Windows.Visibility.Visible
|
||||
'CurrMillTxBl.Visibility = Windows.Visibility.Visible
|
||||
'CurrMillCmBx.Visibility = Windows.Visibility.Visible
|
||||
'If m_CurrentMachine.sCurrDrill <> String.Empty Then
|
||||
' CurrDrillCmBx.SelectedItem = m_CurrentMachine.sCurrDrill
|
||||
'Else
|
||||
' CurrDrillCmBx.SelectedItem = "Nessuno"
|
||||
'End If
|
||||
'If m_CurrentMachine.sCurrMill <> String.Empty Then
|
||||
' CurrMillCmBx.SelectedItem = m_CurrentMachine.sCurrMill
|
||||
'Else
|
||||
' CurrMillCmBx.SelectedItem = "Nessuna"
|
||||
'End If
|
||||
|
||||
End Select
|
||||
|
||||
' Leggo offset fori
|
||||
@@ -144,15 +128,16 @@ Public Class AlarmsPageUC
|
||||
End Sub
|
||||
|
||||
Private Sub AuxiliaryToolCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles AuxiliaryToolCmBx.SelectionChanged
|
||||
Select Case AuxiliaryToolCmBx.SelectedItem
|
||||
Case "Nessuno"
|
||||
Dim SelectedItem As StringIdCmBx = AuxiliaryToolCmBx.SelectedItem
|
||||
Select Case SelectedItem.nId
|
||||
Case 0
|
||||
CurrDrillTxBl.Visibility = Windows.Visibility.Hidden
|
||||
CurrDrillCmBx.Visibility = Windows.Visibility.Hidden
|
||||
CurrMillTxBl.Visibility = Windows.Visibility.Hidden
|
||||
CurrMillCmBx.Visibility = Windows.Visibility.Hidden
|
||||
m_CurrentMachine.sCurrDrill = String.Empty
|
||||
m_CurrentMachine.sCurrMill = String.Empty
|
||||
Case "Foratura"
|
||||
Case 1
|
||||
CreateToolList(MCH_TF.DRILLBIT, m_DrillList)
|
||||
m_DrillList.Add("Nessuno")
|
||||
CurrDrillTxBl.SetValue(Grid.RowProperty, 4)
|
||||
@@ -167,7 +152,7 @@ Public Class AlarmsPageUC
|
||||
CurrDrillCmBx.Visibility = Windows.Visibility.Visible
|
||||
CurrMillTxBl.Visibility = Windows.Visibility.Hidden
|
||||
CurrMillCmBx.Visibility = Windows.Visibility.Hidden
|
||||
Case "Fresatura"
|
||||
Case 2
|
||||
CreateToolList(MCH_TF.MILL, m_MillList)
|
||||
m_MillList.Add("Nessuna")
|
||||
If m_CurrentMachine.sCurrMill = String.Empty Then
|
||||
@@ -227,7 +212,8 @@ Public Class AlarmsPageUC
|
||||
|
||||
Private Sub SetUpBtn_Click(sender As Object, e As RoutedEventArgs) Handles SetUpBtn.Click
|
||||
m_MainWindow.m_MachinePageUC.MachinePageGrid.Children.Remove(Me)
|
||||
m_MainWindow.m_MachinePageUC.MachinePageGrid.Children.Add(New SetUpPage)
|
||||
m_SetUpPage = New SetUpPage
|
||||
m_MainWindow.m_MachinePageUC.MachinePageGrid.Children.Add(m_SetUpPage)
|
||||
End Sub
|
||||
|
||||
Private Sub HolesOffsetTxBx_EgtClosed(sender As Object, e As EventArgs) Handles HolesOffsetTxBx.EgtClosed
|
||||
|
||||
+33
-19
@@ -12,22 +12,32 @@ Public Class CadCutPageUC
|
||||
' Dichiarazione delle Page UserControl
|
||||
Friend WithEvents m_NestPage As NestPageUC
|
||||
Friend m_SplitPage As SplitPageUC
|
||||
Friend m_MoveRawPartPage As MoveRawPartPage
|
||||
|
||||
' Variabile che indica la modalità
|
||||
Friend m_bNesting As Boolean = False
|
||||
Friend m_MovePartPage As MovePartsPages
|
||||
|
||||
' Oggetto di gestione della macchina fotografica
|
||||
Friend m_Camera As New Camera
|
||||
|
||||
' Elenco pagine interne a cadcutpage
|
||||
Friend Enum MovePartsPages As Integer
|
||||
Nest
|
||||
Split
|
||||
MoveRawPart
|
||||
End Enum
|
||||
|
||||
Private Sub CadCutPage_Initialized(sender As Object, e As EventArgs)
|
||||
|
||||
' Creazione delle Page UserControl
|
||||
m_NestPage = New NestPageUC
|
||||
m_SplitPage = New SplitPageUC
|
||||
m_MoveRawPartPage = New MoveRawPartPage
|
||||
|
||||
' Posizionamento nella griglia delle Page UserControl
|
||||
m_NestPage.SetValue(Grid.RowSpanProperty, 3)
|
||||
m_SplitPage.SetValue(Grid.RowSpanProperty, 3)
|
||||
m_MoveRawPartPage.SetValue(Grid.RowSpanProperty, 3)
|
||||
|
||||
' Nascondo progress e label per messaggi
|
||||
PhotoProgress.Visibility = Windows.Visibility.Hidden
|
||||
@@ -44,7 +54,8 @@ Public Class CadCutPageUC
|
||||
m_CurrProjPage = m_MainWindow.m_CurrentProjectPageUC
|
||||
' Seleziono UserControl di apertura
|
||||
CadCutPageGrid.Children.Add(m_NestPage)
|
||||
m_bNesting = True
|
||||
m_MovePartPage = MovePartsPages.Nest
|
||||
'm_bNesting = True
|
||||
SplitImage.Source = New System.Windows.Media.Imaging.BitmapImage(New Uri("/Resources/Split.png", UriKind.Relative))
|
||||
EgtZoom(ZM.ALL)
|
||||
' Inizializzo gestore macchina fotografica
|
||||
@@ -92,26 +103,29 @@ Public Class CadCutPageUC
|
||||
|
||||
Private Sub CadCutPage_Unloaded(sender As Object, e As RoutedEventArgs)
|
||||
' Chiudo tutti gli UserControl attivi
|
||||
If m_bNesting Then
|
||||
CadCutPageGrid.Children.Remove(m_NestPage)
|
||||
Else
|
||||
CadCutPageGrid.Children.Remove(m_SplitPage)
|
||||
End If
|
||||
Select Case m_MovePartPage
|
||||
Case MovePartsPages.Nest
|
||||
CadCutPageGrid.Children.Remove(m_NestPage)
|
||||
Case MovePartsPages.Split
|
||||
CadCutPageGrid.Children.Remove(m_SplitPage)
|
||||
Case MovePartsPages.MoveRawPart
|
||||
CadCutPageGrid.Children.Remove(m_MoveRawPartPage)
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
Private Sub SplitBtn_Click(sender As Object, e As RoutedEventArgs) Handles SplitBtn.Click
|
||||
If m_bNesting Then
|
||||
SplitImage.Source = New System.Windows.Media.Imaging.BitmapImage(New Uri("/Resources/Nest.png", UriKind.Relative))
|
||||
CadCutPageGrid.Children.Remove(m_NestPage)
|
||||
CadCutPageGrid.Children.Add(m_SplitPage)
|
||||
m_bNesting = False
|
||||
Else
|
||||
SplitImage.Source = New System.Windows.Media.Imaging.BitmapImage(New Uri("/Resources/Split.png", UriKind.Relative))
|
||||
CadCutPageGrid.Children.Remove(m_SplitPage)
|
||||
CadCutPageGrid.Children.Add(m_NestPage)
|
||||
m_bNesting = True
|
||||
End If
|
||||
|
||||
Select Case m_MovePartPage
|
||||
Case MovePartsPages.Nest
|
||||
SplitImage.Source = New System.Windows.Media.Imaging.BitmapImage(New Uri("/Resources/Nest.png", UriKind.Relative))
|
||||
CadCutPageGrid.Children.Remove(m_NestPage)
|
||||
CadCutPageGrid.Children.Add(m_SplitPage)
|
||||
m_MovePartPage = MovePartsPages.Split
|
||||
Case MovePartsPages.Split
|
||||
SplitImage.Source = New System.Windows.Media.Imaging.BitmapImage(New Uri("/Resources/Split.png", UriKind.Relative))
|
||||
CadCutPageGrid.Children.Remove(m_SplitPage)
|
||||
CadCutPageGrid.Children.Add(m_NestPage)
|
||||
m_MovePartPage = MovePartsPages.Nest
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
Private Sub NewBtn_Click(sender As Object, e As RoutedEventArgs) Handles NewBtn.Click
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<ComboBox Name="AuxiliaryMachiningCmBx" Grid.Column="1" Grid.Row="3" Visibility="Hidden">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Label Content="{Binding}" FontSize="20" />
|
||||
<Label Content="{Binding sName}" FontSize="20" />
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
|
||||
+52
-16
@@ -7,7 +7,7 @@ Public Class ChooseMachining
|
||||
Private m_CurrentMachine As CurrentMachine = m_MainWindow.m_CurrentMachine
|
||||
' Liste che contengono gli elementi appartenenti alle ComboBox
|
||||
Private m_SawingList As New List(Of String)
|
||||
Private m_AuxiliaryMachiningTypeList As New List(Of String)
|
||||
Private m_AuxMachTypeList As New List(Of StringIdCmBx)
|
||||
Private m_DrillingList As New List(Of String)
|
||||
Private m_MillingList As New List(Of String)
|
||||
' Numero righe della finestra, necessario per non ridimensionarla quando si cambia il tipo di utensile ausiliario
|
||||
@@ -23,7 +23,7 @@ Public Class ChooseMachining
|
||||
Me.Top = Owner.Top + Owner.Height / 2 - Me.Height / 2
|
||||
Me.Left = Owner.Left + Owner.Width / 2 - Me.Width / 2
|
||||
CurrSawingCmBx.ItemsSource = m_SawingList
|
||||
AuxiliaryMachiningCmBx.ItemsSource = m_AuxiliaryMachiningTypeList
|
||||
AuxiliaryMachiningCmBx.ItemsSource = m_AuxMachTypeList
|
||||
CurrDrillingCmBx.ItemsSource = m_DrillingList
|
||||
CurrMillingCmBx.ItemsSource = m_MillingList
|
||||
|
||||
@@ -74,31 +74,33 @@ Public Class ChooseMachining
|
||||
CurrSawingCmBx.SelectedItem = If(Not IsNothing(m_SawingList(0)), m_SawingList(0), Nothing)
|
||||
|
||||
If Not m_CurrentMachine.MountedToolConfig = CurrentMachine.MountedToolConfigs.SAW Then
|
||||
m_AuxiliaryMachiningTypeList.Add("Nessuna")
|
||||
If m_CurrentMachine.bDrilling Then
|
||||
m_AuxiliaryMachiningTypeList.Add("Fresatura")
|
||||
m_AuxMachTypeList.Add(New StringIdCmBx(2, EgtMsg(MSG_CHOOSEMACHININGPAGEUC + 12)))
|
||||
If m_CurrentMachine.bMilling Then
|
||||
m_AuxiliaryMachiningTypeList.Add("Foratura")
|
||||
m_AuxMachTypeList.Add(New StringIdCmBx(1, EgtMsg(MSG_CHOOSEMACHININGPAGEUC + 11)))
|
||||
If m_CurrentMachine.MountedToolConfig = CurrentMachine.MountedToolConfigs.MANUALTOOLCHANGER Or m_CurrentMachine.MountedToolConfig = CurrentMachine.MountedToolConfigs.TOOLCHANGER Then
|
||||
m_AuxiliaryMachiningTypeList.Add("Entrambe")
|
||||
m_AuxMachTypeList.Add(New StringIdCmBx(3, EgtMsg(MSG_CHOOSEMACHININGPAGEUC + 13)))
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
If m_CurrentMachine.bMilling Then
|
||||
m_AuxiliaryMachiningTypeList.Add("Foratura")
|
||||
m_AuxMachTypeList.Add(New StringIdCmBx(1, EgtMsg(MSG_CHOOSEMACHININGPAGEUC + 11)))
|
||||
End If
|
||||
End If
|
||||
' Aggiungo nessuna come ultimo elemento della lista
|
||||
m_AuxMachTypeList.Add(New StringIdCmBx(0, EgtMsg(MSG_CHOOSEMACHININGPAGEUC + 10)))
|
||||
|
||||
If m_CurrentMachine.sCurrDrilling <> String.Empty Then
|
||||
If m_CurrentMachine.sCurrMilling <> String.Empty Then
|
||||
AuxiliaryMachiningCmBx.SelectedItem = "Entrambe"
|
||||
AuxiliaryMachiningCmBx.SelectedItem = StringIdCmBx.FromIdToStringIdCmBx(3, m_AuxMachTypeList)
|
||||
Else
|
||||
AuxiliaryMachiningCmBx.SelectedItem = "Foratura"
|
||||
AuxiliaryMachiningCmBx.SelectedItem = StringIdCmBx.FromIdToStringIdCmBx(1, m_AuxMachTypeList)
|
||||
End If
|
||||
Else
|
||||
If m_CurrentMachine.sCurrMilling <> String.Empty Then
|
||||
AuxiliaryMachiningCmBx.SelectedItem = "Fresatura"
|
||||
AuxiliaryMachiningCmBx.SelectedItem = StringIdCmBx.FromIdToStringIdCmBx(2, m_AuxMachTypeList)
|
||||
Else
|
||||
AuxiliaryMachiningCmBx.SelectedItem = "Nessuna"
|
||||
AuxiliaryMachiningCmBx.SelectedItem = StringIdCmBx.FromIdToStringIdCmBx(0, m_AuxMachTypeList)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
@@ -174,8 +176,9 @@ Public Class ChooseMachining
|
||||
End Sub
|
||||
|
||||
Private Sub AuxiliaryMachiningCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles AuxiliaryMachiningCmBx.SelectionChanged
|
||||
Select Case AuxiliaryMachiningCmBx.SelectedItem
|
||||
Case "Nessuna"
|
||||
Dim SelectedItem As StringIdCmBx = AuxiliaryMachiningCmBx.SelectedItem
|
||||
Select Case SelectedItem.nId
|
||||
Case 0
|
||||
If m_RowNumber > 8 Then
|
||||
For Index = m_RowNumber - 1 To 8 Step -1
|
||||
ChooseMachiningGrid.RowDefinitions.RemoveAt(Index)
|
||||
@@ -190,7 +193,7 @@ Public Class ChooseMachining
|
||||
CurrMillingTxBl.Visibility = Windows.Visibility.Hidden
|
||||
CurrMillingCmBx.Visibility = Windows.Visibility.Hidden
|
||||
Me.Height = 341.2
|
||||
Case "Foratura"
|
||||
Case 1
|
||||
' Definizione di due righe della tabella con la giusta altezza
|
||||
If m_RowNumber < 10 Then
|
||||
For Index = 1 To 10 - m_RowNumber
|
||||
@@ -212,7 +215,7 @@ Public Class ChooseMachining
|
||||
CurrMillingTxBl.Visibility = Windows.Visibility.Hidden
|
||||
CurrMillingCmBx.Visibility = Windows.Visibility.Hidden
|
||||
Me.Height = 426.5
|
||||
Case "Fresatura"
|
||||
Case 2
|
||||
' Definizione di due righe della tabella con la giusta altezza
|
||||
If m_RowNumber < 10 Then
|
||||
For Index = 1 To 10 - m_RowNumber
|
||||
@@ -234,7 +237,7 @@ Public Class ChooseMachining
|
||||
CurrMillingTxBl.Visibility = Windows.Visibility.Visible
|
||||
CurrMillingCmBx.Visibility = Windows.Visibility.Visible
|
||||
Me.Height = 426.5
|
||||
Case "Entrambe"
|
||||
Case 3
|
||||
' Definizione di quattro righe della tabella con la giusta altezza
|
||||
If m_RowNumber < 12 Then
|
||||
For Index = 1 To 12 - m_RowNumber
|
||||
@@ -284,3 +287,36 @@ Public Class ChooseMachining
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
Class StringIdCmBx
|
||||
|
||||
Private m_nId As Integer
|
||||
Private m_sName As String
|
||||
|
||||
Friend Shared Function FromIdToStringIdCmBx(nId As Integer, List As List(Of StringIdCmBx)) As StringIdCmBx
|
||||
For Each Item In List
|
||||
If Item.nId = nId Then
|
||||
Return Item
|
||||
End If
|
||||
Next
|
||||
Return Nothing
|
||||
End Function
|
||||
|
||||
Friend ReadOnly Property nId As Integer
|
||||
Get
|
||||
Return m_nId
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property sName As String
|
||||
Get
|
||||
Return m_sName
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Sub New(Id As Integer, sName As String)
|
||||
m_nId = Id
|
||||
m_sName = sName
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
+3
-2
@@ -22,8 +22,9 @@
|
||||
Public Const MSG_MACHINEPAGEUC As Integer = MSG_OMAGCUT + 700
|
||||
Public Const MSG_TOOLSDBPAGEUC As Integer = MSG_OMAGCUT + 720
|
||||
Public Const MSG_MACHININGSDBPAGEUC As Integer = MSG_OMAGCUT + 760
|
||||
Public Const MSG_ALARMSPAGEUC As Integer = MSG_OMAGCUT + 800
|
||||
Public Const MSG_OPTIONSPAGEUC As Integer = MSG_OMAGCUT + 900
|
||||
Public Const MSG_COMBOBOXPARAM As Integer = MSG_OMAGCUT + 800
|
||||
Public Const MSG_ALARMSPAGEUC As Integer = MSG_OMAGCUT + 900
|
||||
Public Const MSG_OPTIONSPAGEUC As Integer = MSG_OMAGCUT + 950
|
||||
Public Const MSG_EGTMSGBOX As Integer = MSG_OMAGCUT + 1100
|
||||
|
||||
End Module
|
||||
|
||||
@@ -141,6 +141,10 @@ Public Class MachinePageUC
|
||||
Private Sub MachinePage_Unloaded(sender As Object, e As RoutedEventArgs)
|
||||
Select Case m_ActiveMachinePage
|
||||
Case MachinePages.Alarms
|
||||
If Not IsNothing(m_AlarmsPageUC.m_SetUpPage) And MachinePageGrid.Children.Contains(m_AlarmsPageUC.m_SetUpPage) Then
|
||||
MachinePageGrid.Children.Remove(m_AlarmsPageUC.m_SetUpPage)
|
||||
MachinePageGrid.Children.Add(m_AlarmsPageUC)
|
||||
End If
|
||||
Case MachinePages.ToolsDb
|
||||
AlarmsBtn.IsChecked = True
|
||||
ToolsDBBtn.IsChecked = False
|
||||
|
||||
@@ -17,13 +17,13 @@ Public Class MachiningDbPageUC
|
||||
Private m_sMachiningName As String = String.Empty
|
||||
|
||||
'Array che contengono le variabili per Combobox
|
||||
Dim WorkSide() As String = {"Centro", "Sinistra", "Destra"}
|
||||
Dim HeadSide() As String = {"Sinistra", "Destra"}
|
||||
Dim LeadInType() As String = {"Centrato", "Interno", "Esterno", "Esteso centrato", "Esteso esterno"}
|
||||
Dim ExtLinkType() As String = {"Centrato", "Esteso precedente", "Esteso successivo", "Estesi entrambi"}
|
||||
Dim LeadOutType() As String = {"Centrata", "Interna", "Esterna"}
|
||||
Dim CurveUse() As String = {"Salta", "Approssima", "Convesso"}
|
||||
Dim StepType() As String = {"Zig zag", "Una via", "Va e Vieni"}
|
||||
Dim WorkSide() As String
|
||||
Dim HeadSide() As String
|
||||
Dim LeadInType() As String
|
||||
Dim ExtLinkType() As String
|
||||
Dim LeadOutType() As String
|
||||
Dim CurveUse() As String
|
||||
Dim StepType() As String
|
||||
Dim SawTool As New List(Of String)
|
||||
Dim DrillTool As New List(Of String)
|
||||
|
||||
@@ -35,6 +35,15 @@ Public Class MachiningDbPageUC
|
||||
' Assegno la lista degli utensili come sorgente del treeview
|
||||
MachiningTreeView.ItemsSource = MachiningsList
|
||||
|
||||
' Imposto testo delle combobox da file dei messaggi
|
||||
WorkSide = {EgtMsg(MSG_COMBOBOXPARAM + 21), EgtMsg(MSG_COMBOBOXPARAM + 22), EgtMsg(MSG_COMBOBOXPARAM + 23)}
|
||||
HeadSide = {EgtMsg(MSG_COMBOBOXPARAM + 22), EgtMsg(MSG_COMBOBOXPARAM + 23)}
|
||||
LeadInType = {EgtMsg(MSG_COMBOBOXPARAM + 24), EgtMsg(MSG_COMBOBOXPARAM + 25), EgtMsg(MSG_COMBOBOXPARAM + 26), EgtMsg(MSG_COMBOBOXPARAM + 27), EgtMsg(MSG_COMBOBOXPARAM + 28)}
|
||||
ExtLinkType = {EgtMsg(MSG_COMBOBOXPARAM + 24), EgtMsg(MSG_COMBOBOXPARAM + 29), EgtMsg(MSG_COMBOBOXPARAM + 30), EgtMsg(MSG_COMBOBOXPARAM + 31)}
|
||||
LeadOutType = {EgtMsg(MSG_COMBOBOXPARAM + 32), EgtMsg(MSG_COMBOBOXPARAM + 33), EgtMsg(MSG_COMBOBOXPARAM + 34)}
|
||||
CurveUse = {EgtMsg(MSG_COMBOBOXPARAM + 35), EgtMsg(MSG_COMBOBOXPARAM + 36), EgtMsg(MSG_COMBOBOXPARAM + 37)}
|
||||
StepType = {EgtMsg(MSG_COMBOBOXPARAM + 38), EgtMsg(MSG_COMBOBOXPARAM + 39), EgtMsg(MSG_COMBOBOXPARAM + 40)}
|
||||
|
||||
'Assegno array a combobox
|
||||
WorkSideCmBx.ItemsSource = WorkSide
|
||||
HeadSideCmBx.ItemsSource = HeadSide
|
||||
|
||||
+1
-1
@@ -675,7 +675,7 @@ Class MainWindow
|
||||
|
||||
Private Function ExitFromSplit() As Boolean
|
||||
' Se non sono in split tutto ok
|
||||
If m_ActivePage <> Pages.CadCut OrElse m_CadCutPageUC.m_bNesting Then
|
||||
If m_ActivePage <> Pages.CadCut OrElse m_CadCutPageUC.m_MovePartPage = CadCutPageUC.MovePartsPages.Nest Then
|
||||
Return True
|
||||
End If
|
||||
' Mi assicuro di terminare correttamente lo split
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
<UserControl x:Class="MoveRawPartPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="853.3" d:DesignWidth="256">
|
||||
|
||||
<!-- Definizione della NestPage -->
|
||||
<Grid Grid.Column="0" Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Button Name="UpBtn" Grid.Column="1" Grid.Row="1"
|
||||
Style="{StaticResource OmagCut_TopGrayGradientYellowButton}">
|
||||
<Image Source="Resources/UpArrow.png" Width="65" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Button>
|
||||
<Button Name="LeftBtn" Grid.Column="0" Grid.Row="2"
|
||||
Style="{StaticResource OmagCut_LeftGrayGradientYellowButton}">
|
||||
<Image Source="Resources/LeftArrow.png" Width="65" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Button>
|
||||
<ToggleButton Name="MaximizeMoveBtn" Grid.Column="1" Grid.Row="2"
|
||||
Style="{StaticResource OmagCut_YellowIconToggleButton}">
|
||||
<Image Source="Resources/MaxMove.png" Width="65" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</ToggleButton>
|
||||
<Button Name="RightBtn" Grid.Column="2" Grid.Row="2"
|
||||
Style="{StaticResource OmagCut_RightGrayGradientYellowButton}">
|
||||
<Image Source="Resources/RightArrow.png" Width="65" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Button>
|
||||
|
||||
<EgtWPFLib:EgtTextBox Name="StepMoveTxBx" Grid.Column="0" Grid.Row="3" Width="50"
|
||||
Style="{StaticResource OmagCut_CalculatorTextBox}"/>
|
||||
|
||||
<Button Name="DownBtn" Grid.Column="1" Grid.Row="3"
|
||||
Style="{StaticResource OmagCut_BottomGrayGradientYellowButton}">
|
||||
<Image Source="Resources/DownArrow.png" Width="65" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Button>
|
||||
|
||||
<Grid Grid.Column="2" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<EgtWPFLib:EgtTextBox Name="RotationAngleTxBx" Width="50"
|
||||
Style="{StaticResource OmagCut_CalculatorTextBox}"/>
|
||||
<TextBlock Grid.Column="1" FontSize="30" Margin="2,-5,0,0"
|
||||
Text="°"/>
|
||||
</Grid>
|
||||
|
||||
<Button Name="RotateCounterClockwiseBtn" Grid.Column="0" Grid.Row="4"
|
||||
Style="{StaticResource OmagCut_RightGrayGradientYellowButton}">
|
||||
<Image Source="Resources/CounterClockwiseRotate.png" Width="64" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Button>
|
||||
<ToggleButton Name="MagneticPiecesBtn" Grid.Column="1" Grid.Row="4"
|
||||
Style="{StaticResource OmagCut_RightGrayYellowIconToggleButton}">
|
||||
<Image Source="Resources/AlignPieces.png" Width="65" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</ToggleButton>
|
||||
<Button Name="RotateClockwiseBtn" Grid.Column="2" Grid.Row="4"
|
||||
Style="{StaticResource OmagCut_RightGrayGradientYellowButton}">
|
||||
<Image Source="Resources/ClockwiseRotate.png" Width="65" Height="65" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Button>
|
||||
|
||||
<UniformGrid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="3" Columns="2" >
|
||||
<Button Name="InsertPartBtn" Style="{StaticResource OmagCut_YellowTextButton}"/>
|
||||
<Button Name="StorePartBtn" Style="{StaticResource OmagCut_YellowTextButton}" Padding="1"/>
|
||||
</UniformGrid>
|
||||
|
||||
<Button Name="RemovePartBtn" Grid.ColumnSpan="3" Grid.Row="6"
|
||||
Style="{StaticResource OmagCut_YellowTextButton}"/>
|
||||
|
||||
<Grid Grid.Row="7" Grid.ColumnSpan="3">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Button Name="BeforeBtn" Grid.Column="1" Style="{StaticResource OmagCut_YellowIconButton}">
|
||||
<Image Source="Resources/NumericKeyboardArrow.png" Style="{StaticResource OmagCut_ButtonIcon}"/>
|
||||
</Button>
|
||||
<Button Name="LaterBtn" Grid.Column="2" Style="{StaticResource OmagCut_YellowIconButton}">
|
||||
<Image Source="Resources/NumericKeyboardArrow.png" Style="{StaticResource OmagCut_ButtonIcon}" RenderTransformOrigin="0.5,0.5">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="180"/>
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
</Button>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
@@ -0,0 +1,13 @@
|
||||
Public Class MoveRawPartPage
|
||||
|
||||
' Riferimento alla MainWindow
|
||||
Private m_MainWindow As MainWindow = Application.Current.MainWindow
|
||||
|
||||
Private Sub LaterBtn_Click(sender As Object, e As RoutedEventArgs) Handles LaterBtn.Click
|
||||
m_MainWindow.m_CadCutPageUC.CadCutPageGrid.Children.Remove(m_MainWindow.m_CadCutPageUC.m_MoveRawPartPage)
|
||||
m_MainWindow.m_CadCutPageUC.CadCutPageGrid.Children.Add(m_MainWindow.m_CadCutPageUC.m_SplitPage)
|
||||
m_MainWindow.m_CadCutPageUC.m_MovePartPage = CadCutPageUC.MovePartsPages.Split
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
@@ -165,6 +165,9 @@
|
||||
<Compile Include="ManualAxesMoveUC.xaml.vb">
|
||||
<DependentUpon>ManualAxesMoveUC.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MoveRawPartPage.xaml.vb">
|
||||
<DependentUpon>MoveRawPartPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MultipleCut.xaml.vb">
|
||||
<DependentUpon>MultipleCut.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@@ -282,6 +285,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="MoveRawPartPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="MultipleCut.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0,8,6,4" />-->
|
||||
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0,8,6,4" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="10" />
|
||||
|
||||
</Grid>
|
||||
|
||||
+73
-28
@@ -2,6 +2,7 @@
|
||||
Imports System.ComponentModel
|
||||
Imports OmagCUT.TreeViewItem
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib
|
||||
|
||||
Public Class SetUpPage
|
||||
|
||||
@@ -20,18 +21,35 @@ Public Class SetUpPage
|
||||
' Assegno la lista utensili come sorgente dell'albero
|
||||
ToolTree.ItemsSource = m_ToolTreeList
|
||||
|
||||
' Modifico numero colonne della griglia in base al numero di porta utensili disponibili sulla macchina per cambio utensile macchina
|
||||
Dim ColNum As Integer = Math.Ceiling(m_MainWindow.m_CurrentMachine.dToolChangerNum / 5)
|
||||
For Index = 5 To ColNum + 1 Step -1
|
||||
For Index2 = Index * 5 To (Index - 1) * 5 + 1 Step -1
|
||||
TlChGrid.Children.Remove(GetTlChPosFromIndex(Index2))
|
||||
TlChGrid.Children.Remove(GetTxBxFromIndex(Index2))
|
||||
If m_MainWindow.m_CurrentMachine.MountedToolConfig = CurrentMachine.MountedToolConfigs.TOOLCHANGER Then
|
||||
'' Cambio utensile macchina
|
||||
' Modifico numero colonne della griglia in base al numero di porta utensili disponibili sulla macchina
|
||||
Dim ColNum As Integer = Math.Ceiling(m_MainWindow.m_CurrentMachine.dToolChangerNum / 5)
|
||||
For Index = 5 To ColNum + 1 Step -1
|
||||
For Index2 = Index * 5 To (Index - 1) * 5 + 1 Step -1
|
||||
TlChGrid.Children.Remove(GetTlChPosFromIndex(Index2))
|
||||
TlChGrid.Children.Remove(GetTxBxFromIndex(Index2))
|
||||
Next
|
||||
TlChGrid.ColumnDefinitions.RemoveAt(Index * 2 - 1)
|
||||
TlChGrid.ColumnDefinitions.RemoveAt(Index * 2 - 2)
|
||||
Next
|
||||
TlChGrid.ColumnDefinitions.RemoveAt(Index * 2 - 1)
|
||||
TlChGrid.ColumnDefinitions.RemoveAt(Index * 2 - 2)
|
||||
Next
|
||||
' Modifico il numero di elementi presenti sull'ultima colonna
|
||||
For Index = ColNum * 5 To m_MainWindow.m_CurrentMachine.dToolChangerNum + 1 Step -1
|
||||
TlChGrid.Children.Remove(GetTlChPosFromIndex(Index))
|
||||
TlChGrid.Children.Remove(GetTxBxFromIndex(Index))
|
||||
Next
|
||||
' Assegno lunghezza alla scrollviewer
|
||||
TlChGrid.Width = m_MainWindow.ActualWidth / 15 * 1.6 * ColNum * 2
|
||||
' Carico i nomi dei portautensili
|
||||
For Index = 1 To m_MainWindow.m_CurrentMachine.dToolChangerNum
|
||||
GetTlChPosFromIndex(Index).PositionNameTxBl.Text = m_MainWindow.m_CurrentMachine.ToolChangerName(Index - 1)
|
||||
Next
|
||||
Else
|
||||
SetUpPageGrid.Children.Remove(TlChScVw)
|
||||
End If
|
||||
|
||||
' Modifico numero colonne della griglia in base al numero di porta utensili disponibili sulla macchina per cambio utensile manuale
|
||||
'' Cambio utensile manuale
|
||||
' Modifico numero colonne della griglia in base al numero di porta utensili disponibili sulla macchina
|
||||
Dim ManColNum As Integer = Math.Ceiling(m_MainWindow.m_CurrentMachine.dManualToolChangerNum / 5)
|
||||
For Index = 12 To ManColNum + 1 Step -1
|
||||
For Index2 = Index * 5 To (Index - 1) * 5 + 1 Step -1
|
||||
@@ -41,32 +59,30 @@ Public Class SetUpPage
|
||||
ManTlChGrid.ColumnDefinitions.RemoveAt(Index * 2 - 1)
|
||||
ManTlChGrid.ColumnDefinitions.RemoveAt(Index * 2 - 2)
|
||||
Next
|
||||
|
||||
' Modifico il numero di elementi presenti sull'ultima colonna sia macchina che manuale
|
||||
For Index = ColNum * 5 To m_MainWindow.m_CurrentMachine.dToolChangerNum + 1 Step -1
|
||||
TlChGrid.Children.Remove(GetTlChPosFromIndex(Index))
|
||||
TlChGrid.Children.Remove(GetTxBxFromIndex(Index))
|
||||
Next
|
||||
' Modifico il numero di elementi presenti sull'ultima colonna
|
||||
For Index = ManColNum * 5 To m_MainWindow.m_CurrentMachine.dManualToolChangerNum + 1 Step -1
|
||||
ManTlChGrid.Children.Remove(GetManTlChPosFromIndex(Index))
|
||||
ManTlChGrid.Children.Remove(GetManTxBxFromIndex(Index))
|
||||
Next
|
||||
|
||||
' Assegno lunghezza alle scrollviewer
|
||||
TlChGrid.Width = m_MainWindow.ActualWidth / 15 * 1.6 * ColNum * 2
|
||||
' Assegno lunghezza alla scrollviewer
|
||||
ManTlChGrid.Width = m_MainWindow.ActualWidth / 15 * 1.6 * ManColNum * 2
|
||||
|
||||
' Visualizzo il portautensile della macchina
|
||||
TlChScVw.Visibility = Windows.Visibility.Visible
|
||||
ToolChangerBtn.IsChecked = True
|
||||
|
||||
' Carico tutti i nomi dei portautensili
|
||||
For Index = 1 To m_MainWindow.m_CurrentMachine.dToolChangerNum
|
||||
GetTlChPosFromIndex(Index).PositionNameTxBl.Text = m_MainWindow.m_CurrentMachine.ToolChangerName(Index - 1)
|
||||
Next
|
||||
' Carico i nomi dei portautensili
|
||||
For Index = 1 To m_MainWindow.m_CurrentMachine.dManualToolChangerNum
|
||||
GetManTlChPosFromIndex(Index).PositionNameTxBl.Text = m_MainWindow.m_CurrentMachine.ManualToolChangerName(Index - 1)
|
||||
Next
|
||||
|
||||
'' Se portautensili della macchina presente
|
||||
If m_MainWindow.m_CurrentMachine.MountedToolConfig = CurrentMachine.MountedToolConfigs.TOOLCHANGER Then
|
||||
' Apro quello
|
||||
TlChScVw.Visibility = Windows.Visibility.Visible
|
||||
ToolChangerBtn.IsChecked = True
|
||||
Else
|
||||
' Altimenti apro portautensili manuale ed elimino bottoni di scelta
|
||||
ManTlChScVw.Visibility = Windows.Visibility.Visible
|
||||
ToolChangerBtn.Visibility = Windows.Visibility.Hidden
|
||||
ManualToolChangerBtn.Visibility = Windows.Visibility.Hidden
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub SetUpPage_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
|
||||
@@ -771,6 +787,14 @@ Public Class SetUpPage
|
||||
Next
|
||||
End Sub
|
||||
|
||||
' Evento che permette di aprire le cartelle degli utensili con un click singolo
|
||||
Private Sub ToolTree_PreviewMouseUp(sender As Object, e As MouseButtonEventArgs) Handles ToolTree.PreviewMouseUp
|
||||
If TypeOf ToolTree.SelectedItem Is CathegoryItem Then
|
||||
Dim SelectedCathegory As CathegoryItem = ToolTree.SelectedItem
|
||||
SelectedCathegory.IsExpanded = Not SelectedCathegory.IsExpanded
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub OkBtn_Click(sender As Object, e As RoutedEventArgs) Handles OkBtn.Click
|
||||
SaveToolChangerStatus()
|
||||
m_MainWindow.m_MachinePageUC.MachinePageGrid.Children.Add(m_MainWindow.m_MachinePageUC.m_AlarmsPageUC)
|
||||
@@ -782,4 +806,25 @@ Public Class SetUpPage
|
||||
m_MainWindow.m_MachinePageUC.MachinePageGrid.Children.Remove(Me)
|
||||
End Sub
|
||||
|
||||
' Evento che posiziona l'utensile nel suo portautensile predefinito dopo un doppio click
|
||||
Private Sub ToolTree_PreviewMouseDoubleClick(sender As Object, e As MouseButtonEventArgs) Handles ToolTree.PreviewMouseDoubleClick
|
||||
If TypeOf ToolTree.SelectedItem Is CustomItem Then
|
||||
Dim SelectedTool As CustomItem = ToolTree.SelectedItem
|
||||
EgtTdbSetCurrTool(SelectedTool.Name)
|
||||
Dim ToolPositionName As String = String.Empty
|
||||
EgtTdbGetCurrToolParam(MCH_TP.TCPOS, ToolPositionName)
|
||||
For Each TlChPos In m_MainWindow.m_CurrentMachine.ToolChanger
|
||||
If TlChPos.sName = ToolPositionName Then
|
||||
If TlChPos.sTool = String.Empty Then
|
||||
Else
|
||||
Dim InfoMsgBox As New EgtMsgBox(m_MainWindow, "", "Portautensile predefinito già occupato", EgtMsgBox.Buttons.OK, EgtMsgBox.Icons.ESCLAMATION)
|
||||
End If
|
||||
'Dim eSource As New RoutedEventArgs(New RoutedEvent, GetManTlChPosFromIndex(TlChPos.sPosition))
|
||||
'ToolHolder_ToolClick(sender, eSource)
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
@@ -225,6 +225,12 @@ Public Class SplitPageUC
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub LaterBtn_Click(sender As Object, e As RoutedEventArgs) Handles LaterBtn.Click
|
||||
m_MainWindow.m_CadCutPageUC.CadCutPageGrid.Children.Remove(m_MainWindow.m_CadCutPageUC.m_SplitPage)
|
||||
m_MainWindow.m_CadCutPageUC.CadCutPageGrid.Children.Add(m_MainWindow.m_CadCutPageUC.m_MoveRawPartPage)
|
||||
m_MainWindow.m_CadCutPageUC.m_MovePartPage = CadCutPageUC.MovePartsPages.MoveRawPart
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
Public Class NameIdLsBxItem
|
||||
|
||||
+19
-11
@@ -30,8 +30,8 @@ Public Class ToolsDbPageUC
|
||||
Private m_dToolMaxMat As Double = 0
|
||||
|
||||
'Array che contengono i tipi di Coolant
|
||||
Dim ToolCoolant() As String = {"No", "Interna", "Esterna", "Entrambe"}
|
||||
Dim SawCoolant() As String = {"No", "Esterna"}
|
||||
Dim ToolCoolant() As String
|
||||
Dim SawCoolant() As String
|
||||
|
||||
'Variabile che conserva l'utensile precedentemente selezionato usata nel caso si selezioni annulla quando si cambia utensile selezionato
|
||||
Private m_OldItem As Object
|
||||
@@ -51,12 +51,15 @@ Public Class ToolsDbPageUC
|
||||
' Assegno la lista degli utensili come sorgente del treeview
|
||||
ToolTreeView.ItemsSource = ToolsList
|
||||
|
||||
' Imposto testo delle combobox da file dei messaggi
|
||||
ToolCoolant = {EgtMsg(MSG_COMBOBOXPARAM + 1), EgtMsg(MSG_COMBOBOXPARAM + 2), EgtMsg(MSG_COMBOBOXPARAM + 3), EgtMsg(MSG_COMBOBOXPARAM + 4)}
|
||||
SawCoolant = {EgtMsg(MSG_COMBOBOXPARAM + 1), EgtMsg(MSG_COMBOBOXPARAM + 3)}
|
||||
|
||||
'Imposto i messaggi letti dal file dei messaggi
|
||||
NewBtn.Content = EgtMsg(MSG_MACHINEPAGEUC + 15)
|
||||
SaveBtn.Content = EgtMsg(MSG_MACHINEPAGEUC + 17)
|
||||
RemoveBtn.Content = EgtMsg(MSG_MACHINEPAGEUC + 18)
|
||||
|
||||
|
||||
NameTxBl.Text = EgtMsg(MSG_TOOLSDBPAGEUC + 1)
|
||||
TCPosTxBl.Text = EgtMsg(MSG_TOOLSDBPAGEUC + 2)
|
||||
HeadTxBl.Text = EgtMsg(MSG_TOOLSDBPAGEUC + 3)
|
||||
@@ -404,13 +407,13 @@ Public Class ToolsDbPageUC
|
||||
StringToLen(MaxMatTxBx.Text, dTemp)
|
||||
EgtTdbSetCurrToolParam(MCH_TP.MAXMAT, dTemp)
|
||||
End If
|
||||
StringToLen(LonOffsetTxBx.Text, dTemp)
|
||||
EgtTdbSetCurrToolParam(MCH_TP.LONOFFSET, dTemp)
|
||||
StringToLen(RadOffsetTxBx.Text, dTemp)
|
||||
EgtTdbSetCurrToolParam(MCH_TP.RADOFFSET, dTemp)
|
||||
Dim ToolType As Integer
|
||||
EgtTdbGetCurrToolParam(MCH_TP.TYPE, ToolType)
|
||||
If (ToolType And MCH_TF.SAWBLADE) <> 0 Then
|
||||
If m_nToolType <> MCH_TY.DRILL_STD Then
|
||||
StringToLen(LonOffsetTxBx.Text, dTemp)
|
||||
EgtTdbSetCurrToolParam(MCH_TP.LONOFFSET, dTemp)
|
||||
StringToLen(RadOffsetTxBx.Text, dTemp)
|
||||
EgtTdbSetCurrToolParam(MCH_TP.RADOFFSET, dTemp)
|
||||
End If
|
||||
If m_nToolType = MCH_TY.SAW_STD Then
|
||||
If CoolantCmBx.SelectedIndex = 0 Then
|
||||
nTemp = 0
|
||||
ElseIf CoolantCmBx.SelectedIndex = 1 Then
|
||||
@@ -456,7 +459,12 @@ Public Class ToolsDbPageUC
|
||||
CorrTxBx.Visibility = Windows.Visibility.Visible
|
||||
MaxMatTxBl.Visibility = If(m_nToolType = MCH_TY.SAW_STD, Windows.Visibility.Visible, Windows.Visibility.Hidden)
|
||||
MaxMatTxBx.Visibility = If(m_nToolType = MCH_TY.SAW_STD, Windows.Visibility.Visible, Windows.Visibility.Hidden)
|
||||
OffsetGpBx.Visibility = Windows.Visibility.Visible
|
||||
OffsetGpBx.Visibility = If(m_nToolType <> MCH_TY.DRILL_STD, Windows.Visibility.Visible, Windows.Visibility.Hidden)
|
||||
If m_nToolType = MCH_TY.DRILL_STD Then
|
||||
AbsorptionBrd.SetValue(Grid.RowProperty, 19)
|
||||
Else
|
||||
AbsorptionBrd.SetValue(Grid.RowProperty, 23)
|
||||
End If
|
||||
AbsorptionBrd.Visibility = Windows.Visibility.Visible
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user