EgtCAM5 :

- migliorie per macchina con DB utensili e lavorazioni al cambio progetto.
This commit is contained in:
Dario Sassi
2016-07-15 06:46:47 +00:00
parent d88d8f5b10
commit 936eb5ba44
6 changed files with 37 additions and 8 deletions
+6 -6
View File
@@ -96,17 +96,17 @@ Namespace EgtCAM5
Set(value As TabViewModel)
If value IsNot m_SelectedTab Then
m_SelectedTab = value
OnPropertyChanged("SelectedTab")
If TypeOf value Is ProjectViewModel Then
EgtSetCurrentContext(IniFile.m_ProjectSceneContext)
ProjectPageSelected = True
Else
Application.Msn.NotifyColleagues(Application.SETFIRSTMACHININGFAMILY)
Application.Msn.NotifyColleagues(Application.SETFIRSTTOOLFAMILY)
EgtSetCurrentContext(IniFile.m_ProjectSceneContext)
ElseIf TypeOf value Is ToolsDbViewModel Or TypeOf value Is MachiningsDbViewModel Then
Application.Msn.NotifyColleagues(Application.RELOADCURRENTMACHINE)
ProjectPageSelected = False
End If
If TypeOf value Is ToolsDbViewModel Then
' Esce dal gruppo di lavorazione corrente per poter aprire le macchine del database
EgtResetCurrMachGroup()
End If
OnPropertyChanged("SelectedTab")
If TypeOf value Is MachiningsDbViewModel Then
' Esce dal gruppo di lavorazione corrente per poter aprire le macchine del database
EgtSetCurrentContext(IniFile.m_ProjectSceneContext)