Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7558449b06 | |||
| 8c45250a6f | |||
| c727e98f8f | |||
| ef4ad38d23 | |||
| 85de8e95a5 | |||
| 4387d75ee7 | |||
| ddf1f320c5 | |||
| 60f035991d |
@@ -70,6 +70,6 @@ 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.6.7.1")>
|
<Assembly: AssemblyVersion("2.6.7.6")>
|
||||||
<Assembly: AssemblyFileVersion("2.6.7.1")>
|
<Assembly: AssemblyFileVersion("2.6.7.6")>
|
||||||
|
|
||||||
|
|||||||
+11
@@ -3,6 +3,17 @@ Imports EgtWPFLib5.EgtFloating
|
|||||||
|
|
||||||
Public Class MachiningParameterExpanderV
|
Public Class MachiningParameterExpanderV
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
|
||||||
|
' La chiamata è richiesta dalla finestra di progettazione.
|
||||||
|
InitializeComponent()
|
||||||
|
|
||||||
|
' Aggiungere le eventuali istruzioni di inizializzazione dopo la chiamata a InitializeComponent().
|
||||||
|
|
||||||
|
' Associo il gestore evento m_EventFocusOnSlider all'evento generato da FocusOnSlider
|
||||||
|
AddHandler Map.refMachiningParameterExpanderVM.m_EventFocusOnSlider, AddressOf FocusOnSlider
|
||||||
|
End Sub
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' Funzione che mette il focus allo slider
|
''' Funzione che mette il focus allo slider
|
||||||
''' </summary>
|
''' </summary>
|
||||||
|
|||||||
+3
@@ -168,6 +168,9 @@ Public Class MachiningParameterExpanderVM
|
|||||||
|
|
||||||
m_CurrOperation.ReadOperationParam()
|
m_CurrOperation.ReadOperationParam()
|
||||||
|
|
||||||
|
' Riferimento a operazione selezionata
|
||||||
|
EgtWPFLib5.MachiningTreeViewItem.sh_SelMach = m_CurrOperation
|
||||||
|
|
||||||
IsModified(False)
|
IsModified(False)
|
||||||
ErrorOnOperation(False)
|
ErrorOnOperation(False)
|
||||||
|
|
||||||
|
|||||||
+3
-4
@@ -70,11 +70,10 @@ Public Class OperationParametersExpanderVM
|
|||||||
Return m_DispositionParameterExpander
|
Return m_DispositionParameterExpander
|
||||||
Else
|
Else
|
||||||
If IsNothing(m_MachiningParameterExpander) Then
|
If IsNothing(m_MachiningParameterExpander) Then
|
||||||
m_MachiningParameterExpander = New MachiningParameterExpanderV
|
|
||||||
m_MachiningParameterExpanderVM = New MachiningParameterExpanderVM()
|
m_MachiningParameterExpanderVM = New MachiningParameterExpanderVM()
|
||||||
m_MachiningParameterExpander.DataContext = m_MachiningParameterExpanderVM
|
m_MachiningParameterExpander = New MachiningParameterExpanderV With {
|
||||||
' Associo il gestore evento m_EventFocusOnSlider all'evento generato da FocusOnSlider
|
.DataContext = m_MachiningParameterExpanderVM
|
||||||
AddHandler m_MachiningParameterExpanderVM.m_EventFocusOnSlider, AddressOf m_MachiningParameterExpander.FocusOnSlider
|
}
|
||||||
End If
|
End If
|
||||||
m_MachiningParameterExpanderVM.NotifyPropertyChanged("ParamExpanderPageV")
|
m_MachiningParameterExpanderVM.NotifyPropertyChanged("ParamExpanderPageV")
|
||||||
Return m_MachiningParameterExpander
|
Return m_MachiningParameterExpander
|
||||||
|
|||||||
@@ -33,6 +33,17 @@ Public Class SimulationExpanderVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bOnlySimulation As Boolean = False
|
||||||
|
Public Property bOnlySimulation As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bOnlySimulation
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_bOnlySimulation = value
|
||||||
|
NotifyPropertyChanged("bOnlySimulation")
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Public Overrides Property SliderValue As Double
|
Public Overrides Property SliderValue As Double
|
||||||
Get
|
Get
|
||||||
Return m_SliderValue
|
Return m_SliderValue
|
||||||
@@ -151,6 +162,14 @@ Public Class SimulationExpanderVM
|
|||||||
' disattivo MTable e SpecialPanel se vado in simulazione
|
' disattivo MTable e SpecialPanel se vado in simulazione
|
||||||
Map.refDoorPanelVM.MTableIsEnabled(False)
|
Map.refDoorPanelVM.MTableIsEnabled(False)
|
||||||
Map.refSpecialPanelVM.SpecialPanelIsEnabled(False)
|
Map.refSpecialPanelVM.SpecialPanelIsEnabled(False)
|
||||||
|
If m_bOnlySimulation Then
|
||||||
|
Map.refTopCommandBarVM.DrawIsEnabled = False
|
||||||
|
Map.refOperationsListExpanderVM.OpersListViewIsEnabled = False
|
||||||
|
Map.refOperationParametersExpanderVM.OperParamsViewIsEnabled = False
|
||||||
|
Map.refEstimationsExpanderVM.Estimation_IsEnabled =False
|
||||||
|
Map.refMachGroupPanelVM.SetMachGroupState(False)
|
||||||
|
Map.refEstimationsExpanderVM.NotifyPropertyChanged("Estimation_IsEnabled")
|
||||||
|
End If
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -244,7 +263,7 @@ Public Class SimulationExpanderVM
|
|||||||
Map.refTopCommandBarVM.DrawIsEnabled = False
|
Map.refTopCommandBarVM.DrawIsEnabled = False
|
||||||
Map.refOperationsListExpanderVM.OpersListViewIsEnabled = False
|
Map.refOperationsListExpanderVM.OpersListViewIsEnabled = False
|
||||||
Map.refOperationParametersExpanderVM.OperParamsViewIsEnabled = False
|
Map.refOperationParametersExpanderVM.OperParamsViewIsEnabled = False
|
||||||
Map.refMachGroupPanelVM.SetMachGroupState(False) ' Map.refMachGroupPanelVM.MachGroupPanelIsEnabled = False
|
Map.refMachGroupPanelVM.SetMachGroupState(False)
|
||||||
Map.refEstimationsExpanderVM.NotifyPropertyChanged("Estimation_IsEnabled")
|
Map.refEstimationsExpanderVM.NotifyPropertyChanged("Estimation_IsEnabled")
|
||||||
m_bStopOnNextCollision = True
|
m_bStopOnNextCollision = True
|
||||||
If Not EgtSimStart(False) Then
|
If Not EgtSimStart(False) Then
|
||||||
@@ -337,10 +356,15 @@ Public Class SimulationExpanderVM
|
|||||||
End While
|
End While
|
||||||
SetSimExecuting(False)
|
SetSimExecuting(False)
|
||||||
IniFile.m_bSimulExecuting = False
|
IniFile.m_bSimulExecuting = False
|
||||||
Map.refTopCommandBarVM.DrawIsEnabled = True
|
If m_bOnlySimulation Then
|
||||||
Map.refOperationsListExpanderVM.OpersListViewIsEnabled = True
|
' Impedisco salvataggio eventuale modifica stato virtual milling
|
||||||
Map.refOperationParametersExpanderVM.OperParamsViewIsEnabled = True
|
EgtResetModified()
|
||||||
Map.refMachGroupPanelVM.SetMachGroupState(True) ' Map.refMachGroupPanelVM.MachGroupPanelIsEnabled = True
|
Else
|
||||||
|
Map.refTopCommandBarVM.DrawIsEnabled = True
|
||||||
|
Map.refOperationsListExpanderVM.OpersListViewIsEnabled = True
|
||||||
|
Map.refOperationParametersExpanderVM.OperParamsViewIsEnabled = True
|
||||||
|
Map.refMachGroupPanelVM.SetMachGroupState(True)
|
||||||
|
End If
|
||||||
Map.refEstimationsExpanderVM.NotifyPropertyChanged("Estimation_IsEnabled")
|
Map.refEstimationsExpanderVM.NotifyPropertyChanged("Estimation_IsEnabled")
|
||||||
If IniFile.m_bSimulEndExitApp Then
|
If IniFile.m_bSimulEndExitApp Then
|
||||||
refMainWindowVM.CloseApplication( Nothing)
|
refMainWindowVM.CloseApplication( Nothing)
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ Public Class ProjectVM
|
|||||||
End If
|
End If
|
||||||
' Esecuzione
|
' Esecuzione
|
||||||
bOk = ExecBeam(sFile, sMachine, nFlag, True)
|
bOk = ExecBeam(sFile, sMachine, nFlag, True)
|
||||||
' altrimenti pareti
|
' altrimenti pareti
|
||||||
Else
|
Else
|
||||||
' Verifica abilitazione elaborazione pareti
|
' Verifica abilitazione elaborazione pareti
|
||||||
If Not VerifyWall(sFile, sMachine, nFlag) Then
|
If Not VerifyWall(sFile, sMachine, nFlag) Then
|
||||||
@@ -497,12 +497,12 @@ Public Class ProjectVM
|
|||||||
If nFlag = 0 Or nFlag = 3 Or nFlag = 4 Then
|
If nFlag = 0 Or nFlag = 3 Or nFlag = 4 Then
|
||||||
Map.refMachinePanelVM.SaveCurrentMachine()
|
Map.refMachinePanelVM.SaveCurrentMachine()
|
||||||
Map.refMainWindowVM.CloseApplicationCmd()
|
Map.refMainWindowVM.CloseApplicationCmd()
|
||||||
' Altrimenti se richiesta visualizzazione DB utensili
|
' Altrimenti se richiesta visualizzazione DB utensili
|
||||||
ElseIf nFlag = 11 And bOk Then
|
ElseIf nFlag = 11 And bOk Then
|
||||||
MyMachinePanelVM.ToolDb()
|
MyMachinePanelVM.ToolDb()
|
||||||
Map.refMachinePanelVM.SaveCurrentMachine()
|
Map.refMachinePanelVM.SaveCurrentMachine()
|
||||||
Map.refMainWindowVM.CloseApplicationCmd()
|
Map.refMainWindowVM.CloseApplicationCmd()
|
||||||
' Altrimenti se richiesta visualizzazione DB lavorazioni
|
' Altrimenti se richiesta visualizzazione DB lavorazioni
|
||||||
ElseIf nFlag = 12 And bOk Then
|
ElseIf nFlag = 12 And bOk Then
|
||||||
MyMachinePanelVM.MachDb()
|
MyMachinePanelVM.MachDb()
|
||||||
If bBeam Then
|
If bBeam Then
|
||||||
@@ -512,7 +512,7 @@ Public Class ProjectVM
|
|||||||
End If
|
End If
|
||||||
Map.refMachinePanelVM.SaveCurrentMachine()
|
Map.refMachinePanelVM.SaveCurrentMachine()
|
||||||
Map.refMainWindowVM.CloseApplicationCmd()
|
Map.refMainWindowVM.CloseApplicationCmd()
|
||||||
' Altrimenti se errore
|
' Altrimenti se errore
|
||||||
ElseIf Not bOk Then
|
ElseIf Not bOk Then
|
||||||
EgtZoom(ZM.ALL)
|
EgtZoom(ZM.ALL)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -57,7 +57,13 @@ Module Beam
|
|||||||
Map.refManageLayerExpanderVM.SelectIdInObjTreeNoMark(EgtGetCurrLayer())
|
Map.refManageLayerExpanderVM.SelectIdInObjTreeNoMark(EgtGetCurrLayer())
|
||||||
If EgtGetCurrMachGroup() <> GDB_ID.NULL Then
|
If EgtGetCurrMachGroup() <> GDB_ID.NULL Then
|
||||||
Map.refTopCommandBarVM.SetMachiningMode()
|
Map.refTopCommandBarVM.SetMachiningMode()
|
||||||
|
' Se simulazione
|
||||||
If bOk And nFlag = 2 Then
|
If bOk And nFlag = 2 Then
|
||||||
|
' Se da TS3 e non pezzo da Vista, impedisco di fare altro
|
||||||
|
If bBtl AndAlso sFile.IndexOf( "Part_", StringComparison.InvariantCulture) = -1 Then
|
||||||
|
Map.refSimulationExpanderVM.bOnlySimulation = True
|
||||||
|
End If
|
||||||
|
' Vado in simulazione
|
||||||
Map.refSimulationExpanderVM.Simulation_IsExpanded = True
|
Map.refSimulationExpanderVM.Simulation_IsExpanded = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -58,7 +58,13 @@ Module Wall
|
|||||||
Map.refManageLayerExpanderVM.SelectIdInObjTreeNoMark(EgtGetCurrLayer())
|
Map.refManageLayerExpanderVM.SelectIdInObjTreeNoMark(EgtGetCurrLayer())
|
||||||
If EgtGetCurrMachGroup() <> GDB_ID.NULL Then
|
If EgtGetCurrMachGroup() <> GDB_ID.NULL Then
|
||||||
Map.refTopCommandBarVM.SetMachiningMode()
|
Map.refTopCommandBarVM.SetMachiningMode()
|
||||||
|
' Se simulazione
|
||||||
If bOk And nFlag = 2 Then
|
If bOk And nFlag = 2 Then
|
||||||
|
' Se da TS3 impedisco di fare altro
|
||||||
|
If bBtl Then
|
||||||
|
Map.refSimulationExpanderVM.bOnlySimulation = True
|
||||||
|
End If
|
||||||
|
' Vado in simulazione
|
||||||
Map.refSimulationExpanderVM.Simulation_IsExpanded = True
|
Map.refSimulationExpanderVM.Simulation_IsExpanded = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}"
|
<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}"
|
||||||
IsEnabled="{Binding SaveIsEnabled}">
|
IsEnabled="{Binding SendFeedbackIsEnabled}">
|
||||||
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
||||||
</Button>
|
</Button>
|
||||||
<UniformGrid Rows="1">
|
<UniformGrid Rows="1">
|
||||||
|
|||||||
@@ -169,10 +169,17 @@ Public Class TopCommandBarVM
|
|||||||
If value <> m_SaveIsEnabled Then
|
If value <> m_SaveIsEnabled Then
|
||||||
m_SaveIsEnabled = value
|
m_SaveIsEnabled = value
|
||||||
OnPropertyChanged("SaveIsEnabled")
|
OnPropertyChanged("SaveIsEnabled")
|
||||||
|
OnPropertyChanged("SendFeedbackIsEnabled")
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property SendFeedbackIsEnabled As Boolean
|
||||||
|
Get
|
||||||
|
Return m_SaveIsEnabled OrElse Not EgtGetModified()
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region ' Fields & Properties
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
#Region "Get & Set"
|
#Region "Get & Set"
|
||||||
|
|||||||
Reference in New Issue
Block a user