From 4db56e7e096bfebb979e87c9423ea4c4e53601bd Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Sat, 9 Jul 2016 19:17:02 +0000 Subject: [PATCH] EgtCAM5 : - Migliorie varie. --- Application.xaml.vb | 5 + Base/TabViewModel.vb | 9 +- EgtCAM5.vbproj | 21 ++- EgtCAM5Resources.xaml | 3 + MainWindow/MainWindowViewModel.vb | 20 ++- .../GridViewPanel/GridViewPanelView.xaml | 3 +- .../DrawOptionPanel/DrawOptionPanelView.xaml | 4 + .../DrawOptionPanelViewModel.vb | 74 +++++++- .../ManageLayerExpander/LayerTreeView.vb | 18 ++ .../ManageLayerExpanderView.xaml | 3 +- .../ManageLayerExpanderViewModel.vb | 13 -- .../OperationExpanderView.xaml | 33 ++++ .../OperationExpanderView.xaml.vb | 3 + .../OperationExpanderViewModel.vb | 167 ++++++++++++++++++ .../OperationExpander/OperationListBox.vb | 75 ++++++++ ProjectPage/ProjectViewModel.vb | 71 +++++++- Resources/TopCommandBar/Exec.png | Bin 0 -> 973 bytes Resources/TopCommandBar/Export.png | Bin 0 -> 903 bytes Resources/TopCommandBar/Import.png | Bin 0 -> 776 bytes Resources/TopCommandBar/Insert.png | Bin 0 -> 747 bytes Resources/TopCommandBar/New.png | Bin 0 -> 538 bytes Resources/TopCommandBar/Open.png | Bin 0 -> 647 bytes Resources/TopCommandBar/Save.png | Bin 0 -> 610 bytes Resources/TopCommandBar/SaveAs.png | Bin 0 -> 951 bytes TopCommandBar/TopCommandBarView.xaml | 32 +++- 25 files changed, 510 insertions(+), 44 deletions(-) create mode 100644 ProjectPage/OptionPanel/DrawOptionPanel/OperationExpander/OperationExpanderView.xaml create mode 100644 ProjectPage/OptionPanel/DrawOptionPanel/OperationExpander/OperationExpanderView.xaml.vb create mode 100644 ProjectPage/OptionPanel/DrawOptionPanel/OperationExpander/OperationExpanderViewModel.vb create mode 100644 ProjectPage/OptionPanel/DrawOptionPanel/OperationExpander/OperationListBox.vb create mode 100644 Resources/TopCommandBar/Exec.png create mode 100644 Resources/TopCommandBar/Export.png create mode 100644 Resources/TopCommandBar/Import.png create mode 100644 Resources/TopCommandBar/Insert.png create mode 100644 Resources/TopCommandBar/New.png create mode 100644 Resources/TopCommandBar/Open.png create mode 100644 Resources/TopCommandBar/Save.png create mode 100644 Resources/TopCommandBar/SaveAs.png diff --git a/Application.xaml.vb b/Application.xaml.vb index 3190f1f..034d211 100644 --- a/Application.xaml.vb +++ b/Application.xaml.vb @@ -1,4 +1,5 @@ Imports EgtCAM5.EgtCAM5 + Class Application ' Application-level events, such as Startup, Exit, and DispatcherUnhandledException @@ -25,6 +26,10 @@ Class Application Friend Const CLOSEAPPLICATION As String = "CloseApplication" Friend Const PROJECTPAGE_SELECTED As String = "ProjectPage_Selected" Friend Const PROJECTPAGE_DESELECTED As String = "ProjectPage_Deselected" + Friend Const PROJECTPAGE_DRAWMODE As String = "ProjectPage_DrawMode" + Friend Const PROJECTPAGE_MACHININGMODE As String = "ProjectPage_MachiningMode" + Friend Const RESETSTATUS As String = "ResetStatus" + Friend Const LOADOPERATIONLIST As String = "LoadOperationList" ' ProjectPage messages Friend Const NOTIFYCURRPOS As String = "NotifyCurrPos" diff --git a/Base/TabViewModel.vb b/Base/TabViewModel.vb index 1670e91..cc267f5 100644 --- a/Base/TabViewModel.vb +++ b/Base/TabViewModel.vb @@ -3,13 +3,16 @@ Public Class TabViewModel Inherits ViewModelBase - Private m_sTabName As String - Public Property sTabName As String + Friend m_sTabName As String + Public Overridable Property sTabName As String Get Return m_sTabName End Get Set(value As String) - m_sTabName = value + If value <> m_sTabName Then + m_sTabName = value + OnPropertyChanged("sTabName") + End If End Set End Property diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj index d273169..b6099bf 100644 --- a/EgtCAM5.vbproj +++ b/EgtCAM5.vbproj @@ -152,6 +152,11 @@ ManageLayerExpanderView.xaml + + OperationExpanderView.xaml + + + ProjectView.xaml @@ -220,6 +225,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -287,7 +296,7 @@ - + @@ -383,6 +392,16 @@ + + + + + + + + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe diff --git a/EgtCAM5Resources.xaml b/EgtCAM5Resources.xaml index 1403c93..6b0d700 100644 --- a/EgtCAM5Resources.xaml +++ b/EgtCAM5Resources.xaml @@ -74,6 +74,9 @@ + +