diff --git a/EgtDOORCreator.vbproj b/EgtDOORCreator.vbproj index 26f42b0..e6024c0 100644 --- a/EgtDOORCreator.vbproj +++ b/EgtDOORCreator.vbproj @@ -172,6 +172,7 @@ HardwarePartWindowV.xaml + LauncherV.xaml @@ -434,6 +435,7 @@ Settings.Designer.vb + @@ -478,7 +480,7 @@ - + @@ -586,6 +588,19 @@ + + + + + + + + + + + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtDOORCreator\EgtDOORCreatorR32.exe diff --git a/EgtDOORCreatorDictionary.xaml b/EgtDOORCreatorDictionary.xaml index 30089fc..0c9b2c1 100644 --- a/EgtDOORCreatorDictionary.xaml +++ b/EgtDOORCreatorDictionary.xaml @@ -312,6 +312,19 @@ + + diff --git a/HardwarePart/HardwarePartV.xaml b/HardwarePart/HardwarePartV.xaml index 3072cf2..4553d64 100644 --- a/HardwarePart/HardwarePartV.xaml +++ b/HardwarePart/HardwarePartV.xaml @@ -18,7 +18,8 @@ - + + @@ -28,7 +29,7 @@ + Grid.RowSpan="5" Margin="5,0,5,0" CornerRadius="3"/> @@ -66,7 +67,8 @@ Visibility="{Binding MaterialListIsVisible}" Style="{StaticResource DoorParamsCmBx}"/> - --> - + IsDefault="True"/> - - + Margin="15, 5, 50, 5" + IsCancel="True"/> - + diff --git a/HardwarePart/HardwarePartVM.vb b/HardwarePart/HardwarePartVM.vb index b873d85..c843bf4 100644 --- a/HardwarePart/HardwarePartVM.vb +++ b/HardwarePart/HardwarePartVM.vb @@ -232,7 +232,7 @@ Public Class HardwarePartVM Return "Material" End Get End Property - Public ReadOnly Property OkMsg As String + Public ReadOnly Property ApplyMsg As String Get Return "Apply" End Get @@ -315,7 +315,7 @@ Public Class HardwarePartVM Map.refHardwarePageVM.GenericPart.SetMaterial( m_SelectedMaterial ) End Try If OptionModule.m_MaterialList.Count > 1 then - m_MaterialIsVisible = Visibility.Visible + m_MaterialListIsVisble = Visibility.Visible NotifyPropertyChanged("MaterialListIsVisible") End If End If diff --git a/HardwarePart/HardwarePartWindowV.xaml b/HardwarePart/HardwarePartWindowV.xaml index 3d01427..74a9c39 100644 --- a/HardwarePart/HardwarePartWindowV.xaml +++ b/HardwarePart/HardwarePartWindowV.xaml @@ -7,8 +7,7 @@ BorderBrush="{StaticResource EgaltechBlue1}" WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False" IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" - CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" - Height="300" Width="300"> + CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"> diff --git a/HardwarePart/HardwarePartWindowVM.vb b/HardwarePart/HardwarePartWindowVM.vb new file mode 100644 index 0000000..3553b6d --- /dev/null +++ b/HardwarePart/HardwarePartWindowVM.vb @@ -0,0 +1,16 @@ +Public Class HardwarePartWindowVM + + Private m_HardwarePartV As HardwarePartV + Private m_HardwarePartVM As HardwarePartVM + + Public ReadOnly Property HardwarePart As ContentControl + Get + Return m_HardwarePartV + End Get + End Property + + Sub new (ref_HardwarePartVM As HardwarePartVM) + m_HardwarePartVM = ref_HardwarePartVM + m_HardwarePartV = New HardwarePartV(m_HardwarePartVM) + End Sub +End Class diff --git a/OptionsWindow/OptionsV.xaml b/OptionsWindow/OptionsV.xaml index bf9f3b6..829207e 100644 --- a/OptionsWindow/OptionsV.xaml +++ b/OptionsWindow/OptionsV.xaml @@ -297,6 +297,7 @@ + + + + + + + + - --> + + + + + - - + + + + + + + + \ No newline at end of file diff --git a/ProjectManager/ProjectManagerHardwareVM.vb b/ProjectManager/ProjectManagerHardwareVM.vb index a18d54e..ae760ee 100644 --- a/ProjectManager/ProjectManagerHardwareVM.vb +++ b/ProjectManager/ProjectManagerHardwareVM.vb @@ -110,7 +110,13 @@ Public Class ProjectManagerHardwareVM Public ReadOnly Property DoorToolTip As String Get ' Door - Return EgtMsg(50308) + Return EgtMsg(50308).ToUpper + End Get + End Property + Public ReadOnly Property HardwareToolTip As String + Get + ' Hardware + Return EgtMsg(50413).ToUpper End Get End Property Public ReadOnly Property NewDirToolTip As String @@ -532,6 +538,7 @@ Public Class ProjectManagerHardwareVM Map.refCompoPanelVM.GoBackVisibility = Visibility.Collapsed Map.refMainWindowVM.ProjectNameMsg = "" End If + Map.refRefreshPanelVM.DimensionVisibility = Visibility.Collapsed ' elimino i riferimenti all'hardware corrente Map.refHardwarePageVM.CurrHardware = Nothing ' spengo il focus su tutti i bottoni @@ -542,11 +549,22 @@ Public Class ProjectManagerHardwareVM ShowDimensionCommand = Visibility.Collapsed ' apro l'ultimo progetto LauncherModule.InitLauncherModule() + Map.refProjectManagerVM.DoorIsChecked = true Map.refProjectManagerVM.OpenLastProject() Map.refSceneManagerVM.RefreshBtn() CompoMatch.ResetSTU() End Sub + Private m_HardwareIsChecked As Boolean =True + Public Property HardwareIsChecked As Boolean + Get + Return m_HardwareIsChecked + End Get + Set(value As Boolean) + m_HardwareIsChecked = value + NotifyPropertyChanged("HardwareIsChecked") + End Set + End Property #End Region ' LastProject diff --git a/ProjectManager/ProjectManagerV.xaml b/ProjectManager/ProjectManagerV.xaml index 39f9779..44483cf 100644 --- a/ProjectManager/ProjectManagerV.xaml +++ b/ProjectManager/ProjectManagerV.xaml @@ -37,19 +37,19 @@ + - --> + - - - + + + + + + + + diff --git a/ProjectManager/ProjectManagerVM.vb b/ProjectManager/ProjectManagerVM.vb index 4077072..0cca1be 100644 --- a/ProjectManager/ProjectManagerVM.vb +++ b/ProjectManager/ProjectManagerVM.vb @@ -179,7 +179,13 @@ Public Class ProjectManagerVM Public ReadOnly Property HardwareToolTip As String Get ' Hardware - Return EgtMsg(50413) + Return EgtMsg(50413).ToUpper + End Get + End Property + Public ReadOnly Property DoorToolTip As String + Get + ' Door + Return EgtMsg(50308).ToUpper End Get End Property @@ -1223,8 +1229,20 @@ Public Class ProjectManagerVM CompoMatch.LoadTableGeometry() Map.refHardwareHelpSceneHostV.CleanHelpProject() Map.refRefreshPanelVM.ButtonVisibility = Visibility.Collapsed + Map.refRefreshPanelVM.DimensionVisibility = Visibility.Visible + Map.refProjectManagerHardwareVM.HardwareIsChecked = True End Sub + Private m_DoorIsChecked As Boolean =True + Public Property DoorIsChecked As Boolean + Get + Return m_DoorIsChecked + End Get + Set(value As Boolean) + m_DoorIsChecked = value + NotifyPropertyChanged("DoorIsChecked") + End Set + End Property #End Region ' Hardware diff --git a/Resources/Template/HPart1.png b/Resources/Template/HPart1.png new file mode 100644 index 0000000..0245469 Binary files /dev/null and b/Resources/Template/HPart1.png differ diff --git a/Resources/Template/TemplateDoor .png b/Resources/Template/TemplateDoor .png deleted file mode 100644 index 30b7777..0000000 Binary files a/Resources/Template/TemplateDoor .png and /dev/null differ diff --git a/Resources/Template/TemplateDoor.png b/Resources/Template/TemplateDoor.png new file mode 100644 index 0000000..9495fb9 Binary files /dev/null and b/Resources/Template/TemplateDoor.png differ diff --git a/Resources/Template/TemplateDoor1.png b/Resources/Template/TemplateDoor1.png new file mode 100644 index 0000000..4e34d96 Binary files /dev/null and b/Resources/Template/TemplateDoor1.png differ diff --git a/Resources/TopCommandBar/Save1.png b/Resources/TopCommandBar/Save1.png new file mode 100644 index 0000000..436592f Binary files /dev/null and b/Resources/TopCommandBar/Save1.png differ diff --git a/Resources/TopCommandBar/SaveAs1.png b/Resources/TopCommandBar/SaveAs1.png new file mode 100644 index 0000000..c67b26b Binary files /dev/null and b/Resources/TopCommandBar/SaveAs1.png differ diff --git a/Resources/TopCommandBar/SaveAsTemplate.png b/Resources/TopCommandBar/SaveAsTemplate.png new file mode 100644 index 0000000..a6045b7 Binary files /dev/null and b/Resources/TopCommandBar/SaveAsTemplate.png differ diff --git a/Resources/TopCommandBar/SaveAsTemplate1.png b/Resources/TopCommandBar/SaveAsTemplate1.png new file mode 100644 index 0000000..e955851 Binary files /dev/null and b/Resources/TopCommandBar/SaveAsTemplate1.png differ diff --git a/SceneManager/DimensioningPanel/DimensioningPanelV.xaml b/SceneManager/DimensioningPanel/DimensioningPanelV.xaml index 3a95d4b..c3f9f5f 100644 --- a/SceneManager/DimensioningPanel/DimensioningPanelV.xaml +++ b/SceneManager/DimensioningPanel/DimensioningPanelV.xaml @@ -7,7 +7,7 @@ Visibility="{Binding DimensioningPanel_Visibility}"> diff --git a/SceneManager/InstrumentPanel/InstrumentPanelV.xaml b/SceneManager/InstrumentPanel/InstrumentPanelV.xaml index e93b46d..2e4b2be 100644 --- a/SceneManager/InstrumentPanel/InstrumentPanelV.xaml +++ b/SceneManager/InstrumentPanel/InstrumentPanelV.xaml @@ -4,8 +4,8 @@ - - + + diff --git a/SceneManager/RefreshPanel/RefreshPanelV.xaml b/SceneManager/RefreshPanel/RefreshPanelV.xaml index 56b3aad..293a14c 100644 --- a/SceneManager/RefreshPanel/RefreshPanelV.xaml +++ b/SceneManager/RefreshPanel/RefreshPanelV.xaml @@ -7,6 +7,12 @@ Command="{Binding Refresh_Command}"> +