From b251cc150a8fdca1057b4c696ed3c156846324e9 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Sun, 17 Jul 2016 18:34:54 +0000 Subject: [PATCH] EgtCAM5 : - Migliorie lavorazioni. --- EgtCAM5.vbproj | 8 - MachiningsDbPage/MachiningTreeView.vb | 2 +- .../OptionPanel/DrawOptionPanelView.xaml | 2 - .../OptionPanel/DrawOptionPanelViewModel.vb | 33 +- .../OperationExpanderView.xaml | 169 +++---- .../OperationExpanderViewModel.vb | 244 +++++++++- .../OperationExpander/OperationListBox.vb | 441 +++++++++++++++++- 7 files changed, 765 insertions(+), 134 deletions(-) diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj index 802207d..c356b2a 100644 --- a/EgtCAM5.vbproj +++ b/EgtCAM5.vbproj @@ -172,10 +172,6 @@ - - OperationPropertyExpanderView.xaml - - SimulationExpanderView.xaml @@ -261,10 +257,6 @@ Designer MSBuild:Compile - - Designer - MSBuild:Compile - Designer MSBuild:Compile diff --git a/MachiningsDbPage/MachiningTreeView.vb b/MachiningsDbPage/MachiningTreeView.vb index b0b35ab..1abe7f9 100644 --- a/MachiningsDbPage/MachiningTreeView.vb +++ b/MachiningsDbPage/MachiningTreeView.vb @@ -279,7 +279,7 @@ Public Class MachiningTreeViewItem Case MCH_MY.SAWING m_LeadInTypeList = New ObservableCollection(Of IdNameStruct)({New IdNameStruct(MCH_SAW_LI.CENT, EgtMsg(MSG_MACHININGSDBPAGE + 120)), New IdNameStruct(MCH_SAW_LI.STRICT, EgtMsg(MSG_MACHININGSDBPAGE + 125)), New IdNameStruct(MCH_SAW_LI.OUT, EgtMsg(MSG_MACHININGSDBPAGE + 126)), New IdNameStruct(MCH_SAW_LI.EXT_CENT, EgtMsg(MSG_MACHININGSDBPAGE + 127)), New IdNameStruct(MCH_SAW_LI.EXT_OUT, EgtMsg(MSG_MACHININGSDBPAGE + 128))}) Case MCH_MY.MILLING - m_LeadInTypeList = New ObservableCollection(Of IdNameStruct)({New IdNameStruct(MCH_MIL_LI.NONE, EgtMsg(MSG_MACHININGSDBPAGE + 129)), New IdNameStruct(MCH_MIL_LI.LINEAR, EgtMsg(MSG_MACHININGSDBPAGE + 130)), New IdNameStruct(MCH_MIL_LI.TANGENT, EgtMsg(MSG_MACHININGSDBPAGE + 131)), New IdNameStruct(MCH_MIL_LI.GLIDE, EgtMsg(MSG_MACHININGSDBPAGE + 132)), New IdNameStruct(MCH_MIL_LI.HELIX, EgtMsg(MSG_MACHININGSDBPAGE + 133))}) + m_LeadInTypeList = New ObservableCollection(Of IdNameStruct)({New IdNameStruct(MCH_MIL_LI.NONE, EgtMsg(MSG_MACHININGSDBPAGE + 129)), New IdNameStruct(MCH_MIL_LI.LINEAR, EgtMsg(MSG_MACHININGSDBPAGE + 130)), New IdNameStruct(MCH_MIL_LI.TANGENT, EgtMsg(MSG_MACHININGSDBPAGE + 131)), New IdNameStruct(MCH_MIL_LI.GLIDE, EgtMsg(MSG_MACHININGSDBPAGE + 132)), New IdNameStruct(MCH_MIL_LI.ZIGZAG, EgtMsg(MSG_MACHININGSDBPAGE + 142)), New IdNameStruct(MCH_MIL_LI.HELIX, EgtMsg(MSG_MACHININGSDBPAGE + 133))}) Case Else m_LeadInTypeList = Nothing End Select diff --git a/ProjectPage/OptionPanel/DrawOptionPanelView.xaml b/ProjectPage/OptionPanel/DrawOptionPanelView.xaml index 5a76aaf..94a09fc 100644 --- a/ProjectPage/OptionPanel/DrawOptionPanelView.xaml +++ b/ProjectPage/OptionPanel/DrawOptionPanelView.xaml @@ -14,8 +14,6 @@ - - diff --git a/ProjectPage/OptionPanel/DrawOptionPanelViewModel.vb b/ProjectPage/OptionPanel/DrawOptionPanelViewModel.vb index 6221bc6..24481ce 100644 --- a/ProjectPage/OptionPanel/DrawOptionPanelViewModel.vb +++ b/ProjectPage/OptionPanel/DrawOptionPanelViewModel.vb @@ -21,7 +21,6 @@ Namespace EgtCAM5 OnPropertyChanged("ManageLayerExpander") OnPropertyChanged("InfoExpander") OnPropertyChanged("InputExpander") - OnPropertyChanged("SimulationExpander") End If End Set End Property @@ -50,7 +49,6 @@ Namespace EgtCAM5 OnPropertyChanged("ManageLayerExpander") OnPropertyChanged("InfoExpander") OnPropertyChanged("InputExpander") - OnPropertyChanged("SimulationExpander") End If End Set End Property @@ -77,7 +75,7 @@ Namespace EgtCAM5 End Get End Property - Private m_OperationPropertyExpander As OperationPropertyExpanderView + Private m_MachiningsTreeExpander As MachiningTreeExpanderView Private m_InfoExpander As InfoExpanderView Public ReadOnly Property InfoExpander As ContentControl Get @@ -87,26 +85,6 @@ Namespace EgtCAM5 m_InfoExpander.DataContext = New InfoExpanderViewModel End If Return m_InfoExpander - Else - If IsNothing(m_OperationPropertyExpander) Then - m_OperationPropertyExpander = New OperationPropertyExpanderView - m_OperationPropertyExpander.DataContext = New OperationPropertyExpanderViewModel - End If - Return m_OperationPropertyExpander - End If - End Get - End Property - - Private m_MachiningsTreeExpander As MachiningTreeExpanderView - Private m_InputExpander As InputExpanderView - Public ReadOnly Property InputExpander As ContentControl - Get - If m_DrawIsChecked Then - If IsNothing(m_InputExpander) Then - m_InputExpander = New InputExpanderView - m_InputExpander.DataContext = New InputExpanderViewModel - End If - Return m_InputExpander Else If IsNothing(m_MachiningsTreeExpander) Then m_MachiningsTreeExpander = New MachiningTreeExpanderView @@ -118,10 +96,15 @@ Namespace EgtCAM5 End Property Private m_SimulationExpander As SimulationExpanderView - Public ReadOnly Property SimulationExpander As ContentControl + Private m_InputExpander As InputExpanderView + Public ReadOnly Property InputExpander As ContentControl Get If m_DrawIsChecked Then - Return Nothing + If IsNothing(m_InputExpander) Then + m_InputExpander = New InputExpanderView + m_InputExpander.DataContext = New InputExpanderViewModel + End If + Return m_InputExpander Else If IsNothing(m_SimulationExpander) Then m_SimulationExpander = New SimulationExpanderView diff --git a/ProjectPage/OptionPanel/MachiningOptionPanel/OperationExpander/OperationExpanderView.xaml b/ProjectPage/OptionPanel/MachiningOptionPanel/OperationExpander/OperationExpanderView.xaml index f50ed4c..8ee437b 100644 --- a/ProjectPage/OptionPanel/MachiningOptionPanel/OperationExpander/OperationExpanderView.xaml +++ b/ProjectPage/OptionPanel/MachiningOptionPanel/OperationExpander/OperationExpanderView.xaml @@ -48,132 +48,141 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + +