From 8aefba99c0ba648d1e3c7cfaca9dde67dca41f60 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Fri, 30 Sep 2016 09:52:01 +0000 Subject: [PATCH] EgtCAM5 : - Aggiunto MachGroupPanel. --- Application.xaml.vb | 3 ++ EgtCAM5.vbproj | 8 ++++ EgtCAM5Resources.xaml | 1 + .../MachGroupPanel/MachGroupPanelView.xaml | 25 ++++++++++++ .../MachGroupPanel/MachGroupPanelView.xaml.vb | 3 ++ .../MachGroupPanel/MachGroupPanelViewModel.vb | 40 +++++++++++++++++++ .../MachiningTreeExpanderViewModel.vb | 2 +- ProjectPage/ProjectView.xaml | 7 +++- ProjectPage/ProjectView.xaml.vb | 3 ++ TopCommandBar/TopCommandBarViewModel.vb | 1 + 10 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 ProjectPage/MachGroupPanel/MachGroupPanelView.xaml create mode 100644 ProjectPage/MachGroupPanel/MachGroupPanelView.xaml.vb create mode 100644 ProjectPage/MachGroupPanel/MachGroupPanelViewModel.vb diff --git a/Application.xaml.vb b/Application.xaml.vb index e1a488e..f88df09 100644 --- a/Application.xaml.vb +++ b/Application.xaml.vb @@ -164,6 +164,9 @@ Class Application Friend Const REMOVEMARKFROMLASTOPERATION As String = "RemoveMarkFromLastOperation" Friend Const SELECTEDOPERATION As String = "SelectedOperation" + ' MachiningGroupPanel + Friend Const LOADMACHGROUP As String = "LoadMachGroup" + ' MachiningOptionPanel ' MachiningTreeViewExpander Friend Const MACHININGTREEVIEWEXPANDERISENABLED As String = "MachiningTreeViewExpanderIsEnabled" diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj index 789054e..1589104 100644 --- a/EgtCAM5.vbproj +++ b/EgtCAM5.vbproj @@ -162,6 +162,10 @@ GridPanelView.xaml + + MachGroupPanelView.xaml + + PopUpGridPanelView.xaml @@ -281,6 +285,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/EgtCAM5Resources.xaml b/EgtCAM5Resources.xaml index 81c5dfa..ca453f7 100644 --- a/EgtCAM5Resources.xaml +++ b/EgtCAM5Resources.xaml @@ -31,6 +31,7 @@ + diff --git a/ProjectPage/ProjectView.xaml.vb b/ProjectPage/ProjectView.xaml.vb index e8c4d0a..ff3aeac 100644 --- a/ProjectPage/ProjectView.xaml.vb +++ b/ProjectPage/ProjectView.xaml.vb @@ -15,6 +15,7 @@ Public Class ProjectView DoorsPanel.IsFloating = False DrawPanel.IsFloating = False OptionPanel.IsFloating = False + MachGroupPanel.IsFloating = False If GetPrivateProfileFloatingWinPos(S_GENERAL, "ShowPanel", sState, nIndex, nLeft, nTop) And Not String.IsNullOrEmpty(sState) Then PanelPositioning(ShowPanel, sState, nIndex, nLeft, nTop) End If @@ -46,6 +47,7 @@ Public Class ProjectView DoorsPanel.Visibility = Visibility.Visible DrawPanel.Visibility = Visibility.Visible OptionPanel.Visibility = Visibility.Visible + MachGroupPanel.Visibility = Visibility.Collapsed End Sub) Application.Msn.Register(Application.MACHININGMODE_ISCHECKED, Sub() ShowPanel.Visibility = Visibility.Visible @@ -57,6 +59,7 @@ Public Class ProjectView DoorsPanel.Visibility = Visibility.Collapsed DrawPanel.Visibility = Visibility.Collapsed OptionPanel.Visibility = Visibility.Visible + MachGroupPanel.Visibility = Visibility.Visible End Sub) End Sub diff --git a/TopCommandBar/TopCommandBarViewModel.vb b/TopCommandBar/TopCommandBarViewModel.vb index fe2aab4..b19a945 100644 --- a/TopCommandBar/TopCommandBarViewModel.vb +++ b/TopCommandBar/TopCommandBarViewModel.vb @@ -99,6 +99,7 @@ Namespace EgtCAM5 If value <> m_MachiningIsChecked Then m_MachiningIsChecked = value If value Then + Application.Msn.NotifyColleagues(Application.LOADMACHGROUP) Dim bOk As Boolean Dim nId = EgtGetFirstMachGroup() If nId <> GDB_ID.NULL Then