Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 240979be7c | |||
| 5c17576575 | |||
| bc44b632bc | |||
| f7ccde68f4 | |||
| 743066c5f7 | |||
| d9f56bccf3 | |||
| 726cccae67 | |||
| 1b74715faa | |||
| bf4e08ae80 | |||
| b197031d08 | |||
| 328d333e16 | |||
| 99aed8e093 | |||
| 649753381d | |||
| 5e345284a3 | |||
| 306798a7d5 | |||
| d4d4e3a9d7 | |||
| 4525c6d780 | |||
| 88f5ac3a9e | |||
| e70d6b1c70 | |||
| 284baa8fb4 | |||
| 949d0571b0 | |||
| 18f9efd311 | |||
| cbb2b4245e | |||
| 67bd8bf8f4 | |||
| 422dbe00fb | |||
| 9235e8c069 | |||
| 2075589ea4 | |||
| 63e43c3ef4 | |||
| 4d9cea654c | |||
| a165cacfd3 | |||
| bbf5d257be |
@@ -1,8 +1,8 @@
|
|||||||
<Window x:Class="AboutBoxV"
|
<Window x:Class="AboutBoxV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="AboutBox" Height="320" Width="300" WindowStyle="None" ResizeMode="NoResize"
|
Title="AboutBox" Height="320" Width="300" WindowStyle="None" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" WindowStartupLocation="CenterOwner">
|
ShowInTaskbar="False" WindowStartupLocation="CenterOwner">
|
||||||
|
|
||||||
<Border BorderThickness="2" BorderBrush="LightBlue">
|
<Border BorderThickness="2" BorderBrush="LightBlue">
|
||||||
<Grid >
|
<Grid >
|
||||||
@@ -36,17 +36,17 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
<TextBlock Name="DescriptionLbl" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center"
|
<TextBlock Name="DescriptionLbl" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center" FontSize="18" />
|
VerticalAlignment="Center" FontSize="18" />
|
||||||
<TextBlock Name="VersionLbl" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Center"
|
<TextBlock Name="VersionLbl" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center" FontSize="18"/>
|
VerticalAlignment="Center" FontSize="18"/>
|
||||||
<TextBlock Name="KeyLbl" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Center"
|
<TextBlock Name="KeyLbl" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center" FontSize="18"/>
|
VerticalAlignment="Center" FontSize="18"/>
|
||||||
<TextBlock Name="CopyrightLbl" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Center"
|
<TextBlock Name="CopyrightLbl" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center" FontSize="12" />
|
VerticalAlignment="Center" FontSize="12" />
|
||||||
<TextBox Name="InfoLbl" Grid.Column="1" Grid.Row="7" HorizontalAlignment="Stretch"
|
<TextBox Name="InfoLbl" Grid.Column="1" Grid.Row="7" HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch" FontSize="12" IsReadOnly="true" TextWrapping="Wrap"/>
|
VerticalAlignment="Stretch" FontSize="12" IsReadOnly="true" TextWrapping="Wrap"/>
|
||||||
<Button Name="ExitBtn" Grid.Column="1" Grid.Row="9" IsCancel="True"
|
<Button Name="ExitBtn" Grid.Column="1" Grid.Row="9" IsCancel="True"
|
||||||
Margin="1,0"/>
|
Margin="1,0"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Public Class AboutBoxV
|
Public Class AboutBoxV
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Private Sub AboutBoxWD_Initialized(sender As Object, e As EventArgs) Handles Me.Initialized
|
Private Sub AboutBoxWD_Initialized(sender As Object, e As EventArgs) Handles Me.Initialized
|
||||||
Me.Owner = Application.Current.MainWindow
|
Me.Owner = Application.Current.MainWindow
|
||||||
DescriptionLbl.Text = My.Application.Info.Description.ToString()
|
DescriptionLbl.Text = My.Application.Info.Description.ToString()
|
||||||
@@ -15,20 +17,20 @@ Public Class AboutBoxV
|
|||||||
Dim sOpts As String = IniFile.m_nKeyOptions.ToString()
|
Dim sOpts As String = IniFile.m_nKeyOptions.ToString()
|
||||||
KeyLbl.Text = sKey & " - " & sKlev & " - " & sOpts
|
KeyLbl.Text = sKey & " - " & sKlev & " - " & sOpts
|
||||||
CopyrightLbl.Text = My.Application.Info.Copyright.ToString()
|
CopyrightLbl.Text = My.Application.Info.Copyright.ToString()
|
||||||
Dim sInfo As String = If( EgtIsDebug(), "*** Debug Libraries ***" & vbCrLf, "")
|
Dim sInfo As String = If(EgtIsDebug(), "*** Debug Libraries ***" & vbCrLf, "")
|
||||||
sInfo &= "DataRoot " & IniFile.m_sDataRoot & vbCrLf
|
sInfo &= "DataRoot " & IniFile.m_sDataRoot & vbCrLf
|
||||||
sInfo &= "Doors " & IniFile.m_sDoorsDirPath & vbCrLf
|
sInfo &= "Doors " & IniFile.m_sDoorsDirPath & vbCrLf
|
||||||
If OptionModule.m_MaterialList.Count = 1 Then
|
If OptionModule.m_MaterialList.Count = 1 Then
|
||||||
sInfo &= "Material " & OptionModule.m_MaterialList(0).Name
|
sInfo &= "Material " & OptionModule.m_MaterialList(0).Name
|
||||||
End If
|
End If
|
||||||
Dim sOpSys As String = String.Empty
|
Dim sOpSys As String = String.Empty
|
||||||
EgtGetOsInfo( sOpSys)
|
EgtGetOsInfo(sOpSys)
|
||||||
sInfo &= sOpSys & Environment.NewLine
|
sInfo &= sOpSys & Environment.NewLine
|
||||||
Dim sCPU As String = String.Empty
|
Dim sCPU As String = String.Empty
|
||||||
EgtGetCpuInfo( sCPU)
|
EgtGetCpuInfo(sCPU)
|
||||||
sInfo &= sCPU & Environment.NewLine
|
sInfo &= sCPU & Environment.NewLine
|
||||||
Dim sMem As String = String.Empty
|
Dim sMem As String = String.Empty
|
||||||
EgtGetMemoryInfo( sMem)
|
EgtGetMemoryInfo(sMem)
|
||||||
sInfo &= sMem & Environment.NewLine
|
sInfo &= sMem & Environment.NewLine
|
||||||
Dim sScene As String = String.Empty
|
Dim sScene As String = String.Empty
|
||||||
EgtGetSceneInfo(sScene)
|
EgtGetSceneInfo(sScene)
|
||||||
@@ -37,4 +39,6 @@ Public Class AboutBoxV
|
|||||||
ExitBtn.Content = EgtMsg(MSG_MISSINGKEYWD + 4) 'Ok
|
ExitBtn.Content = EgtMsg(MSG_MISSINGKEYWD + 4) 'Ok
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,10 +1,16 @@
|
|||||||
<Application x:Class="Application"
|
<Application x:Class="Application"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
ShutdownMode="OnMainWindowClose">
|
ShutdownMode="OnMainWindowClose">
|
||||||
|
|
||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary Source="EgtDOORCreatorDictionary.xaml"/>
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="EgtDOORCreatorDarkDictionary.xaml"/>
|
||||||
|
<ResourceDictionary Source="EgtDOORCreatorDictionary.xaml"/>
|
||||||
|
<ResourceDictionary Source="EgtDOORCreatorDefaultStyle.xaml"/>
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
</Application.Resources>
|
</Application.Resources>
|
||||||
|
|
||||||
</Application>
|
</Application>
|
||||||
|
|||||||
@@ -1,7 +1,19 @@
|
|||||||
Imports EgtWPFLib5
|
Class Application
|
||||||
Imports EgtUILib
|
|
||||||
|
|
||||||
Class Application
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Public Property ThemeDictionary As ResourceDictionary
|
||||||
|
' You could probably get it via its name with some query logic as well.
|
||||||
|
Get
|
||||||
|
Return Resources.MergedDictionaries(0)
|
||||||
|
End Get
|
||||||
|
Set(value As ResourceDictionary)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' Application-level events, such as Startup, Exit, and DispatcherUnhandledException
|
' Application-level events, such as Startup, Exit, and DispatcherUnhandledException
|
||||||
' can be handled in this file.
|
' can be handled in this file.
|
||||||
@@ -20,4 +32,13 @@ Class Application
|
|||||||
'Me.MainWindow.Show()
|
'Me.MainWindow.Show()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub ChangeTheme(uri As Uri)
|
||||||
|
ThemeDictionary.MergedDictionaries.Clear()
|
||||||
|
Dim rd As ResourceDictionary = New ResourceDictionary()
|
||||||
|
rd.Source = uri
|
||||||
|
ThemeDictionary.MergedDictionaries.Add(rd) ' New ResourceDictionary()) ' Source:=uri))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ Imports System.Text.RegularExpressions
|
|||||||
Public Class Assembly
|
Public Class Assembly
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' questa variabile se settata a vero da la possibilità di costruire un riferimento sui Jamb
|
' questa variabile se settata a vero da la possibilità di costruire un riferimento sui Jamb
|
||||||
Friend Shared BuiltReffCompo As Boolean = False
|
Friend Shared BuiltReffCompo As Boolean = False
|
||||||
Public bIsNewAssembly As Boolean = False
|
Public bIsNewAssembly As Boolean = False
|
||||||
@@ -24,7 +26,7 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_OneDoorProperty = value
|
m_OneDoorProperty = value
|
||||||
NotifyPropertyChanged("OneDoorProperty")
|
NotifyPropertyChanged(NameOf(OneDoorProperty))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -49,7 +51,7 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_LightUp = value
|
m_LightUp = value
|
||||||
NotifyPropertyChanged("LightUp")
|
NotifyPropertyChanged(NameOf(LightUp))
|
||||||
' viene ricalcolata la dimensione dell'anta
|
' viene ricalcolata la dimensione dell'anta
|
||||||
HeightDoor()
|
HeightDoor()
|
||||||
' viene ricalcolata l'altezza della porta e dei jamb laterali a partire dalla dimensione della porta
|
' viene ricalcolata l'altezza della porta e dei jamb laterali a partire dalla dimensione della porta
|
||||||
@@ -62,7 +64,7 @@ Public Class Assembly
|
|||||||
' questo metodo è utilizzato per caricare e aggiornare il valore m_lightUp senza eseguire le operazioni del Set
|
' questo metodo è utilizzato per caricare e aggiornare il valore m_lightUp senza eseguire le operazioni del Set
|
||||||
Public Sub SetLightUp(sLightUp As String)
|
Public Sub SetLightUp(sLightUp As String)
|
||||||
m_LightUp = sLightUp
|
m_LightUp = sLightUp
|
||||||
NotifyPropertyChanged("LightUp")
|
NotifyPropertyChanged(NameOf(LightUp))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_LightBottom As String
|
Private m_LightBottom As String
|
||||||
@@ -83,7 +85,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetLightBottom(sLightBottom As String)
|
Public Sub SetLightBottom(sLightBottom As String)
|
||||||
m_LightBottom = sLightBottom
|
m_LightBottom = sLightBottom
|
||||||
NotifyPropertyChanged("LightBottom")
|
NotifyPropertyChanged(NameOf(LightBottom))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Light Up/Bottom
|
#End Region ' Light Up/Bottom
|
||||||
@@ -106,7 +108,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetLightHinge(sSetLightHinge As String)
|
Public Sub SetLightHinge(sSetLightHinge As String)
|
||||||
m_LightHinge = sSetLightHinge
|
m_LightHinge = sSetLightHinge
|
||||||
NotifyPropertyChanged("LightHinge")
|
NotifyPropertyChanged(NameOf(LightHinge))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_LightLock As String
|
Private m_LightLock As String
|
||||||
@@ -125,7 +127,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetLightLock(sLightLock As String)
|
Public Sub SetLightLock(sLightLock As String)
|
||||||
m_LightLock = sLightLock
|
m_LightLock = sLightLock
|
||||||
NotifyPropertyChanged("LightLock")
|
NotifyPropertyChanged(NameOf(LightLock))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Light Hinge/Lock
|
#End Region ' Light Hinge/Lock
|
||||||
@@ -139,7 +141,7 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_ThicknessHead = value
|
m_ThicknessHead = value
|
||||||
NotifyPropertyChanged("ThicknessHead")
|
NotifyPropertyChanged(NameOf(ThicknessHead))
|
||||||
' viene ricalcolata l'altezza del JambTop
|
' viene ricalcolata l'altezza del JambTop
|
||||||
HeightJambTop()
|
HeightJambTop()
|
||||||
' viene ricalcolata l'altezza della porta e dei jamb laterali a partire dalla dimensione della porta
|
' viene ricalcolata l'altezza della porta e dei jamb laterali a partire dalla dimensione della porta
|
||||||
@@ -154,7 +156,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetThicknessHead(sThicknessHead As String)
|
Public Sub SetThicknessHead(sThicknessHead As String)
|
||||||
m_ThicknessHead = sThicknessHead
|
m_ThicknessHead = sThicknessHead
|
||||||
NotifyPropertyChanged("ThicknessHead")
|
NotifyPropertyChanged(NameOf(ThicknessHead))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' ThicknessHead
|
#End Region ' ThicknessHead
|
||||||
@@ -168,7 +170,7 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_ThicknessBottom = value
|
m_ThicknessBottom = value
|
||||||
NotifyPropertyChanged("ThicknessBottom")
|
NotifyPropertyChanged(NameOf(ThicknessBottom))
|
||||||
' viene ricalcolata l'altezza del JambTop
|
' viene ricalcolata l'altezza del JambTop
|
||||||
HeightJambBottom()
|
HeightJambBottom()
|
||||||
' viene ricalcolata l'altezza della porta e dei jamb laterali a partire dalla dimensione della porta
|
' viene ricalcolata l'altezza della porta e dei jamb laterali a partire dalla dimensione della porta
|
||||||
@@ -183,7 +185,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetThicknessBottom(sThicknessBottom As String)
|
Public Sub SetThicknessBottom(sThicknessBottom As String)
|
||||||
m_ThicknessBottom = sThicknessBottom
|
m_ThicknessBottom = sThicknessBottom
|
||||||
NotifyPropertyChanged("ThicknessBottom")
|
NotifyPropertyChanged(NameOf(ThicknessBottom))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_DepthBottom As String
|
Private m_DepthBottom As String
|
||||||
@@ -193,7 +195,7 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_DepthBottom = value
|
m_DepthBottom = value
|
||||||
NotifyPropertyChanged("DepthBottom")
|
NotifyPropertyChanged(NameOf(DepthBottom))
|
||||||
' viene ricalcolata la profondità del JambBottom
|
' viene ricalcolata la profondità del JambBottom
|
||||||
SetThicKnessJamb()
|
SetThicKnessJamb()
|
||||||
UpDateAllCompo()
|
UpDateAllCompo()
|
||||||
@@ -202,7 +204,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetDepthBottom(sDepthBottom As String)
|
Public Sub SetDepthBottom(sDepthBottom As String)
|
||||||
m_DepthBottom = sDepthBottom
|
m_DepthBottom = sDepthBottom
|
||||||
NotifyPropertyChanged("DepthBottom")
|
NotifyPropertyChanged(NameOf(DepthBottom))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Thickness Depth Bottom
|
#End Region ' Thickness Depth Bottom
|
||||||
@@ -231,7 +233,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetOverlapHinge(sOverlapHinge As String)
|
Public Sub SetOverlapHinge(sOverlapHinge As String)
|
||||||
m_OverlapHinge = sOverlapHinge
|
m_OverlapHinge = sOverlapHinge
|
||||||
NotifyPropertyChanged("OverlapHinge")
|
NotifyPropertyChanged(NameOf(OverlapHinge))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_OverlapLock As String
|
Private m_OverlapLock As String
|
||||||
@@ -254,7 +256,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetOverlapLock(sOverlapLock As String)
|
Public Sub SetOverlapLock(sOverlapLock As String)
|
||||||
m_OverlapLock = sOverlapLock
|
m_OverlapLock = sOverlapLock
|
||||||
NotifyPropertyChanged("OverlapLock")
|
NotifyPropertyChanged(NameOf(OverlapLock))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_OverlapTop As String
|
Private m_OverlapTop As String
|
||||||
@@ -274,7 +276,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetOverlapTop(sOverlapTop As String)
|
Public Sub SetOverlapTop(sOverlapTop As String)
|
||||||
m_OverlapTop = sOverlapTop
|
m_OverlapTop = sOverlapTop
|
||||||
NotifyPropertyChanged("OverlapTop")
|
NotifyPropertyChanged(NameOf(OverlapTop))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_OverlapBottom As String
|
Private m_OverlapBottom As String
|
||||||
@@ -292,7 +294,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetOverlapBottom(sOverlapBottom As String)
|
Public Sub SetOverlapBottom(sOverlapBottom As String)
|
||||||
m_OverlapBottom = sOverlapBottom
|
m_OverlapBottom = sOverlapBottom
|
||||||
NotifyPropertyChanged("OverlapBottom")
|
NotifyPropertyChanged(NameOf(OverlapBottom))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_DeltaThickness As String
|
Private m_DeltaThickness As String
|
||||||
@@ -310,7 +312,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetDeltaThickness(sDeltaThickness As String)
|
Public Sub SetDeltaThickness(sDeltaThickness As String)
|
||||||
m_DeltaThickness = sDeltaThickness
|
m_DeltaThickness = sDeltaThickness
|
||||||
NotifyPropertyChanged("DeltaThickness")
|
NotifyPropertyChanged(NameOf(DeltaThickness))
|
||||||
End Sub
|
End Sub
|
||||||
#End Region ' Overlap Hinge/Lock/Top/DeltaT
|
#End Region ' Overlap Hinge/Lock/Top/DeltaT
|
||||||
|
|
||||||
@@ -330,7 +332,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetThickness(sThickness As String)
|
Public Sub SetThickness(sThickness As String)
|
||||||
m_Thickness = sThickness
|
m_Thickness = sThickness
|
||||||
NotifyPropertyChanged("Thickness")
|
NotifyPropertyChanged(NameOf(Thickness))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_Width As String
|
Private m_Width As String
|
||||||
@@ -348,7 +350,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetWidth(sWidth As String)
|
Public Sub SetWidth(sWidth As String)
|
||||||
m_Width = sWidth
|
m_Width = sWidth
|
||||||
NotifyPropertyChanged("Width")
|
NotifyPropertyChanged(NameOf(Width))
|
||||||
End Sub
|
End Sub
|
||||||
#End Region ' Jamb Thickness/Width
|
#End Region ' Jamb Thickness/Width
|
||||||
|
|
||||||
@@ -380,14 +382,14 @@ Public Class Assembly
|
|||||||
Next
|
Next
|
||||||
m_DispositionItem = value
|
m_DispositionItem = value
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
NotifyPropertyChanged("DispositionItem")
|
NotifyPropertyChanged(NameOf(DispositionItem))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public Sub SetDispositionItem(ObjDisposition As EdgeType)
|
Public Sub SetDispositionItem(ObjDisposition As EdgeType)
|
||||||
If IsNothing(m_DispositionItem) Then
|
If IsNothing(m_DispositionItem) Then
|
||||||
m_DispositionItem = ObjDisposition
|
m_DispositionItem = ObjDisposition
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("DispositionItem")
|
NotifyPropertyChanged(NameOf(DispositionItem))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_LockEdgeType As New EdgeType("", Visibility.Visible)
|
Private m_LockEdgeType As New EdgeType("", Visibility.Visible)
|
||||||
@@ -405,7 +407,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.LockEdgeType = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.LockEdgeType = value
|
||||||
Next
|
Next
|
||||||
m_LockEdgeType = value
|
m_LockEdgeType = value
|
||||||
NotifyPropertyChanged("LockEdgeType")
|
NotifyPropertyChanged(NameOf(LockEdgeType))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.SetLockEdgeType(value)
|
'm_LeftJamb.SetLockEdgeType(value)
|
||||||
'm_RightJamb.SetLockEdgeType(value)
|
'm_RightJamb.SetLockEdgeType(value)
|
||||||
@@ -415,7 +417,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetLockEdgeType(sLockEdgeType As EdgeType)
|
Public Sub SetLockEdgeType(sLockEdgeType As EdgeType)
|
||||||
m_LockEdgeType = sLockEdgeType
|
m_LockEdgeType = sLockEdgeType
|
||||||
NotifyPropertyChanged("LockEdgeType")
|
NotifyPropertyChanged(NameOf(LockEdgeType))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_HingeEdgeType As New EdgeType("", Visibility.Visible)
|
Private m_HingeEdgeType As New EdgeType("", Visibility.Visible)
|
||||||
@@ -433,7 +435,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.HingeEdgeType = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.HingeEdgeType = value
|
||||||
Next
|
Next
|
||||||
m_HingeEdgeType = value
|
m_HingeEdgeType = value
|
||||||
NotifyPropertyChanged("HingeEdgeType")
|
NotifyPropertyChanged(NameOf(HingeEdgeType))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.SetHingeEdgeType(value)
|
'm_LeftJamb.SetHingeEdgeType(value)
|
||||||
'm_RightJamb.SetHingeEdgeType(value)
|
'm_RightJamb.SetHingeEdgeType(value)
|
||||||
@@ -443,7 +445,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetHingeEdgeType(sHingeEdgeType As EdgeType)
|
Public Sub SetHingeEdgeType(sHingeEdgeType As EdgeType)
|
||||||
m_HingeEdgeType = sHingeEdgeType
|
m_HingeEdgeType = sHingeEdgeType
|
||||||
NotifyPropertyChanged("HingeEdgeType")
|
NotifyPropertyChanged(NameOf(HingeEdgeType))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_TopType As New EdgeType("", Visibility.Visible)
|
Private m_TopType As New EdgeType("", Visibility.Visible)
|
||||||
@@ -461,7 +463,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.TopType = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.TopType = value
|
||||||
Next
|
Next
|
||||||
m_TopType = value
|
m_TopType = value
|
||||||
NotifyPropertyChanged("TopType")
|
NotifyPropertyChanged(NameOf(TopType))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.SetTopType(value)
|
'm_LeftJamb.SetTopType(value)
|
||||||
'm_RightJamb.SetTopType(value)
|
'm_RightJamb.SetTopType(value)
|
||||||
@@ -471,7 +473,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetTopType(sTopType As EdgeType)
|
Public Sub SetTopType(sTopType As EdgeType)
|
||||||
m_TopType = sTopType
|
m_TopType = sTopType
|
||||||
NotifyPropertyChanged("TopType")
|
NotifyPropertyChanged(NameOf(TopType))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_BottomType As New EdgeType("", Visibility.Visible)
|
Private m_BottomType As New EdgeType("", Visibility.Visible)
|
||||||
@@ -489,7 +491,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.BottomType = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.BottomType = value
|
||||||
Next
|
Next
|
||||||
m_BottomType = value
|
m_BottomType = value
|
||||||
NotifyPropertyChanged("BottomType")
|
NotifyPropertyChanged(NameOf(BottomType))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.SetBottomType(value)
|
'm_LeftJamb.SetBottomType(value)
|
||||||
'm_RightJamb.SetBottomType(value)
|
'm_RightJamb.SetBottomType(value)
|
||||||
@@ -499,7 +501,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetBottomType(sBottomType As EdgeType)
|
Public Sub SetBottomType(sBottomType As EdgeType)
|
||||||
m_BottomType = sBottomType
|
m_BottomType = sBottomType
|
||||||
NotifyPropertyChanged("BottomType")
|
NotifyPropertyChanged(NameOf(BottomType))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_TopMachining As Boolean
|
Private m_TopMachining As Boolean
|
||||||
@@ -513,7 +515,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.TopMachining = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.TopMachining = value
|
||||||
Next
|
Next
|
||||||
m_TopMachining = value
|
m_TopMachining = value
|
||||||
NotifyPropertyChanged("TopMachining")
|
NotifyPropertyChanged(NameOf(TopMachining))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.TopMachining = m_TopMachining
|
'm_LeftJamb.TopMachining = m_TopMachining
|
||||||
'm_RightJamb.TopMachining = m_TopMachining
|
'm_RightJamb.TopMachining = m_TopMachining
|
||||||
@@ -523,7 +525,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetTopMachining(sTopMachining As Boolean)
|
Public Sub SetTopMachining(sTopMachining As Boolean)
|
||||||
m_TopMachining = sTopMachining
|
m_TopMachining = sTopMachining
|
||||||
NotifyPropertyChanged("TopMachining")
|
NotifyPropertyChanged(NameOf(TopMachining))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_LockEdgeMachining As Boolean
|
Private m_LockEdgeMachining As Boolean
|
||||||
@@ -537,7 +539,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.LockEdgeMachining = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.LockEdgeMachining = value
|
||||||
Next
|
Next
|
||||||
m_LockEdgeMachining = value
|
m_LockEdgeMachining = value
|
||||||
NotifyPropertyChanged("LockEdgeMachining")
|
NotifyPropertyChanged(NameOf(LockEdgeMachining))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
'Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.LockEdgeMachining = m_LockEdgeMachining
|
'm_LeftJamb.LockEdgeMachining = m_LockEdgeMachining
|
||||||
@@ -548,7 +550,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetLockEdgeMachining(sLockEdgeMachining As Boolean)
|
Public Sub SetLockEdgeMachining(sLockEdgeMachining As Boolean)
|
||||||
m_LockEdgeMachining = sLockEdgeMachining
|
m_LockEdgeMachining = sLockEdgeMachining
|
||||||
NotifyPropertyChanged("LockEdgeMachining")
|
NotifyPropertyChanged(NameOf(LockEdgeMachining))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_HingeEdgeMachining As Boolean
|
Private m_HingeEdgeMachining As Boolean
|
||||||
@@ -562,7 +564,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.HingeEdgeMachining = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.HingeEdgeMachining = value
|
||||||
Next
|
Next
|
||||||
m_HingeEdgeMachining = value
|
m_HingeEdgeMachining = value
|
||||||
NotifyPropertyChanged("HingeEdgeMachining")
|
NotifyPropertyChanged(NameOf(HingeEdgeMachining))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.HingeEdgeMachining = value
|
'm_LeftJamb.HingeEdgeMachining = value
|
||||||
'm_RightJamb.HingeEdgeMachining = value
|
'm_RightJamb.HingeEdgeMachining = value
|
||||||
@@ -572,7 +574,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetHingeEdgeMachining(sHingeEdgeMachining As Boolean)
|
Public Sub SetHingeEdgeMachining(sHingeEdgeMachining As Boolean)
|
||||||
m_HingeEdgeMachining = sHingeEdgeMachining
|
m_HingeEdgeMachining = sHingeEdgeMachining
|
||||||
NotifyPropertyChanged("HingeEdgeMachining")
|
NotifyPropertyChanged(NameOf(HingeEdgeMachining))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_BottomMachining As Boolean
|
Private m_BottomMachining As Boolean
|
||||||
@@ -586,7 +588,7 @@ Public Class Assembly
|
|||||||
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.BottomMachining = value
|
If ItemPartDoor.Type.Contains("F") Then ItemPartDoor.Door.BottomMachining = value
|
||||||
Next
|
Next
|
||||||
m_BottomMachining = value
|
m_BottomMachining = value
|
||||||
NotifyPropertyChanged("BottomMachining")
|
NotifyPropertyChanged(NameOf(BottomMachining))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
'm_LeftJamb.BottomMachining = value
|
'm_LeftJamb.BottomMachining = value
|
||||||
'm_RightJamb.BottomMachining = value
|
'm_RightJamb.BottomMachining = value
|
||||||
@@ -596,7 +598,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetBottomMachining(sBottomMachining As Boolean)
|
Public Sub SetBottomMachining(sBottomMachining As Boolean)
|
||||||
m_BottomMachining = sBottomMachining
|
m_BottomMachining = sBottomMachining
|
||||||
NotifyPropertyChanged("BottomMachining")
|
NotifyPropertyChanged(NameOf(BottomMachining))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' EdgeType
|
#End Region ' EdgeType
|
||||||
@@ -610,11 +612,11 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_Exterior = value
|
m_Exterior = value
|
||||||
NotifyPropertyChanged("Exterior")
|
NotifyPropertyChanged(NameOf(Exterior))
|
||||||
SetDimension("JambIsCheked")
|
SetDimension("JambIsCheked")
|
||||||
'JambBIsChecked = value
|
'JambBIsChecked = value
|
||||||
SetJambBTIsChecked(value)
|
SetJambBTIsChecked(value)
|
||||||
NotifyPropertyChanged("JambBIsChecked")
|
NotifyPropertyChanged(NameOf(JambBIsChecked))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
SetThicKnessJamb()
|
SetThicKnessJamb()
|
||||||
'HingeRabbetJamb()
|
'HingeRabbetJamb()
|
||||||
@@ -623,7 +625,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetExterior(bExterior As Boolean)
|
Public Sub SetExterior(bExterior As Boolean)
|
||||||
m_Exterior = bExterior
|
m_Exterior = bExterior
|
||||||
NotifyPropertyChanged("Exterior")
|
NotifyPropertyChanged(NameOf(Exterior))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_DeltaBottom As String
|
Private m_DeltaBottom As String
|
||||||
@@ -640,7 +642,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetDeltaBottom(sDeltaBottom As String)
|
Public Sub SetDeltaBottom(sDeltaBottom As String)
|
||||||
m_DeltaBottom = sDeltaBottom
|
m_DeltaBottom = sDeltaBottom
|
||||||
NotifyPropertyChanged("DeltaBottom")
|
NotifyPropertyChanged(NameOf(DeltaBottom))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Exterior
|
#End Region ' Exterior
|
||||||
@@ -654,12 +656,12 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_Dimension = value
|
m_Dimension = value
|
||||||
NotifyPropertyChanged("Dimension")
|
NotifyPropertyChanged(NameOf(Dimension))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public Sub SetDimension(bDimension As Boolean)
|
Public Sub SetDimension(bDimension As Boolean)
|
||||||
m_Dimension = bDimension
|
m_Dimension = bDimension
|
||||||
NotifyPropertyChanged("Dimension")
|
NotifyPropertyChanged(NameOf(Dimension))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_AssemblyHeight As String
|
Private m_AssemblyHeight As String
|
||||||
@@ -691,13 +693,13 @@ Public Class Assembly
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_AssemblyHeight = value
|
m_AssemblyHeight = value
|
||||||
NotifyPropertyChanged("AssemblyHeight")
|
NotifyPropertyChanged(NameOf(AssemblyHeight))
|
||||||
SetDimension("Height")
|
SetDimension("Height")
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public Sub SetAssemblyHeight(sAssemblyHeight As String)
|
Public Sub SetAssemblyHeight(sAssemblyHeight As String)
|
||||||
m_AssemblyHeight = sAssemblyHeight
|
m_AssemblyHeight = sAssemblyHeight
|
||||||
NotifyPropertyChanged("AssemblyHeight")
|
NotifyPropertyChanged(NameOf(AssemblyHeight))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_AssemblyWidth As String
|
Private m_AssemblyWidth As String
|
||||||
@@ -725,12 +727,12 @@ Public Class Assembly
|
|||||||
m_AssemblyWidth = value
|
m_AssemblyWidth = value
|
||||||
SetWidthJamb()
|
SetWidthJamb()
|
||||||
SetDimension("Width")
|
SetDimension("Width")
|
||||||
NotifyPropertyChanged("AssemblyWidth")
|
NotifyPropertyChanged(NameOf(AssemblyWidth))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Public Sub SetAssemblyWidth(sAssemblyWidth As String)
|
Public Sub SetAssemblyWidth(sAssemblyWidth As String)
|
||||||
m_AssemblyWidth = sAssemblyWidth
|
m_AssemblyWidth = sAssemblyWidth
|
||||||
NotifyPropertyChanged("AssemblyWidth")
|
NotifyPropertyChanged(NameOf(AssemblyWidth))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' questa proprietà è utilizzata per stampare l'altezza della porta nella sezione dei jamb
|
' questa proprietà è utilizzata per stampare l'altezza della porta nella sezione dei jamb
|
||||||
@@ -775,7 +777,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetLockEdgeOverMaterial(sLockEdgeOverMaterial As String)
|
Public Sub SetLockEdgeOverMaterial(sLockEdgeOverMaterial As String)
|
||||||
m_LockEdgeOverMaterial = sLockEdgeOverMaterial
|
m_LockEdgeOverMaterial = sLockEdgeOverMaterial
|
||||||
NotifyPropertyChanged("LockEdgeOverMaterial")
|
NotifyPropertyChanged(NameOf(LockEdgeOverMaterial))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_HingeEdgeOverMaterial As String = String.Empty
|
Private m_HingeEdgeOverMaterial As String = String.Empty
|
||||||
@@ -804,7 +806,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetHingeEdgeOverMaterial(sHingeEdgeOverMaterial As String)
|
Public Sub SetHingeEdgeOverMaterial(sHingeEdgeOverMaterial As String)
|
||||||
m_HingeEdgeOverMaterial = sHingeEdgeOverMaterial
|
m_HingeEdgeOverMaterial = sHingeEdgeOverMaterial
|
||||||
NotifyPropertyChanged("HingeEdgeOverMaterial")
|
NotifyPropertyChanged(NameOf(HingeEdgeOverMaterial))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_TopOverMaterial As String = String.Empty
|
Private m_TopOverMaterial As String = String.Empty
|
||||||
@@ -833,7 +835,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetTopOverMaterial(sTopOverMaterial As String)
|
Public Sub SetTopOverMaterial(sTopOverMaterial As String)
|
||||||
m_TopOverMaterial = sTopOverMaterial
|
m_TopOverMaterial = sTopOverMaterial
|
||||||
NotifyPropertyChanged("TopOverMaterial")
|
NotifyPropertyChanged(NameOf(TopOverMaterial))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_BottomOverMaterial As String = String.Empty
|
Private m_BottomOverMaterial As String = String.Empty
|
||||||
@@ -862,7 +864,7 @@ Public Class Assembly
|
|||||||
End Property
|
End Property
|
||||||
Public Sub SetBottomOverMaterial(sBottomOverMaterial As String)
|
Public Sub SetBottomOverMaterial(sBottomOverMaterial As String)
|
||||||
m_BottomOverMaterial = sBottomOverMaterial
|
m_BottomOverMaterial = sBottomOverMaterial
|
||||||
NotifyPropertyChanged("BottomOverMaterial")
|
NotifyPropertyChanged(NameOf(BottomOverMaterial))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' OverMaterial
|
#End Region ' OverMaterial
|
||||||
@@ -887,7 +889,7 @@ Public Class Assembly
|
|||||||
' setto la sua variabile
|
' setto la sua variabile
|
||||||
If Not IsNothing(m_JambT) Then
|
If Not IsNothing(m_JambT) Then
|
||||||
m_JambT.IsActive = value
|
m_JambT.IsActive = value
|
||||||
NotifyPropertyChanged("JambTIsChecked")
|
NotifyPropertyChanged(NameOf(JambTIsChecked))
|
||||||
End If
|
End If
|
||||||
' se non esiste l'oggeto prima lo creo
|
' se non esiste l'oggeto prima lo creo
|
||||||
SetDimension("JambIsCheked")
|
SetDimension("JambIsCheked")
|
||||||
@@ -904,7 +906,7 @@ Public Class Assembly
|
|||||||
' setto la sua variabile
|
' setto la sua variabile
|
||||||
If Not IsNothing(m_JambB) Then
|
If Not IsNothing(m_JambB) Then
|
||||||
m_JambB.IsActive = value
|
m_JambB.IsActive = value
|
||||||
NotifyPropertyChanged("JambBIsChecked")
|
NotifyPropertyChanged(NameOf(JambBIsChecked))
|
||||||
End If
|
End If
|
||||||
' se non esiste l'oggeto prima lo creo
|
' se non esiste l'oggeto prima lo creo
|
||||||
SetDimension("JambIsCheked")
|
SetDimension("JambIsCheked")
|
||||||
@@ -915,7 +917,7 @@ Public Class Assembly
|
|||||||
OptionModule.m_BottomJambChk = value
|
OptionModule.m_BottomJambChk = value
|
||||||
If Not IsNothing(m_JambB) Then
|
If Not IsNothing(m_JambB) Then
|
||||||
m_JambB.IsActive = value
|
m_JambB.IsActive = value
|
||||||
NotifyPropertyChanged("JambBIsChecked")
|
NotifyPropertyChanged(NameOf(JambBIsChecked))
|
||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -930,11 +932,11 @@ Public Class Assembly
|
|||||||
' setto la sua variabile
|
' setto la sua variabile
|
||||||
If Not IsNothing(m_JambL) Then
|
If Not IsNothing(m_JambL) Then
|
||||||
m_JambL.IsActive = value
|
m_JambL.IsActive = value
|
||||||
NotifyPropertyChanged("JambLIsChecked")
|
NotifyPropertyChanged(NameOf(JambLIsChecked))
|
||||||
End If
|
End If
|
||||||
|
EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
' se non esiste l'oggeto prima lo creo
|
' se non esiste l'oggeto prima lo creo
|
||||||
SetDimension("JambIsCheked")
|
SetDimension("JambIsCheked")
|
||||||
|
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -948,13 +950,17 @@ Public Class Assembly
|
|||||||
' setto la sua variabile
|
' setto la sua variabile
|
||||||
If Not IsNothing(m_JambR) Then
|
If Not IsNothing(m_JambR) Then
|
||||||
m_JambR.IsActive = value
|
m_JambR.IsActive = value
|
||||||
NotifyPropertyChanged("JambRIsChecked")
|
NotifyPropertyChanged(NameOf(JambRIsChecked))
|
||||||
End If
|
End If
|
||||||
' se non esiste l'oggeto prima lo creo
|
' se non esiste l'oggeto prima lo creo
|
||||||
SetDimension("JambIsCheked")
|
SetDimension("JambIsCheked")
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
#Region "DOOR NUMBER"
|
#Region "DOOR NUMBER"
|
||||||
|
|
||||||
' carica il numero di porte da mostrare nella combobox
|
' carica il numero di porte da mostrare nella combobox
|
||||||
@@ -981,7 +987,7 @@ Public Class Assembly
|
|||||||
Else
|
Else
|
||||||
OneDoorProperty = False
|
OneDoorProperty = False
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("DoorNumber")
|
NotifyPropertyChanged(NameOf(DoorNumber))
|
||||||
SetDimension("DoorNumber")
|
SetDimension("DoorNumber")
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
@@ -999,7 +1005,7 @@ Public Class Assembly
|
|||||||
Else
|
Else
|
||||||
OneDoorProperty = False
|
OneDoorProperty = False
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("DoorNumber")
|
NotifyPropertyChanged(NameOf(DoorNumber))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Door Number
|
#End Region ' Door Number
|
||||||
@@ -1015,7 +1021,7 @@ Public Class Assembly
|
|||||||
Set(value As ObservableCollection(Of PartDoor))
|
Set(value As ObservableCollection(Of PartDoor))
|
||||||
m_ListPartDoor = value
|
m_ListPartDoor = value
|
||||||
' ogni volta che si aggiunge una compoenente riallinea la lista sotto
|
' ogni volta che si aggiunge una compoenente riallinea la lista sotto
|
||||||
NotifyPropertyChanged("ListPartDoorOfDoor")
|
NotifyPropertyChanged(NameOf(ListPartDoorOfDoor))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -1035,7 +1041,7 @@ Public Class Assembly
|
|||||||
|
|
||||||
#End Region ' List Part
|
#End Region ' List Part
|
||||||
|
|
||||||
#Region "Lettura Assemblato"
|
#Region "LETTURA ASSEMBLATO"
|
||||||
|
|
||||||
' messaggi che possono essere restituiti in fase di lettura dell'assemblato
|
' messaggi che possono essere restituiti in fase di lettura dell'assemblato
|
||||||
Public Enum ResultReadingAssembInfo
|
Public Enum ResultReadingAssembInfo
|
||||||
@@ -1045,7 +1051,15 @@ Public Class Assembly
|
|||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
' carico il valore finale restituito dalla lettura dell'assembalto (di default errore)
|
' carico il valore finale restituito dalla lettura dell'assembalto (di default errore)
|
||||||
Public bOk As ResultReadingAssembInfo = ResultReadingAssembInfo.ErrorInAssembInfo
|
Private m_bOk As ResultReadingAssembInfo = ResultReadingAssembInfo.ErrorInAssembInfo
|
||||||
|
Public Property bOk As ResultReadingAssembInfo
|
||||||
|
Get
|
||||||
|
Return m_bOk
|
||||||
|
End Get
|
||||||
|
Set(value As ResultReadingAssembInfo)
|
||||||
|
m_bOk = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
' vettore di righe del file ddf in lettura
|
' vettore di righe del file ddf in lettura
|
||||||
Private FileContent() As String
|
Private FileContent() As String
|
||||||
@@ -1497,7 +1511,13 @@ Public Class Assembly
|
|||||||
sDoorPiece = sDoorPiece.Remove(sDoorPiece.LastIndexOf("_"c) + 1)
|
sDoorPiece = sDoorPiece.Remove(sDoorPiece.LastIndexOf("_"c) + 1)
|
||||||
End If
|
End If
|
||||||
Map.refCompoPanelVM.GoBackVisibility = Visibility.Visible
|
Map.refCompoPanelVM.GoBackVisibility = Visibility.Visible
|
||||||
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nAssemblyPage
|
' verifico che la lettura dell'assemblato sia andato a buon fine
|
||||||
|
If Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.SelAssembly.bOk = Assembly.ResultReadingAssembInfo.MissingAssembInfo Then
|
||||||
|
' forzo l'apertura della pagina DOOR
|
||||||
|
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nDDFPage
|
||||||
|
Else
|
||||||
|
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nAssemblyPage
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
' significa che stiamo per leggere una porta singola, cerco una porta
|
' significa che stiamo per leggere una porta singola, cerco una porta
|
||||||
If Not Local_Door.TypePart.Contains("DO_") Then
|
If Not Local_Door.TypePart.Contains("DO_") Then
|
||||||
@@ -1726,7 +1746,7 @@ Public Class Assembly
|
|||||||
' controllo degli oggetti caricati nell'assemblato
|
' controllo degli oggetti caricati nell'assemblato
|
||||||
Private Function ControlAssemblyInformation() As Boolean
|
Private Function ControlAssemblyInformation() As Boolean
|
||||||
Dim ErrorMessages As String = String.Empty
|
Dim ErrorMessages As String = String.Empty
|
||||||
Select Case bOk
|
Select Case m_bOk
|
||||||
Case ResultReadingAssembInfo.CorrectAssembInfo
|
Case ResultReadingAssembInfo.CorrectAssembInfo
|
||||||
If OptionModule.m_ConfigurationSoftware = ConfigType.Door Then
|
If OptionModule.m_ConfigurationSoftware = ConfigType.Door Then
|
||||||
' 50520=The current ddf is an assembly
|
' 50520=The current ddf is an assembly
|
||||||
@@ -1780,9 +1800,9 @@ Public Class Assembly
|
|||||||
Public Function ControlAssembly(Optional ByVal bSaving As Boolean = False) As String
|
Public Function ControlAssembly(Optional ByVal bSaving As Boolean = False) As String
|
||||||
' se è una porta singola oppure le info generali non sono state caricate correttamente non controllo l'assemblato
|
' se è una porta singola oppure le info generali non sono state caricate correttamente non controllo l'assemblato
|
||||||
If bSaving Then
|
If bSaving Then
|
||||||
If bOk <> ResultReadingAssembInfo.MissingAssembInfo Then Return String.Empty
|
If m_bOk <> ResultReadingAssembInfo.MissingAssembInfo Then Return String.Empty
|
||||||
Else
|
Else
|
||||||
If bOk = ResultReadingAssembInfo.ErrorInAssembInfo OrElse bOk = ResultReadingAssembInfo.MissingAssembInfo Then Return String.Empty
|
If m_bOk = ResultReadingAssembInfo.ErrorInAssembInfo OrElse m_bOk = ResultReadingAssembInfo.MissingAssembInfo Then Return String.Empty
|
||||||
End If
|
End If
|
||||||
Dim WritingError As String = String.Empty
|
Dim WritingError As String = String.Empty
|
||||||
Dim DoorTypeList As String = String.Empty
|
Dim DoorTypeList As String = String.Empty
|
||||||
@@ -2075,6 +2095,8 @@ Public Class Assembly
|
|||||||
|
|
||||||
#Region "CreateRefCompo"
|
#Region "CreateRefCompo"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' questo metodo è chiamato dalla proprietà CompoBtn nella classe CompoPanelVM
|
' questo metodo è chiamato dalla proprietà CompoBtn nella classe CompoPanelVM
|
||||||
' dopo aver aggiunto una componente da pulsantiera viene chiamato questo metodo che costruisce il riferimento
|
' dopo aver aggiunto una componente da pulsantiera viene chiamato questo metodo che costruisce il riferimento
|
||||||
' o anche solo esegue la modifica dell'associzaione
|
' o anche solo esegue la modifica dell'associzaione
|
||||||
@@ -2419,8 +2441,26 @@ Public Class Assembly
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#End Region ' CreateRefCompo
|
#End Region ' CreateRefCompo
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
' gestisce la chimata delle funzioni a seconda della modifica eseguita
|
||||||
|
Public ReadOnly Property JambExists As Boolean
|
||||||
|
Get
|
||||||
|
If Not IsNothing(m_JambL) AndAlso Not IsNothing(m_JambR) AndAlso Not IsNothing(m_JambT) Then
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
Return False
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' ha lo scopo di creare una copia dei riferimenti dei PartDoor
|
' ha lo scopo di creare una copia dei riferimenti dei PartDoor
|
||||||
' per permettere di scrivere in modo più semplice i metodi
|
' per permettere di scrivere in modo più semplice i metodi
|
||||||
Private Sub SetPartDoorCurrAssembly()
|
Private Sub SetPartDoorCurrAssembly()
|
||||||
@@ -2445,21 +2485,15 @@ Public Class Assembly
|
|||||||
m_Door2 = ListPartDoor(IndexPartDoor).Door
|
m_Door2 = ListPartDoor(IndexPartDoor).Door
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
NotifyPropertyChanged("JambExists")
|
NotifyPropertyChanged(NameOf(JambExists))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property JambExists As Boolean
|
#End Region ' Methods
|
||||||
Get
|
|
||||||
If Not IsNothing(m_JambL) AndAlso Not IsNothing(m_JambR) AndAlso Not IsNothing(m_JambT) Then
|
|
||||||
Return True
|
|
||||||
End If
|
|
||||||
Return False
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
' gestisce la chimata delle funzioni a seconda della modifica eseguita
|
|
||||||
#Region "DIMENSIONING"
|
#Region "DIMENSIONING"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' Durante la costruzione di un nuovo assemblato, oppure quando viene aggiunta/rimossa un'anta
|
' Durante la costruzione di un nuovo assemblato, oppure quando viene aggiunta/rimossa un'anta
|
||||||
' una volta creata la prima porta questa funzione calcola le dimensioni del telaio
|
' una volta creata la prima porta questa funzione calcola le dimensioni del telaio
|
||||||
Public Sub SetNewDimensionAssembly(ByVal Optional IsNewAssembly As Boolean = False)
|
Public Sub SetNewDimensionAssembly(ByVal Optional IsNewAssembly As Boolean = False)
|
||||||
@@ -2498,6 +2532,7 @@ Public Class Assembly
|
|||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
|
|
||||||
Case "Height"
|
Case "Height"
|
||||||
|
If m_bOk <> ResultReadingAssembInfo.CorrectAssembInfo Then Return
|
||||||
HeightJamb()
|
HeightJamb()
|
||||||
HeightDoor()
|
HeightDoor()
|
||||||
TopRabbetJamb()
|
TopRabbetJamb()
|
||||||
@@ -2507,6 +2542,7 @@ Public Class Assembly
|
|||||||
UpDateAllCompo()
|
UpDateAllCompo()
|
||||||
|
|
||||||
Case "Width"
|
Case "Width"
|
||||||
|
If m_bOk <> ResultReadingAssembInfo.CorrectAssembInfo Then Return
|
||||||
TopBottomWidth()
|
TopBottomWidth()
|
||||||
TopRabbetJamb()
|
TopRabbetJamb()
|
||||||
BottomRabbetJamb()
|
BottomRabbetJamb()
|
||||||
@@ -2515,10 +2551,12 @@ Public Class Assembly
|
|||||||
UpDateAllCompo()
|
UpDateAllCompo()
|
||||||
|
|
||||||
Case "Thickness"
|
Case "Thickness"
|
||||||
|
If m_bOk <> ResultReadingAssembInfo.CorrectAssembInfo Then Return
|
||||||
TopRabbetJamb()
|
TopRabbetJamb()
|
||||||
UpDateAllCompo()
|
UpDateAllCompo()
|
||||||
|
|
||||||
Case "Swing"
|
Case "Swing"
|
||||||
|
If m_bOk <> ResultReadingAssembInfo.CorrectAssembInfo Then Return
|
||||||
UpDateCompolistOnJamb()
|
UpDateCompolistOnJamb()
|
||||||
SwingJamb()
|
SwingJamb()
|
||||||
SetPartDoorCurrAssembly()
|
SetPartDoorCurrAssembly()
|
||||||
@@ -2526,6 +2564,7 @@ Public Class Assembly
|
|||||||
'UpDateAllCompo()
|
'UpDateAllCompo()
|
||||||
|
|
||||||
Case "DoorNumber"
|
Case "DoorNumber"
|
||||||
|
If m_bOk <> ResultReadingAssembInfo.CorrectAssembInfo Then Return
|
||||||
ClearRefOnAssembly()
|
ClearRefOnAssembly()
|
||||||
SetPartDoorCurrAssembly()
|
SetPartDoorCurrAssembly()
|
||||||
ReverseDoor()
|
ReverseDoor()
|
||||||
@@ -2543,9 +2582,13 @@ Public Class Assembly
|
|||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#End Region ' Dimensioning
|
#End Region ' Dimensioning
|
||||||
|
|
||||||
#Region "UpDateRefCompo"
|
#Region "UPDATEREFCOMPO"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' ricostruisce tutte le componenti del telaio
|
' ricostruisce tutte le componenti del telaio
|
||||||
Public Sub CreateAssembly(Optional bAllDoors As Boolean = False)
|
Public Sub CreateAssembly(Optional bAllDoors As Boolean = False)
|
||||||
@@ -2863,12 +2906,14 @@ Public Class Assembly
|
|||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
|
#End Region ' UpdateRefCompo
|
||||||
#End Region ' UpDateRefCompo
|
|
||||||
|
|
||||||
#Region "HEIGHT"
|
#Region "HEIGHT"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' calcola l'altezza dei JambLeft e JambRight
|
' calcola l'altezza dei JambLeft e JambRight
|
||||||
Public Sub HeightJamb(ByVal Optional IsNewAssembly As Boolean = False)
|
Public Sub HeightJamb(ByVal Optional IsNewAssembly As Boolean = False)
|
||||||
' se ho impostanto l'area di lavoro non modifico l'altezza dei jamb
|
' se ho impostanto l'area di lavoro non modifico l'altezza dei jamb
|
||||||
@@ -2922,7 +2967,7 @@ Public Class Assembly
|
|||||||
If Not IsNothing(m_JambL) Then m_JambL.SetHeight(DoubleToString(HJamb, 4))
|
If Not IsNothing(m_JambL) Then m_JambL.SetHeight(DoubleToString(HJamb, 4))
|
||||||
If Not IsNothing(m_JambR) Then m_JambR.SetHeight(DoubleToString(HJamb, 4))
|
If Not IsNothing(m_JambR) Then m_JambR.SetHeight(DoubleToString(HJamb, 4))
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("AssemblyHeight")
|
NotifyPropertyChanged(NameOf(AssemblyHeight))
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -3067,10 +3112,14 @@ Public Class Assembly
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#End Region ' Height
|
#End Region ' Height
|
||||||
|
|
||||||
#Region "WIDTH"
|
#Region "WIDTH"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' calcola la larghezza dei jamb orizzonatli
|
' calcola la larghezza dei jamb orizzonatli
|
||||||
Private Sub TopBottomWidth()
|
Private Sub TopBottomWidth()
|
||||||
' vericfico che almeno uno su tre esista
|
' vericfico che almeno uno su tre esista
|
||||||
@@ -3114,7 +3163,7 @@ Public Class Assembly
|
|||||||
If Not IsNothing(m_JambB) Then m_JambB.SetWidth(DoubleToString(dWidth2 + dActualWidth, 4))
|
If Not IsNothing(m_JambB) Then m_JambB.SetWidth(DoubleToString(dWidth2 + dActualWidth, 4))
|
||||||
If Not IsNothing(m_JambT) Then m_JambT.SetWidth(DoubleToString(dWidth2 + dActualWidth, 4))
|
If Not IsNothing(m_JambT) Then m_JambT.SetWidth(DoubleToString(dWidth2 + dActualWidth, 4))
|
||||||
End Select
|
End Select
|
||||||
NotifyPropertyChanged("AssemblyWidth")
|
NotifyPropertyChanged(NameOf(AssemblyWidth))
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -3178,10 +3227,14 @@ Public Class Assembly
|
|||||||
'm_RightJamb.SetWidth(m_Width)
|
'm_RightJamb.SetWidth(m_Width)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#End Region ' Width
|
#End Region ' Width
|
||||||
|
|
||||||
#Region "THICKNESS"
|
#Region "THICKNESS"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' calcola la dimensione spessore dei Jamb (per tutti lo stesso)
|
' calcola la dimensione spessore dei Jamb (per tutti lo stesso)
|
||||||
Public Sub SetThicKnessJamb()
|
Public Sub SetThicKnessJamb()
|
||||||
If Not IsNothing(m_JambB) Then
|
If Not IsNothing(m_JambB) Then
|
||||||
@@ -3196,10 +3249,14 @@ Public Class Assembly
|
|||||||
If Not IsNothing(m_JambR) Then m_JambL.Thickness = m_Thickness
|
If Not IsNothing(m_JambR) Then m_JambL.Thickness = m_Thickness
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#End Region ' Thickness
|
#End Region ' Thickness
|
||||||
|
|
||||||
#Region "SWING"
|
#Region "SWING"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' se sulla porta singola avviene cambio swing (da LeftHand a RightHand) allora devo invertire i Jamb laterali
|
' se sulla porta singola avviene cambio swing (da LeftHand a RightHand) allora devo invertire i Jamb laterali
|
||||||
' se eistono entrambi i Jamb laterali inverto allora li inverto
|
' se eistono entrambi i Jamb laterali inverto allora li inverto
|
||||||
Public Sub UpDateCompolistOnJamb()
|
Public Sub UpDateCompolistOnJamb()
|
||||||
@@ -3479,6 +3536,8 @@ Public Class Assembly
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#End Region ' Swing
|
#End Region ' Swing
|
||||||
|
|
||||||
Public Sub RefreshJambCheck()
|
Public Sub RefreshJambCheck()
|
||||||
@@ -3530,6 +3589,8 @@ Public Class Assembly
|
|||||||
|
|
||||||
#Region "RABBET"
|
#Region "RABBET"
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' restituisce l'indice della componente "rabbet"
|
' restituisce l'indice della componente "rabbet"
|
||||||
Private Function nCompoRabbet() As Integer
|
Private Function nCompoRabbet() As Integer
|
||||||
Dim RabbetIndex As Integer = -1
|
Dim RabbetIndex As Integer = -1
|
||||||
@@ -3598,7 +3659,7 @@ Public Class Assembly
|
|||||||
MessageBox.Show(String.Format(EgtMsg(50180), Map.refCompoPanelVM.CompoTypeList(IndexCompoPanel).Name & ".frame"), EgtMsg(50101), MessageBoxButton.OK, MessageBoxImage.Error)
|
MessageBox.Show(String.Format(EgtMsg(50180), Map.refCompoPanelVM.CompoTypeList(IndexCompoPanel).Name & ".frame"), EgtMsg(50101), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
CurrCompo = Jamb.CompoList(IndexCompo)
|
CurrCompo = Jamb.CompoList(IndexCompo)
|
||||||
End If
|
End If
|
||||||
' mofico la componete rabbet
|
' mofico la componete rabbet
|
||||||
If Not IsNothing(CurrCompo) Then
|
If Not IsNothing(CurrCompo) Then
|
||||||
@@ -3619,20 +3680,20 @@ Public Class Assembly
|
|||||||
If TypeOf CurrCompoParam Is TextBoxParam Then
|
If TypeOf CurrCompoParam Is TextBoxParam Then
|
||||||
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
||||||
TextParam.m_Value = sThicknessHead
|
TextParam.m_Value = sThicknessHead
|
||||||
TextParam.NotifyPropertyChanged("Value")
|
TextParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
CurrCompoParam = CurrCompo.CompoParamList(2)
|
CurrCompoParam = CurrCompo.CompoParamList(2)
|
||||||
If TypeOf CurrCompoParam Is TextBoxParam Then
|
If TypeOf CurrCompoParam Is TextBoxParam Then
|
||||||
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
||||||
Dim sRabbetDepth As String = sOverlapTop
|
Dim sRabbetDepth As String = sOverlapTop
|
||||||
TextParam.m_Value = sRabbetDepth
|
TextParam.m_Value = sRabbetDepth
|
||||||
TextParam.NotifyPropertyChanged("Value")
|
TextParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
CurrCompoParam = CurrCompo.CompoParamList(3)
|
CurrCompoParam = CurrCompo.CompoParamList(3)
|
||||||
If TypeOf CurrCompoParam Is TextBoxOnOffParam Then
|
If TypeOf CurrCompoParam Is TextBoxOnOffParam Then
|
||||||
Dim TextParam As TextBoxOnOffParam = DirectCast(CurrCompoParam, TextBoxOnOffParam)
|
Dim TextParam As TextBoxOnOffParam = DirectCast(CurrCompoParam, TextBoxOnOffParam)
|
||||||
TextParam.SetIsActive(False)
|
TextParam.SetIsActive(False)
|
||||||
TextParam.NotifyPropertyChanged("Value")
|
TextParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -3744,7 +3805,7 @@ Public Class Assembly
|
|||||||
MessageBox.Show(String.Format(EgtMsg(50180), Map.refCompoPanelVM.CompoTypeList(CompoListIndex).Name & ".frame"), EgtMsg(50101), MessageBoxButton.OK, MessageBoxImage.Error)
|
MessageBox.Show(String.Format(EgtMsg(50180), Map.refCompoPanelVM.CompoTypeList(CompoListIndex).Name & ".frame"), EgtMsg(50101), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Local_Compo = Jamb.CompoList(IndexCompo)
|
Local_Compo = Jamb.CompoList(IndexCompo)
|
||||||
End If
|
End If
|
||||||
If Not IsNothing(Local_Compo) Then
|
If Not IsNothing(Local_Compo) Then
|
||||||
Dim dVal1 As Double = 0
|
Dim dVal1 As Double = 0
|
||||||
@@ -3834,7 +3895,7 @@ Public Class Assembly
|
|||||||
Else
|
Else
|
||||||
TextParam.m_Value = DoubleToString(dDeltaT + dThicknessDoor, 4)
|
TextParam.m_Value = DoubleToString(dDeltaT + dThicknessDoor, 4)
|
||||||
End If
|
End If
|
||||||
TextParam.NotifyPropertyChanged("Value")
|
TextParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
' depth
|
' depth
|
||||||
CurrCompoParam = CurrCompo.CompoParamList(2)
|
CurrCompoParam = CurrCompo.CompoParamList(2)
|
||||||
@@ -3843,7 +3904,7 @@ Public Class Assembly
|
|||||||
Dim sRabbetDepth As String = sOverlap
|
Dim sRabbetDepth As String = sOverlap
|
||||||
' la profondità deve essere la stessa che è stata definita sul rabbet top
|
' la profondità deve essere la stessa che è stata definita sul rabbet top
|
||||||
TextParam.m_Value = sRabbetDepth
|
TextParam.m_Value = sRabbetDepth
|
||||||
TextParam.NotifyPropertyChanged("Value")
|
TextParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
' angle
|
' angle
|
||||||
CurrCompoParam = CurrCompo.CompoParamList(3)
|
CurrCompoParam = CurrCompo.CompoParamList(3)
|
||||||
@@ -3851,7 +3912,7 @@ Public Class Assembly
|
|||||||
Dim TextOnOffParam As TextBoxOnOffParam = DirectCast(CurrCompoParam, TextBoxOnOffParam)
|
Dim TextOnOffParam As TextBoxOnOffParam = DirectCast(CurrCompoParam, TextBoxOnOffParam)
|
||||||
' disaativo il paramtro Angle
|
' disaativo il paramtro Angle
|
||||||
TextOnOffParam.SetIsActive(False)
|
TextOnOffParam.SetIsActive(False)
|
||||||
TextOnOffParam.NotifyPropertyChanged("Value")
|
TextOnOffParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Case 1
|
Case 1
|
||||||
@@ -3863,7 +3924,7 @@ Public Class Assembly
|
|||||||
If TypeOf DirectCast(CurrCompoParam, CompoParam) Is TextBoxParam Then
|
If TypeOf DirectCast(CurrCompoParam, CompoParam) Is TextBoxParam Then
|
||||||
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
||||||
TextParam.m_Value = DoubleToString(dDeltaT, 4)
|
TextParam.m_Value = DoubleToString(dDeltaT, 4)
|
||||||
TextParam.NotifyPropertyChanged("Value")
|
TextParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
' Depth
|
' Depth
|
||||||
CurrCompoParam = CurrCompo.CompoParamList(2)
|
CurrCompoParam = CurrCompo.CompoParamList(2)
|
||||||
@@ -3871,7 +3932,7 @@ Public Class Assembly
|
|||||||
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
Dim TextParam As TextBoxParam = DirectCast(CurrCompoParam, TextBoxParam)
|
||||||
Dim sRabbetDepth As String = sOverlap
|
Dim sRabbetDepth As String = sOverlap
|
||||||
TextParam.m_Value = sRabbetDepth
|
TextParam.m_Value = sRabbetDepth
|
||||||
TextParam.NotifyPropertyChanged("Value")
|
TextParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
' Angle
|
' Angle
|
||||||
CurrCompoParam = CurrCompo.CompoParamList(3)
|
CurrCompoParam = CurrCompo.CompoParamList(3)
|
||||||
@@ -3880,19 +3941,28 @@ Public Class Assembly
|
|||||||
Dim sAngle As String = "2"
|
Dim sAngle As String = "2"
|
||||||
TextOnOffParam.m_Value = sAngle
|
TextOnOffParam.m_Value = sAngle
|
||||||
TextOnOffParam.SetIsActive(True)
|
TextOnOffParam.SetIsActive(True)
|
||||||
TextOnOffParam.NotifyPropertyChanged("Value")
|
TextOnOffParam.NotifyPropertyChanged(NameOf(Value))
|
||||||
End If
|
End If
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#End Region ' Rabbet
|
#End Region ' Rabbet
|
||||||
|
|
||||||
#End Region ' Rules Assembly
|
#End Region ' Rules Assembly
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -7,413 +7,433 @@
|
|||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="300" d:DesignWidth="300">
|
d:DesignHeight="300" d:DesignWidth="300">
|
||||||
|
|
||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<EgtDOORCreator:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
<EgtDOORCreator:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
|
|
||||||
<Grid IsEnabled="{Binding EnablePageAssembly}">
|
<Grid IsEnabled="{Binding EnablePageAssembly}">
|
||||||
<Grid.InputBindings>
|
<Grid.InputBindings>
|
||||||
<KeyBinding Key="Enter" Command="{Binding DataContext.RefreshCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>
|
<KeyBinding Key="Enter" Command="{Binding DataContext.RefreshCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>
|
||||||
<KeyBinding Key="F1" Command="{Binding DataContext.GuideCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>
|
<KeyBinding Key="F1" Command="{Binding DataContext.GuideCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>
|
||||||
</Grid.InputBindings>
|
</Grid.InputBindings>
|
||||||
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="3*"/>
|
<ColumnDefinition Width="3*"/>
|
||||||
<ColumnDefinition Width="3*"/>
|
<ColumnDefinition Width="3*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<ColumnDefinition Width="1*"/>
|
<!--Jamb-->
|
||||||
<ColumnDefinition Width="1*"/>
|
<GroupBox Grid.ColumnSpan="2"
|
||||||
<ColumnDefinition Width="1*"/>
|
Margin="2,0,2,0"
|
||||||
<ColumnDefinition Width="1*"/>
|
IsEnabled="{Binding CurrAssembly.JambExists}"
|
||||||
</Grid.ColumnDefinitions>
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
<Grid.RowDefinitions>
|
<GroupBox.Header>
|
||||||
<RowDefinition Height="Auto"/>
|
<TextBlock Text="{Binding JambPageMsg}"
|
||||||
<RowDefinition Height="Auto"/>
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
<RowDefinition Height="Auto"/>
|
</GroupBox.Header>
|
||||||
<RowDefinition Height="1*"/>
|
<Grid Margin="0,0,0,2">
|
||||||
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
<!--Jamb-->
|
<ColumnDefinition Width="0.7*"/>
|
||||||
<GroupBox Header="{Binding JambPageMsg}" Margin="2,0,2,0" Grid.ColumnSpan="2"
|
<ColumnDefinition Width="1*"/>
|
||||||
IsEnabled="{Binding CurrAssembly.JambExists}">
|
<ColumnDefinition Width="0.7*"/>
|
||||||
<Grid Margin="0,0,0,2">
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<ColumnDefinition Width="0.7*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<ColumnDefinition Width="0.7*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
<RowDefinition Height="1*"/>
|
||||||
<Grid.RowDefinitions>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="1*"/>
|
</Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<!--Margin="0.4,2,29.6,3.2"-->
|
|
||||||
|
|
||||||
<!--UP-->
|
|
||||||
<TextBlock Grid.Row="0" Text="{Binding LightUpMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,2,0,2"
|
|
||||||
Grid.Column="0"/>
|
|
||||||
<TextBox Grid.Column="1" Grid.Row="0" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.LightUp, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto" />
|
|
||||||
<!--Lock-->
|
|
||||||
<TextBlock Grid.Row="1" Text="{Binding LightLockMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"
|
|
||||||
Grid.Column="0"/>
|
|
||||||
<TextBox Grid.Column="1" Grid.Row="1" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.LightLock, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<!--Hinge-->
|
|
||||||
<TextBlock Grid.Row="2" Text="{Binding LightHingeMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"
|
|
||||||
Grid.Column="0"/>
|
|
||||||
<TextBox Grid.Column="1" Grid.Row="2" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.LightHinge, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<!--Bottom-->
|
|
||||||
<TextBlock Grid.Row="3" Text="{Binding LightBottomMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"
|
|
||||||
Grid.Column="0"/>
|
|
||||||
<TextBox Grid.Column="1" Grid.Row="3" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.LightBottom, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<!--ThicknessHead-->
|
|
||||||
<TextBlock Grid.Row="0" Text="{Binding ThicknessHeadMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,2,0,2"
|
|
||||||
Grid.Column="2"/>
|
|
||||||
<TextBox Grid.Row="0" Grid.Column="3"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.ThicknessHead, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<!--OverlapHinge-->
|
|
||||||
<TextBlock Grid.Row="1" Text="{Binding OverlapHingeMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"
|
|
||||||
Grid.Column="2"/>
|
|
||||||
<TextBox Grid.Row="1" Grid.Column="3"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.OverlapHinge, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<!--OverlapLock-->
|
|
||||||
<TextBlock Grid.Row="2" Text="{Binding OverlapLockMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"
|
|
||||||
Grid.Column="2"/>
|
|
||||||
<TextBox Grid.Row="2" Grid.Column="3"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.OverlapLock, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"
|
|
||||||
IsEnabled="{Binding CurrAssembly.OneDoorProperty}"/>
|
|
||||||
<!--DoorsNumber-->
|
|
||||||
<TextBlock Grid.Row="4" Grid.Column="0" Text="{Binding DoorNumberMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"/>
|
|
||||||
<ComboBox Grid.Row="4" Grid.Column="1"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
ItemsSource="{Binding CurrAssembly.DoorListNumber}"
|
|
||||||
SelectedItem="{Binding CurrAssembly.DoorNumber}"
|
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
|
||||||
Height="Auto"/>
|
|
||||||
<!--Height-->
|
|
||||||
<TextBlock Grid.Row="3" Text="{Binding ThicknessMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"
|
|
||||||
Grid.Column="2"/>
|
|
||||||
<TextBox Grid.Row="3" Grid.Column="3"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.Thickness, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<!--Width-->
|
|
||||||
<TextBlock Grid.Row="4" Text="{Binding WidthMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"
|
|
||||||
Grid.Column="2"/>
|
|
||||||
<TextBox Grid.Row="4" Grid.Column="3"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.Width, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<!--OverlapTop-->
|
|
||||||
<TextBlock Grid.Row="5" Grid.Column="0"
|
|
||||||
Text="{Binding OverlapTopMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2"/>
|
|
||||||
<TextBox Grid.Row="5" Grid.Column="1"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.OverlapTop, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</GroupBox>
|
|
||||||
<!--JAmb Definition Machining and Bevel-->
|
|
||||||
<GroupBox Header="{Binding JambPageMsg}" Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="4"
|
|
||||||
Margin="2,0,2,0" IsEnabled="{Binding CurrAssembly.JambExists}">
|
|
||||||
|
|
||||||
<Grid Margin="0,0,0,2" >
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<TextBlock Grid.Column="1" Grid.Row="0"
|
|
||||||
Text="{Binding EdgeMsg}"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,5,0"/>
|
|
||||||
<TextBlock Grid.Column="2" Grid.Row="0"
|
|
||||||
Grid.ColumnSpan="3"
|
|
||||||
Text="{Binding OverMaterialMsg}"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,5,0"/>
|
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="1" Text="{Binding LockedgeMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2" />
|
|
||||||
<ComboBox Grid.Column="1" Grid.Row="1"
|
|
||||||
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
|
||||||
SelectedItem="{Binding CurrAssembly.LockEdgeType}"
|
|
||||||
Style="{StaticResource DoorEdgeParamsCmBx}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"/>
|
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="2"
|
|
||||||
Text="{Binding HingeedgeMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2" />
|
|
||||||
<ComboBox Grid.Column="1" Grid.Row="2"
|
|
||||||
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
|
||||||
SelectedItem="{Binding CurrAssembly.HingeEdgeType}"
|
|
||||||
Style="{StaticResource DoorEdgeParamsCmBx}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"/>
|
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="3"
|
|
||||||
Text="{Binding TopMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2" />
|
|
||||||
<ComboBox Grid.Column="1" Grid.Row="3"
|
|
||||||
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
|
||||||
SelectedItem="{Binding CurrAssembly.TopType}"
|
|
||||||
Style="{StaticResource DoorEdgeParamsCmBx}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"/>
|
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="4"
|
|
||||||
Text="{Binding BottomMsg}"
|
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
|
||||||
Margin="2,0,0,2" />
|
|
||||||
<ComboBox Grid.Column="1" Grid.Row="4"
|
|
||||||
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
|
||||||
SelectedItem="{Binding CurrAssembly.BottomType}"
|
|
||||||
Style="{StaticResource DoorEdgeParamsCmBx}"
|
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"/>
|
|
||||||
|
|
||||||
<!--Machining-->
|
|
||||||
<CheckBox Grid.Column="2" Grid.Row="1"
|
|
||||||
Name="LockEdge" Style="{StaticResource DoorParamsChBx}"
|
|
||||||
IsChecked="{Binding CurrAssembly.LockEdgeMachining}"
|
|
||||||
/>
|
|
||||||
<CheckBox Grid.Column="2" Grid.Row="2"
|
|
||||||
Name="HingeEdge" Style="{StaticResource DoorParamsChBx}"
|
|
||||||
IsChecked="{Binding CurrAssembly.HingeEdgeMachining}"
|
|
||||||
/>
|
|
||||||
<CheckBox Grid.Column="2" Grid.Row="3"
|
|
||||||
Name="Top" Style="{StaticResource DoorParamsChBx}"
|
|
||||||
IsChecked="{Binding CurrAssembly.TopMachining}"
|
|
||||||
/>
|
|
||||||
<CheckBox Grid.Column="2" Grid.Row="4"
|
|
||||||
Name="Bottom" Style="{StaticResource DoorParamsChBx}"
|
|
||||||
IsChecked="{Binding CurrAssembly.BottomMachining}"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!--Margin="15,2,24.6,3.2"-->
|
|
||||||
|
|
||||||
<TextBox Grid.Column="4" Grid.Row="1" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.LockEdgeOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
IsEnabled="{Binding IsChecked, ElementName=LockEdge}"
|
|
||||||
MaxWidth="120" Margin="10,2,10,3.2"/>
|
|
||||||
<TextBox Grid.Column="4" Grid.Row="2" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.HingeEdgeOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
IsEnabled="{Binding IsChecked, ElementName=HingeEdge}"
|
|
||||||
MaxWidth="120" Margin="10,2,10,3.2"/>
|
|
||||||
<TextBox Grid.Column="4" Grid.Row="3" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.TopOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
IsEnabled="{Binding IsChecked, ElementName=Top}"
|
|
||||||
MaxWidth="120" Margin="10,2,10,3.2"/>
|
|
||||||
<TextBox Grid.Column="4" Grid.Row="4" Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.BottomOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
IsEnabled="{Binding IsChecked, ElementName=Bottom}"
|
|
||||||
MaxWidth="120" Margin="10,2,10,3.2"/>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</GroupBox>
|
|
||||||
|
|
||||||
<!--Exterior-->
|
|
||||||
<GroupBox Grid.Row="1" Grid.ColumnSpan="2" Margin="2,0,2,0"
|
|
||||||
IsEnabled="{Binding CurrAssembly.JambExists}">
|
|
||||||
<GroupBox.Header>
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<CheckBox Grid.Row="0" Grid.Column="5"
|
|
||||||
Name="Exterior"
|
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
|
||||||
IsChecked="{Binding CurrAssembly.Exterior}"
|
|
||||||
Margin="0,0,2,0" VerticalAlignment="Stretch" Height="Auto"/>
|
|
||||||
<TextBlock Text="{Binding ExteriorMsg}" Width="Auto"/>
|
|
||||||
</StackPanel>
|
|
||||||
</GroupBox.Header>
|
|
||||||
|
|
||||||
<!--Margin="0.4,2,29.6,3.2"-->
|
<!--Margin="0.4,2,29.6,3.2"-->
|
||||||
|
|
||||||
<Grid Margin="0,0,0,2" IsEnabled="{Binding IsChecked, ElementName=Exterior}">
|
<!--UP-->
|
||||||
<Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0"
|
||||||
<ColumnDefinition Width="1*"/>
|
Grid.Column="0"
|
||||||
<ColumnDefinition Width="0.7*"/>
|
Text="{Binding LightUpMsg}"
|
||||||
<ColumnDefinition Width="1*"/>
|
Style="{DynamicResource JambsParams1TxBl}"/>
|
||||||
<ColumnDefinition Width="0.7*"/>
|
<TextBox Grid.Row="0"
|
||||||
</Grid.ColumnDefinitions>
|
Grid.Column="1"
|
||||||
<Grid.RowDefinitions>
|
Text="{Binding CurrAssembly.LightUp, UpdateSourceTrigger=PropertyChanged}"
|
||||||
<RowDefinition Height="1*"/>
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
<RowDefinition Height="1*"/>
|
<!--Lock-->
|
||||||
</Grid.RowDefinitions>
|
<TextBlock Grid.Row="1"
|
||||||
<!--Overlap Bottom-->
|
Grid.Column="0"
|
||||||
<TextBlock Grid.Row ="0" Grid.Column="0"
|
Text="{Binding LightLockMsg}"
|
||||||
Text="{Binding OverlapBottomMsg}"
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
<TextBox Grid.Row="1"
|
||||||
Margin="2,0,0,2" />
|
Grid.Column="1"
|
||||||
<TextBox Grid.Row ="0" Grid.Column="1"
|
Text="{Binding CurrAssembly.LightLock, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
Text="{Binding CurrAssembly.OverlapBottom, UpdateSourceTrigger=PropertyChanged}"
|
<!--Hinge-->
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
<TextBlock Grid.Row="2"
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
Grid.Column="0"
|
||||||
<!--Thickness Bottom-->
|
Text="{Binding LightHingeMsg}"
|
||||||
<TextBlock Grid.Row ="0" Grid.Column="2"
|
Style="{DynamicResource JambsParams1TxBl}"/>
|
||||||
Text="{Binding ThicknessBottomMsg}"
|
<TextBox Grid.Row="2"
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
Grid.Column="1"
|
||||||
Margin="2,0,0,2" />
|
Text="{Binding CurrAssembly.LightHinge, UpdateSourceTrigger=PropertyChanged}"
|
||||||
<TextBox Grid.Row ="0" Grid.Column="3"
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
<!--Bottom-->
|
||||||
Text="{Binding CurrAssembly.ThicknessBottom, UpdateSourceTrigger=PropertyChanged}"
|
<TextBlock Grid.Row="3"
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
Grid.Column="0"
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
Text="{Binding LightBottomMsg}"
|
||||||
<!--Depth Bottom-->
|
Margin="2,0,0,2"
|
||||||
<TextBlock Grid.Row ="1" Grid.Column="0"
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
Text="{Binding DepthBottomMsg}"
|
<TextBox Grid.Row="3"
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
Grid.Column="1"
|
||||||
Margin="2,0,0,2" />
|
Text="{Binding CurrAssembly.LightBottom, UpdateSourceTrigger=PropertyChanged}"
|
||||||
<TextBox Grid.Row ="1" Grid.Column="1"
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
<!--ThicknessHead-->
|
||||||
Text="{Binding CurrAssembly.DepthBottom, UpdateSourceTrigger=PropertyChanged}"
|
<TextBlock Grid.Row="0"
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
Grid.Column="2"
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
Text="{Binding ThicknessHeadMsg}"
|
||||||
<!--Delta Bottom-->
|
Style="{DynamicResource JambsParams1TxBl}"/>
|
||||||
<TextBlock Grid.Row ="1" Grid.Column="2"
|
<TextBox Grid.Row="0"
|
||||||
Text="{Binding DeltaBottomMsg}"
|
Grid.Column="3"
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
Text="{Binding CurrAssembly.ThicknessHead, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Margin="2,0,0,2" />
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
<TextBox Grid.Row ="1" Grid.Column="3"
|
<!--OverlapHinge-->
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
<TextBlock Grid.Row="1"
|
||||||
Text="{Binding CurrAssembly.DeltaBottom, UpdateSourceTrigger=PropertyChanged}"
|
Grid.Column="2"
|
||||||
MaxWidth="120" Margin="0.4,2,10,3.2"
|
Text="{Binding OverlapHingeMsg}"
|
||||||
VerticalAlignment="Stretch" Height="Auto"/>
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
</Grid>
|
<TextBox Grid.Row="1"
|
||||||
</GroupBox>
|
Grid.Column="3"
|
||||||
|
Text="{Binding CurrAssembly.OverlapHinge, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
<!--OverlapLock-->
|
||||||
|
<TextBlock Grid.Row="2"
|
||||||
|
Grid.Column="2"
|
||||||
|
Text="{Binding OverlapLockMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row="2"
|
||||||
|
Grid.Column="3"
|
||||||
|
Text="{Binding CurrAssembly.OverlapLock, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
IsEnabled="{Binding CurrAssembly.OneDoorProperty}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
<!--DoorsNumber-->
|
||||||
|
<TextBlock Grid.Row="4"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding DoorNumberMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<ComboBox Grid.Row="4"
|
||||||
|
Grid.Column="1"
|
||||||
|
ItemsSource="{Binding CurrAssembly.DoorListNumber}"
|
||||||
|
SelectedItem="{Binding CurrAssembly.DoorNumber}"
|
||||||
|
Style="{DynamicResource JambsParamsCmBx}"/>
|
||||||
|
<!--Height-->
|
||||||
|
<TextBlock Grid.Row="3"
|
||||||
|
Grid.Column="2"
|
||||||
|
Text="{Binding ThicknessMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row="3"
|
||||||
|
Grid.Column="3"
|
||||||
|
Text="{Binding CurrAssembly.Thickness, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
<!--Width-->
|
||||||
|
<TextBlock Grid.Row="4"
|
||||||
|
Grid.Column="2"
|
||||||
|
Text="{Binding WidthMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row="4"
|
||||||
|
Grid.Column="3"
|
||||||
|
Text="{Binding CurrAssembly.Width, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
<!--OverlapTop-->
|
||||||
|
<TextBlock Grid.Row="5"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding OverlapTopMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row="5"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding CurrAssembly.OverlapTop, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
|
||||||
<!--TotalDimension-->
|
</Grid>
|
||||||
<GroupBox Grid.Row="2" Grid.ColumnSpan="6" Margin="2,0,2,0"
|
</GroupBox>
|
||||||
IsEnabled="{Binding CurrAssembly.JambExists}">
|
<!--JAmb Definition Machining and Bevel-->
|
||||||
<GroupBox.Header>
|
<GroupBox Grid.Row="0"
|
||||||
<StackPanel Orientation="Horizontal">
|
Grid.Column="2"
|
||||||
<CheckBox Grid.Row="0" Grid.Column="5"
|
Grid.ColumnSpan="4"
|
||||||
|
Margin="2,0,2,0"
|
||||||
|
IsEnabled="{Binding CurrAssembly.JambExists}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
|
<GroupBox.Header>
|
||||||
|
<TextBlock Text="{Binding JambPageMsg}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
|
</GroupBox.Header>
|
||||||
|
<Grid Margin="0,0,0,2" >
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding EdgeMsg}"
|
||||||
|
Style="{DynamicResource JambsBevelTxBl}"/>
|
||||||
|
<TextBlock Grid.Row="0"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.ColumnSpan="3"
|
||||||
|
Text="{Binding OverMaterialMsg}"
|
||||||
|
Style="{DynamicResource JambsBevel2TxBl}"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding LockedgeMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<ComboBox Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
DisplayMemberPath="Name"
|
||||||
|
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
||||||
|
SelectedItem="{Binding CurrAssembly.LockEdgeType}"
|
||||||
|
Style="{DynamicResource JambsParamsCmBx}"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="2"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding HingeedgeMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}" />
|
||||||
|
<ComboBox Grid.Row="2"
|
||||||
|
Grid.Column="1"
|
||||||
|
DisplayMemberPath="Name"
|
||||||
|
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
||||||
|
SelectedItem="{Binding CurrAssembly.HingeEdgeType}"
|
||||||
|
Style="{DynamicResource JambsParamsCmBx}"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="3"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding TopMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<ComboBox Grid.Row="3"
|
||||||
|
Grid.Column="1"
|
||||||
|
DisplayMemberPath="Name"
|
||||||
|
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
||||||
|
SelectedItem="{Binding CurrAssembly.TopType}"
|
||||||
|
Style="{DynamicResource JambsParamsCmBx}"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="4"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding BottomMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<ComboBox Grid.Row="4"
|
||||||
|
Grid.Column="1"
|
||||||
|
DisplayMemberPath="Name"
|
||||||
|
ItemsSource="{Binding CurrAssembly.EdgeTypeList}"
|
||||||
|
SelectedItem="{Binding CurrAssembly.BottomType}"
|
||||||
|
Style="{DynamicResource JambsParamsCmBx}"/>
|
||||||
|
|
||||||
|
<!--Machining-->
|
||||||
|
<CheckBox Grid.Row="1"
|
||||||
|
Grid.Column="2"
|
||||||
|
Name="LockEdge"
|
||||||
|
IsChecked="{Binding CurrAssembly.LockEdgeMachining}"
|
||||||
|
Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
|
<CheckBox Grid.Row="2"
|
||||||
|
Grid.Column="2"
|
||||||
|
Name="HingeEdge"
|
||||||
|
IsChecked="{Binding CurrAssembly.HingeEdgeMachining}"
|
||||||
|
Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
|
<CheckBox Grid.Row="3"
|
||||||
|
Grid.Column="2"
|
||||||
|
Name="Top"
|
||||||
|
IsChecked="{Binding CurrAssembly.TopMachining}"
|
||||||
|
Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
|
<CheckBox Grid.Row="4"
|
||||||
|
Grid.Column="2"
|
||||||
|
Name="Bottom"
|
||||||
|
IsChecked="{Binding CurrAssembly.BottomMachining}"
|
||||||
|
Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
|
|
||||||
|
<!--Margin="15,2,24.6,3.2"-->
|
||||||
|
|
||||||
|
<TextBox Grid.Row="1"
|
||||||
|
Grid.Column="4"
|
||||||
|
Text="{Binding CurrAssembly.LockEdgeOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
IsEnabled="{Binding IsChecked, ElementName=LockEdge}"
|
||||||
|
Style="{DynamicResource CurrAssemblyTxBx}"/>
|
||||||
|
<TextBox Grid.Row="2"
|
||||||
|
Grid.Column="4"
|
||||||
|
Text="{Binding CurrAssembly.HingeEdgeOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
IsEnabled="{Binding IsChecked, ElementName=HingeEdge}"
|
||||||
|
Style="{DynamicResource CurrAssemblyTxBx}"/>
|
||||||
|
<TextBox Grid.Column="4" Grid.Row="3"
|
||||||
|
Text="{Binding CurrAssembly.TopOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
IsEnabled="{Binding IsChecked, ElementName=Top}"
|
||||||
|
Style="{DynamicResource CurrAssemblyTxBx}"/>
|
||||||
|
<TextBox Grid.Column="4" Grid.Row="4"
|
||||||
|
Text="{Binding CurrAssembly.BottomOverMaterial, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
IsEnabled="{Binding IsChecked, ElementName=Bottom}"
|
||||||
|
Style="{DynamicResource CurrAssemblyTxBx}"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
|
|
||||||
|
<!--Exterior-->
|
||||||
|
<GroupBox Grid.Row="1"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="2,0,2,0"
|
||||||
|
IsEnabled="{Binding CurrAssembly.JambExists}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
|
<GroupBox.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<CheckBox Grid.Row="0"
|
||||||
|
Grid.Column="5"
|
||||||
|
Name="Exterior"
|
||||||
|
IsChecked="{Binding CurrAssembly.Exterior}"
|
||||||
|
Style="{DynamicResource CurrAssemblyChBx}"/>
|
||||||
|
<TextBlock Text="{Binding ExteriorMsg}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</GroupBox.Header>
|
||||||
|
|
||||||
|
<!--Margin="0.4,2,29.6,3.2"-->
|
||||||
|
|
||||||
|
<Grid Margin="0,0,0,2" IsEnabled="{Binding IsChecked, ElementName=Exterior}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="0.7*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="0.7*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<!--Overlap Bottom-->
|
||||||
|
<TextBlock Grid.Row ="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding OverlapBottomMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row ="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding CurrAssembly.OverlapBottom, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
<!--Thickness Bottom-->
|
||||||
|
<TextBlock Grid.Row ="0"
|
||||||
|
Grid.Column="2"
|
||||||
|
Text="{Binding ThicknessBottomMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row ="0"
|
||||||
|
Grid.Column="3"
|
||||||
|
Text="{Binding CurrAssembly.ThicknessBottom, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
<!--Depth Bottom-->
|
||||||
|
<TextBlock Grid.Row ="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding DepthBottomMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row ="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding CurrAssembly.DepthBottom, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
<!--Delta Bottom-->
|
||||||
|
<TextBlock Grid.Row ="1"
|
||||||
|
Grid.Column="2"
|
||||||
|
Text="{Binding DeltaBottomMsg}"
|
||||||
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
|
<TextBox Grid.Row ="1"
|
||||||
|
Grid.Column="3"
|
||||||
|
Text="{Binding CurrAssembly.DeltaBottom, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource AssemblyParamsTxBx}"/>
|
||||||
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
|
|
||||||
|
<!--TotalDimension-->
|
||||||
|
<GroupBox Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="6"
|
||||||
|
Margin="2,0,2,0"
|
||||||
|
IsEnabled="{Binding CurrAssembly.JambExists}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
|
<GroupBox.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<CheckBox Grid.Row="0"
|
||||||
|
Grid.Column="5"
|
||||||
Name="TotalDimension"
|
Name="TotalDimension"
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
|
||||||
IsChecked="{Binding CurrAssembly.Dimension}"
|
IsChecked="{Binding CurrAssembly.Dimension}"
|
||||||
Margin="0,0,2,0" VerticalAlignment="Stretch" Height="Auto"/>
|
Style="{DynamicResource CurrAssemblyChBx}"/>
|
||||||
<TextBlock Text="{Binding DimensionMsg}" Width="Auto"/>
|
<TextBlock Text="{Binding DimensionMsg}"
|
||||||
</StackPanel>
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
</GroupBox.Header>
|
</StackPanel>
|
||||||
|
</GroupBox.Header>
|
||||||
|
|
||||||
<Grid Margin="0,0,0,2" IsEnabled="{Binding IsChecked, ElementName=TotalDimension}">
|
<Grid Margin="0,0,0,2" IsEnabled="{Binding IsChecked, ElementName=TotalDimension}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!--Total Height-->
|
<!--Total Height-->
|
||||||
<TextBlock Text="{Binding TotalHeightMsg}"
|
<TextBlock Grid.Column="1"
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
Text="{Binding TotalHeightMsg}"
|
||||||
Margin="2,0,0,2"
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
Grid.Column="1"/>
|
<TextBox Grid.Column="2"
|
||||||
<TextBox Grid.Column="2"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Text="{Binding CurrAssembly.AssemblyHeight, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding CurrAssembly.AssemblyHeight, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Margin="0.4,2,39.6,3.2" VerticalAlignment="Stretch" Height="Auto"/>
|
Style="{DynamicResource DimensionTxBx}"/>
|
||||||
<!--Total Width-->
|
<!--Total Width-->
|
||||||
<TextBlock Text="{Binding TotalWidthMsg}"
|
<TextBlock Grid.Column="3"
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
Text="{Binding TotalWidthMsg}"
|
||||||
Margin="2,0,0,2"
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
Grid.Column="3"/>
|
<TextBox Grid.Column="4"
|
||||||
<TextBox Grid.Column="4"
|
Text="{Binding CurrAssembly.AssemblyWidth, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{DynamicResource DimensionTxBx}"/>
|
||||||
Text="{Binding CurrAssembly.AssemblyWidth, UpdateSourceTrigger=PropertyChanged}"
|
</Grid>
|
||||||
Margin="0.4,2,39.6,3.2" VerticalAlignment="Stretch" Height="Auto"/>
|
</GroupBox>
|
||||||
</Grid>
|
|
||||||
</GroupBox>
|
|
||||||
|
|
||||||
<!--DeltaThickness-->
|
<!--DeltaThickness-->
|
||||||
<TextBlock Text="{Binding DeltaTMsg}"
|
<TextBlock Grid.Row="1"
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
Grid.Column="2"
|
||||||
Margin="4,4,2,2"
|
Grid.ColumnSpan="2"
|
||||||
Padding="4"
|
Text="{Binding DeltaTMsg}"
|
||||||
Grid.ColumnSpan="2"
|
Style="{DynamicResource DeltaThicknessTxBl}"/>
|
||||||
Grid.Column="2" Grid.Row="1"/>
|
<TextBox Grid.Row="1"
|
||||||
<TextBox Grid.Column="3" Grid.Row="1"
|
Grid.Column="3"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Text="{Binding CurrAssembly.DeltaThickness, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Text="{Binding CurrAssembly.DeltaThickness, UpdateSourceTrigger=PropertyChanged}"
|
IsEnabled="{Binding CurrAssembly.JambExists}"
|
||||||
Padding="3"
|
Style="{DynamicResource DeltaThicknessTxBx}"/>
|
||||||
Margin="4" VerticalAlignment="Stretch"
|
<Button Grid.Row="1"
|
||||||
IsEnabled="{Binding CurrAssembly.JambExists}"/>
|
Grid.Column="4"
|
||||||
<Button Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="1"
|
Grid.ColumnSpan="2"
|
||||||
Padding="3"
|
Content="Order"
|
||||||
Margin="12,25.4,12,23.6" VerticalAlignment="Stretch"
|
Command="{Binding OrderCmd}"
|
||||||
Content="Order" Command="{Binding OrderCmd}"/>
|
Style="{DynamicResource DeltaThicknessBtn}"/>
|
||||||
|
|
||||||
<!--Parts-->
|
<!--Parts-->
|
||||||
<GroupBox Margin="2,0,2,0" Grid.Column="0" Grid.ColumnSpan="6" Grid.Row="3">
|
<GroupBox Grid.Row="3"
|
||||||
<GroupBox.Header >
|
Grid.Column="0"
|
||||||
<TextBlock Text="{Binding JambsAndDoorsMsg}" Style="{StaticResource DoorParamsTxBl}" Height="Auto" />
|
Grid.ColumnSpan="6"
|
||||||
</GroupBox.Header>
|
Margin="2,0,2,0"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
|
<GroupBox.Header >
|
||||||
|
<TextBlock Text="{Binding JambsAndDoorsMsg}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
|
</GroupBox.Header>
|
||||||
|
|
||||||
<Grid Margin="0,0,0,2" >
|
<!--<Grid Margin="0,0,0,2" >
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="0.5*"/>
|
<ColumnDefinition Width="0.5*"/>
|
||||||
<ColumnDefinition Width="20"/>
|
<ColumnDefinition Width="20"/>
|
||||||
@@ -437,7 +457,9 @@
|
|||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
<RowDefinition Height="3*"/>
|
<RowDefinition Height="3*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<!--Jamb Left-->
|
-->
|
||||||
|
<!--Jamb Left-->
|
||||||
|
<!--
|
||||||
<Button x:Name="TopLeftJamb"
|
<Button x:Name="TopLeftJamb"
|
||||||
Command="{Binding DataContext.JambBtnCommand,
|
Command="{Binding DataContext.JambBtnCommand,
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
@@ -471,7 +493,9 @@
|
|||||||
IsChecked="{Binding CurrAssembly.JambLIsChecked}"
|
IsChecked="{Binding CurrAssembly.JambLIsChecked}"
|
||||||
Grid.Column="1" Grid.ColumnSpan="2"
|
Grid.Column="1" Grid.ColumnSpan="2"
|
||||||
Grid.Row="4"/>
|
Grid.Row="4"/>
|
||||||
<!--Jamb Top-->
|
-->
|
||||||
|
<!--Jamb Top-->
|
||||||
|
<!--
|
||||||
<Button x:Name="TopJamb"
|
<Button x:Name="TopJamb"
|
||||||
Command="{Binding DataContext.JambBtnCommand,
|
Command="{Binding DataContext.JambBtnCommand,
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
@@ -485,7 +509,9 @@
|
|||||||
IsChecked="{Binding CurrAssembly.JambTIsChecked}"
|
IsChecked="{Binding CurrAssembly.JambTIsChecked}"
|
||||||
Grid.Column="5"
|
Grid.Column="5"
|
||||||
Grid.Row="1"/>
|
Grid.Row="1"/>
|
||||||
<!--Jamb Right-->
|
-->
|
||||||
|
<!--Jamb Right-->
|
||||||
|
<!--
|
||||||
<Button x:Name="LeftRightJamb"
|
<Button x:Name="LeftRightJamb"
|
||||||
Command="{Binding DataContext.JambBtnCommand,
|
Command="{Binding DataContext.JambBtnCommand,
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
@@ -519,7 +545,9 @@
|
|||||||
Grid.Column="8" Grid.ColumnSpan="2"
|
Grid.Column="8" Grid.ColumnSpan="2"
|
||||||
Grid.Row="4" />
|
Grid.Row="4" />
|
||||||
|
|
||||||
<!--Jamb Bottom-->
|
-->
|
||||||
|
<!--Jamb Bottom-->
|
||||||
|
<!--
|
||||||
<Button x:Name="BottomJamb"
|
<Button x:Name="BottomJamb"
|
||||||
Visibility="{Binding IsChecked,
|
Visibility="{Binding IsChecked,
|
||||||
ElementName=Exterior,
|
ElementName=Exterior,
|
||||||
@@ -539,17 +567,21 @@
|
|||||||
IsChecked="{Binding CurrAssembly.JambBIsChecked}"
|
IsChecked="{Binding CurrAssembly.JambBIsChecked}"
|
||||||
Grid.Column="5"
|
Grid.Column="5"
|
||||||
Grid.Row="6"/>
|
Grid.Row="6"/>
|
||||||
<!--Door-->
|
-->
|
||||||
|
<!--Door-->
|
||||||
|
<!--
|
||||||
<ItemsControl ItemsSource="{Binding CurrAssembly.ListPartDoorOfDoor}"
|
<ItemsControl ItemsSource="{Binding CurrAssembly.ListPartDoorOfDoor}"
|
||||||
Grid.Column="5"
|
Grid.Column="5"
|
||||||
Grid.Row="4"
|
Grid.Row="4"
|
||||||
Focusable="True">
|
Focusable="True">
|
||||||
|
|
||||||
<!--<ItemsControl.ItemContainerStyle>
|
-->
|
||||||
|
<!--<ItemsControl.ItemContainerStyle>
|
||||||
<Style TargetType="{x:Type ContentPresenter}">
|
<Style TargetType="{x:Type ContentPresenter}">
|
||||||
<Setter Property="Visibility" Value="{Binding IsVisible}"/>
|
<Setter Property="Visibility" Value="{Binding IsVisible}"/>
|
||||||
</Style>
|
</Style>
|
||||||
</ItemsControl.ItemContainerStyle>-->
|
</ItemsControl.ItemContainerStyle>-->
|
||||||
|
<!--
|
||||||
|
|
||||||
<ItemsControl.ItemsPanel >
|
<ItemsControl.ItemsPanel >
|
||||||
<ItemsPanelTemplate >
|
<ItemsPanelTemplate >
|
||||||
@@ -578,8 +610,10 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</Grid>
|
</Grid>-->
|
||||||
</GroupBox>
|
|
||||||
|
|
||||||
</Grid>
|
<EgtDOORCreator:JambsAndDoorsSceneHostV Margin="0,0,2,0"/>
|
||||||
|
</GroupBox>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -5,30 +5,30 @@
|
|||||||
Private DoorButton_MouseOver_Background As SolidColorBrush = DirectCast(New BrushConverter().ConvertFrom("#3CD07606"), SolidColorBrush)
|
Private DoorButton_MouseOver_Background As SolidColorBrush = DirectCast(New BrushConverter().ConvertFrom("#3CD07606"), SolidColorBrush)
|
||||||
Private DoorButton_MouseOver_Border As SolidColorBrush = DirectCast(New BrushConverter().ConvertFrom("#FF3C7FB1"), SolidColorBrush)
|
Private DoorButton_MouseOver_Border As SolidColorBrush = DirectCast(New BrushConverter().ConvertFrom("#FF3C7FB1"), SolidColorBrush)
|
||||||
|
|
||||||
Private Sub RightJamb_MouseEnter(sender As Object, e As Input.MouseEventArgs) Handles LeftRightJamb.MouseEnter, TopRightJamb.MouseEnter, RightRightJamb.MouseEnter
|
'Private Sub RightJamb_MouseEnter(sender As Object, e As Input.MouseEventArgs) Handles LeftRightJamb.MouseEnter, TopRightJamb.MouseEnter, RightRightJamb.MouseEnter
|
||||||
TopRightJamb.BorderBrush = DoorButton_MouseOver_Border
|
' TopRightJamb.BorderBrush = DoorButton_MouseOver_Border
|
||||||
LeftRightJamb.BorderBrush = DoorButton_MouseOver_Border
|
' LeftRightJamb.BorderBrush = DoorButton_MouseOver_Border
|
||||||
RightRightJamb.BorderBrush = DoorButton_MouseOver_Border
|
' RightRightJamb.BorderBrush = DoorButton_MouseOver_Border
|
||||||
End Sub
|
'End Sub
|
||||||
|
|
||||||
Private Sub RightJamb_MouseLeave(sender As Object, e As Input.MouseEventArgs) Handles LeftRightJamb.MouseLeave, TopRightJamb.MouseLeave, RightRightJamb.MouseLeave
|
'Private Sub RightJamb_MouseLeave(sender As Object, e As Input.MouseEventArgs) Handles LeftRightJamb.MouseLeave, TopRightJamb.MouseLeave, RightRightJamb.MouseLeave
|
||||||
TopRightJamb.BorderBrush = DoorButton_Static_Border
|
' TopRightJamb.BorderBrush = DoorButton_Static_Border
|
||||||
LeftRightJamb.BorderBrush = DoorButton_Static_Border
|
' LeftRightJamb.BorderBrush = DoorButton_Static_Border
|
||||||
RightRightJamb.BorderBrush = DoorButton_Static_Border
|
' RightRightJamb.BorderBrush = DoorButton_Static_Border
|
||||||
End Sub
|
'End Sub
|
||||||
|
|
||||||
Private Sub LeftJamb_MouseEnter(sender As Object, e As Input.MouseEventArgs) Handles LeftLeftJamb.MouseEnter, TopLeftJamb.MouseEnter, RightLeftJamb.MouseEnter
|
'Private Sub LeftJamb_MouseEnter(sender As Object, e As Input.MouseEventArgs) Handles LeftLeftJamb.MouseEnter, TopLeftJamb.MouseEnter, RightLeftJamb.MouseEnter
|
||||||
If LeftJambChk.IsChecked Then
|
' If LeftJambChk.IsChecked Then
|
||||||
TopLeftJamb.BorderBrush = DoorButton_MouseOver_Border
|
' TopLeftJamb.BorderBrush = DoorButton_MouseOver_Border
|
||||||
LeftLeftJamb.BorderBrush = DoorButton_MouseOver_Border
|
' LeftLeftJamb.BorderBrush = DoorButton_MouseOver_Border
|
||||||
RightLeftJamb.BorderBrush = DoorButton_MouseOver_Border
|
' RightLeftJamb.BorderBrush = DoorButton_MouseOver_Border
|
||||||
End If
|
' End If
|
||||||
End Sub
|
'End Sub
|
||||||
|
|
||||||
Private Sub LeftJamb_MouseLeave(sender As Object, e As Input.MouseEventArgs) Handles LeftLeftJamb.MouseLeave, TopLeftJamb.MouseLeave, RightLeftJamb.MouseLeave
|
'Private Sub LeftJamb_MouseLeave(sender As Object, e As Input.MouseEventArgs) Handles LeftLeftJamb.MouseLeave, TopLeftJamb.MouseLeave, RightLeftJamb.MouseLeave
|
||||||
TopLeftJamb.BorderBrush = DoorButton_Static_Border
|
' TopLeftJamb.BorderBrush = DoorButton_Static_Border
|
||||||
LeftLeftJamb.BorderBrush = DoorButton_Static_Border
|
' LeftLeftJamb.BorderBrush = DoorButton_Static_Border
|
||||||
RightLeftJamb.BorderBrush = DoorButton_Static_Border
|
' RightLeftJamb.BorderBrush = DoorButton_Static_Border
|
||||||
End Sub
|
'End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.IO
|
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
|
|
||||||
Public Class AssemblyPageVM
|
Public Class AssemblyPageVM
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' copia del riferimento all'assemblato corrente
|
' copia del riferimento all'assemblato corrente
|
||||||
Public ReadOnly Property CurrAssembly As Assembly
|
Public ReadOnly Property CurrAssembly As Assembly
|
||||||
Get
|
Get
|
||||||
@@ -17,25 +17,9 @@ Public Class AssemblyPageVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
' Definizione comandi
|
|
||||||
Private m_CmdJambBtn As ICommand
|
|
||||||
Private m_EnterRefreshCmd As ICommand
|
|
||||||
Private m_CmdOrderBtn As ICommand
|
|
||||||
|
|
||||||
' all'avvio del programma definisco come pagina impostata quella dell'Assemblato (altrimenti dovrei definire "FR_", "FL_"..)
|
' all'avvio del programma definisco come pagina impostata quella dell'Assemblato (altrimenti dovrei definire "FR_", "FL_"..)
|
||||||
Public Property SlectedPart As String = "AssemblyPage"
|
Public Property SlectedPart As String = "AssemblyPage"
|
||||||
|
|
||||||
' Costruttore
|
|
||||||
Sub New()
|
|
||||||
Map.SetRefJambPageVM(Me)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Sub PrepareEvent()
|
|
||||||
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
|
||||||
AddHandler Map.refInstrumentPanelVM.EnableCurrentPage, AddressOf Me.SetStatusPage
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#Region "Messages"
|
#Region "Messages"
|
||||||
|
|
||||||
Public ReadOnly Property JambPageMsg As String
|
Public ReadOnly Property JambPageMsg As String
|
||||||
@@ -231,7 +215,75 @@ Public Class AssemblyPageVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region ' Messages
|
||||||
|
|
||||||
|
' Definizione comandi
|
||||||
|
Private m_CmdJambBtn As ICommand
|
||||||
|
Private m_EnterRefreshCmd As ICommand
|
||||||
|
Private m_CmdOrderBtn As ICommand
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
Map.SetRefJambPageVM(Me)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Sub PrepareEvent()
|
||||||
|
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
||||||
|
AddHandler Map.refInstrumentPanelVM.EnableCurrentPage, AddressOf Me.SetStatusPage
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
' ricevuto il nome dell'oggetto di tipo Part restituisce il PartDoor che lo contiene
|
||||||
|
Public Function ReserchPartDoor(TypePart As String) As PartDoor
|
||||||
|
Dim PD As PartDoor = Nothing
|
||||||
|
If IsNothing(CurrAssembly) OrElse IsNothing(CurrAssembly.ListPartDoor) Then
|
||||||
|
Return PD
|
||||||
|
End If
|
||||||
|
For IndexPartDoor As Integer = 0 To CurrAssembly.ListPartDoor.Count - 1
|
||||||
|
If CurrAssembly.ListPartDoor(IndexPartDoor).Door.TypePart.Contains(TypePart) Then
|
||||||
|
PD = CurrAssembly.ListPartDoor(IndexPartDoor)
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Return PD
|
||||||
|
End Function
|
||||||
|
|
||||||
|
' carica a video l'ogetto di cui è passato il nome (TypePart)
|
||||||
|
Private Function LoadSelectedPartDoor(TypePart As String, CompoPanelVisibility As Visibility, PartPageIsReadOnly As Boolean) As Boolean
|
||||||
|
Dim Local_PD As PartDoor = ReserchPartDoor(TypePart)
|
||||||
|
If IsNothing(Local_PD) Then Return False
|
||||||
|
DdfFile.WriteDDFPart(Local_PD.Door, IniFile.m_sTempDir & "\" & TEMP_FILE, True, False)
|
||||||
|
ExecDoors(Map.refSceneManagerVM.ProjectScene, IniFile.m_sTempDir & "\" & TEMP_FILE, False)
|
||||||
|
Map.refPartPageVM.CurrPart = Local_PD.Door
|
||||||
|
Map.refCompoPanelVM.IsVisible = CompoPanelVisibility
|
||||||
|
Map.refPartPageVM.NotifyPropertyChanged(NameOf(Map.refPartPageVM.VisibilityTopShape))
|
||||||
|
Map.refPartPageVM.IsRaedOnly = PartPageIsReadOnly
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Sub SetStatusPage()
|
||||||
|
NotifyPropertyChanged(NameOf(EnablePageAssembly))
|
||||||
|
End Sub
|
||||||
|
Public ReadOnly Property EnablePageAssembly As Boolean
|
||||||
|
Get
|
||||||
|
Map.refProjectManagerVM.NotifyPropertyChanged(NameOf(Map.refProjectManagerVM.EnableProjectManager))
|
||||||
|
Map.refAssemblyManagerVM.NotifyPropertyChanged(NameOf(Map.refAssemblyManagerVM.EnableAssebmlyManager))
|
||||||
|
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
||||||
|
Return Map.refInstrumentPanelVM.EnablePage
|
||||||
|
Else
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
|
|
||||||
@@ -269,12 +321,12 @@ Public Class AssemblyPageVM
|
|||||||
' aggiorno elenco quotature
|
' aggiorno elenco quotature
|
||||||
Map.refDimensioningPanelVM.LoadHardwareDimList()
|
Map.refDimensioningPanelVM.LoadHardwareDimList()
|
||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
Map.refProjectManagerVM.NotifyPropertyChanged("VisibilityCreateAssembly")
|
Map.refProjectManagerVM.NotifyPropertyChanged(NameOf(Map.refProjectManagerVM.VisibilityCreateAssembly))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' PartBtn
|
#End Region ' PartBtn
|
||||||
|
|
||||||
#Region "REFRESH"
|
#Region "RefreshCmd"
|
||||||
|
|
||||||
Public ReadOnly Property RefreshCmd As ICommand
|
Public ReadOnly Property RefreshCmd As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -289,9 +341,9 @@ Public Class AssemblyPageVM
|
|||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Refresh
|
#End Region ' RefreshCmd
|
||||||
|
|
||||||
#Region "ORDER"
|
#Region "OrderCmd"
|
||||||
|
|
||||||
Public ReadOnly Property OrderCmd As ICommand
|
Public ReadOnly Property OrderCmd As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -307,56 +359,11 @@ Public Class AssemblyPageVM
|
|||||||
OrderWnd.ShowDialog()
|
OrderWnd.ShowDialog()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Order
|
#End Region ' OrderCmd
|
||||||
|
|
||||||
#End Region ' Comand
|
#End Region ' Command
|
||||||
|
|
||||||
#Region "METHODS"
|
#Region "EVENTS"
|
||||||
|
|
||||||
' ricevuto il nome dell'oggetto di tipo Part restituisce il PartDoor che lo contiene
|
|
||||||
Public Function ReserchPartDoor(TypePart As String) As PartDoor
|
|
||||||
Dim PD As PartDoor = Nothing
|
|
||||||
If IsNothing(CurrAssembly) OrElse IsNothing(CurrAssembly.ListPartDoor) Then
|
|
||||||
Return PD
|
|
||||||
End If
|
|
||||||
For IndexPartDoor As Integer = 0 To CurrAssembly.ListPartDoor.Count - 1
|
|
||||||
If CurrAssembly.ListPartDoor(IndexPartDoor).Door.TypePart.Contains(TypePart) Then
|
|
||||||
PD = CurrAssembly.ListPartDoor(IndexPartDoor)
|
|
||||||
Exit For
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
Return PD
|
|
||||||
End Function
|
|
||||||
|
|
||||||
' carica a video l'ogetto di cui è passato il nome (TypePart)
|
|
||||||
Private Function LoadSelectedPartDoor(TypePart As String, CompoPanelVisibility As Visibility, PartPageIsReadOnly As Boolean) As Boolean
|
|
||||||
Dim Local_PD As PartDoor = ReserchPartDoor(TypePart)
|
|
||||||
If IsNothing(Local_PD) Then Return False
|
|
||||||
DdfFile.WriteDDFPart(Local_PD.Door, IniFile.m_sTempDir & "\" & TEMP_FILE, True, False)
|
|
||||||
ExecDoors(Map.refSceneManagerVM.ProjectScene, IniFile.m_sTempDir & "\" & TEMP_FILE, False)
|
|
||||||
Map.refPartPageVM.CurrPart = Local_PD.Door
|
|
||||||
Map.refCompoPanelVM.IsVisible = CompoPanelVisibility
|
|
||||||
Map.refPartPageVM.NotifyPropertyChanged("VisibilityTopShape")
|
|
||||||
Map.refPartPageVM.IsRaedOnly = PartPageIsReadOnly
|
|
||||||
Return True
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Sub SetStatusPage()
|
|
||||||
NotifyPropertyChanged("EnablePageAssembly")
|
|
||||||
End Sub
|
|
||||||
Public ReadOnly Property EnablePageAssembly As Boolean
|
|
||||||
Get
|
|
||||||
Map.refProjectManagerVM.NotifyPropertyChanged("EnableProjectManager")
|
|
||||||
Map.refAssemblyManagerVM.NotifyPropertyChanged("EnableAssebmlyManager")
|
|
||||||
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
|
||||||
Return Map.refInstrumentPanelVM.EnablePage
|
|
||||||
Else
|
|
||||||
Return True
|
|
||||||
End If
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region ' Methods
|
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
@@ -364,5 +371,7 @@ Public Class AssemblyPageVM
|
|||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports EgtWPFLib5
|
||||||
Imports System.IO
|
|
||||||
Imports EgtUILib
|
|
||||||
Imports EgtWPFLib5
|
|
||||||
|
|
||||||
Public Class Association
|
Public Class Association
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Private m_Side As Integer
|
Private m_Side As Integer
|
||||||
Public Property Side As Integer
|
Public Property Side As Integer
|
||||||
Get
|
Get
|
||||||
@@ -26,9 +25,15 @@ Public Class Association
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(ref_PartDoor As PartDoor, ref_nSide As Integer)
|
Sub New(ref_PartDoor As PartDoor, ref_nSide As Integer)
|
||||||
m_refPartDoor = ref_PartDoor
|
m_refPartDoor = ref_PartDoor
|
||||||
Side = ref_nSide
|
Side = ref_nSide
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<WindowsFormsHost x:Class="JambsAndDoorsSceneHostV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtUILib="clr-namespace:EgtUILib;assembly=EgtUILib">
|
||||||
|
|
||||||
|
<EgtUILib:Scene x:Name="JambsAndDoorsScene"/>
|
||||||
|
|
||||||
|
</WindowsFormsHost>
|
||||||
@@ -0,0 +1,237 @@
|
|||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtUILib.EgtInterface
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
Imports System.IO
|
||||||
|
|
||||||
|
Public Class JambsAndDoorsSceneHostV
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private m_nCtx As Integer = -1
|
||||||
|
|
||||||
|
Private m_nIdMarked As Integer = GDB_ID.NULL
|
||||||
|
Private m_bCtrl As Boolean = False
|
||||||
|
Private m_bShift As Boolean = False
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
' La chiamata è richiesta dalla finestra di progettazione.
|
||||||
|
InitializeComponent()
|
||||||
|
' Creo riferimento a questa classe in CompoWindowMap
|
||||||
|
Map.SetRefJambsAndDoorsSceneHostV(Me)
|
||||||
|
' Inizializzazione Scena
|
||||||
|
PreInitializeScene()
|
||||||
|
JambsAndDoorsScene.Init()
|
||||||
|
PostInitializeScene()
|
||||||
|
' Imposto stato gestione mouse diretto della scena a nessuno
|
||||||
|
JambsAndDoorsScene.SetStatusNull()
|
||||||
|
EgtSetCurrentContext(JambsAndDoorsScene.GetCtx())
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Private Sub Load() Handles Me.Loaded
|
||||||
|
EgtNewFile()
|
||||||
|
LoadAssemblyProject()
|
||||||
|
PreInitializeScene()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub PreInitializeScene()
|
||||||
|
' imposto colore di default
|
||||||
|
Dim DefColor As New Color3d(0, 0, 0)
|
||||||
|
GetMainPrivateProfileColor(S_GEOMDB, K_DEFAULTCOLOR, DefColor)
|
||||||
|
JambsAndDoorsScene.SetDefaultMaterial(DefColor)
|
||||||
|
' imposto colori sfondo
|
||||||
|
Dim BackTopColor As Color3d
|
||||||
|
If Not IsNothing(Map.refOptionsVM) AndAlso Map.refOptionsVM.SelectedTheme.Name = "Default" Then
|
||||||
|
BackTopColor = New Color3d(192, 192, 192)
|
||||||
|
Else
|
||||||
|
BackTopColor = New Color3d(0, 123, 167)
|
||||||
|
End If
|
||||||
|
'GetMainPrivateProfileColor(S_SCENE, K_BACKTOP, BackTopColor)
|
||||||
|
Dim BackBotColor As New Color3d(BackTopColor)
|
||||||
|
GetMainPrivateProfileColor(S_SCENE, K_BACKBOTTOM, BackBotColor)
|
||||||
|
JambsAndDoorsScene.SetViewBackground(BackTopColor, BackBotColor)
|
||||||
|
' imposto colore di evidenziazione
|
||||||
|
Dim MarkColor As New Color3d(255, 255, 0)
|
||||||
|
GetMainPrivateProfileColor(S_SCENE, K_MARK, MarkColor)
|
||||||
|
JambsAndDoorsScene.SetMarkMaterial(MarkColor)
|
||||||
|
' imposto colore per superfici selezionate
|
||||||
|
Dim SelSurfColor As New Color3d(255, 255, 192)
|
||||||
|
GetMainPrivateProfileColor(S_SCENE, K_SELSURF, SelSurfColor)
|
||||||
|
JambsAndDoorsScene.SetSelSurfMaterial(SelSurfColor)
|
||||||
|
' imposto tipo e colore del rettangolo di zoom
|
||||||
|
Dim bOutline As Boolean = True
|
||||||
|
Dim ZwColor As New Color3d(0, 0, 0)
|
||||||
|
GetMainPrivateProfileZoomWin(S_SCENE, K_ZOOMWIN, bOutline, ZwColor)
|
||||||
|
JambsAndDoorsScene.SetZoomWinAttribs(bOutline, ZwColor)
|
||||||
|
' imposto colore della linea di distanza
|
||||||
|
Dim DstLnColor As New Color3d(255, 0, 0)
|
||||||
|
GetMainPrivateProfileColor(S_SCENE, K_DISTLINE, DstLnColor)
|
||||||
|
JambsAndDoorsScene.SetDistLineMaterial(DstLnColor)
|
||||||
|
' imposto parametri OpenGL
|
||||||
|
Dim nDriver As Integer = GetMainPrivateProfileInt(S_OPENGL, K_DRIVER, 3)
|
||||||
|
Dim b2Buff As Boolean = (GetMainPrivateProfileInt(S_OPENGL, K_DOUBLEBUFFER, 1) <> 0)
|
||||||
|
Dim nColorBits As Integer = GetMainPrivateProfileInt(S_OPENGL, K_COLORBITS, 32)
|
||||||
|
Dim nDepthBits As Integer = GetMainPrivateProfileInt(S_OPENGL, K_DEPTHBITS, 32)
|
||||||
|
JambsAndDoorsScene.SetViewAttributes(nDriver, b2Buff, nColorBits, nDepthBits)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub PostInitializeScene()
|
||||||
|
' imposto tipo coordinate
|
||||||
|
JambsAndDoorsScene.SetGridCursorPos(True)
|
||||||
|
' modo di visualizzazione
|
||||||
|
Dim nShowMode As Integer = SM.SHADING 'GetMainPrivateProfileInt(S_SCENE, K_SHOWMODE, SM.HIDDENLINE)
|
||||||
|
EgtSetShowMode(DirectCast(nShowMode, SM))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Private Sub OnMouseDownScene() Handles HardwareHelpScene.OnMouseDownScene
|
||||||
|
' EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
|
'End Sub
|
||||||
|
|
||||||
|
Private Sub LoadAssemblyProject()
|
||||||
|
EgtSetCurrentContext(JambsAndDoorsScene.GetCtx())
|
||||||
|
Dim FileName As String = IniFile.m_CompoDir & "\" & "Assembly_1_Door" & NHE_EXTENSION
|
||||||
|
If String.IsNullOrWhiteSpace(FileName) OrElse Not File.Exists(FileName) Then
|
||||||
|
EgtNewFile()
|
||||||
|
Else
|
||||||
|
EgtOpenFile(FileName)
|
||||||
|
EgtSetView(VT.ISO_SW, False)
|
||||||
|
EgtZoom(ZM.ALL, True)
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Reimposto il contesto principale
|
||||||
|
EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub CleanHelpProject()
|
||||||
|
EgtSetCurrentContext(JambsAndDoorsScene.GetCtx())
|
||||||
|
EgtNewFile()
|
||||||
|
EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub ResetAllMarks()
|
||||||
|
Dim nId As Integer = EgtGetFirstPart()
|
||||||
|
While nId <> GDB_ID.NULL
|
||||||
|
' Recupero l'identificativo del pezzo cui appartiene
|
||||||
|
EgtResetMark(nId)
|
||||||
|
nId = EgtGetNext(nId)
|
||||||
|
End While
|
||||||
|
EgtDraw()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub SetMarkCurrId(nPartId As Integer)
|
||||||
|
If m_nIdMarked <> nPartId Then
|
||||||
|
EgtResetMark(m_nIdMarked)
|
||||||
|
End If
|
||||||
|
EgtSetMark(nPartId)
|
||||||
|
m_nIdMarked = nPartId
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Evidenzio il profilo dell'anta
|
||||||
|
''' </summary>
|
||||||
|
Private Sub MyMouseOver(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles JambsAndDoorsScene.OnMouseMoveScene
|
||||||
|
' Verifico se selezionato indicativo di pezzo
|
||||||
|
EgtSetCurrentContext(JambsAndDoorsScene.GetCtx())
|
||||||
|
EgtSetObjFilterForSelWin(True, True, True, True, True)
|
||||||
|
Dim nSel As Integer
|
||||||
|
EgtSelect(e.Location, Scene.DIM_SEL, Scene.DIM_SEL, nSel)
|
||||||
|
Dim nId As Integer = EgtGetFirstObjInSelWin()
|
||||||
|
While nId <> GDB_ID.NULL
|
||||||
|
' Recupero l'identificativo del pezzo cui appartiene
|
||||||
|
Dim nPartId As Integer = EgtGetParent(EgtGetParent(nId))
|
||||||
|
Dim sNamePartId As String = String.Empty
|
||||||
|
EgtGetName(nPartId, sNamePartId)
|
||||||
|
Select Case sNamePartId
|
||||||
|
Case "DOOR", "FRAME_LEFT", "FRAME_RIGHT", "FRAME_TOP"
|
||||||
|
SetMarkCurrId(nPartId)
|
||||||
|
Exit While
|
||||||
|
End Select
|
||||||
|
nId = EgtGetNextObjInSelWin()
|
||||||
|
End While
|
||||||
|
If nId = GDB_ID.NULL Then
|
||||||
|
m_nIdMarked = GDB_ID.NULL
|
||||||
|
ResetAllMarks()
|
||||||
|
End If
|
||||||
|
EgtDraw()
|
||||||
|
' Reimposto contesto principale progetto
|
||||||
|
EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Recupero l'anta selezionata
|
||||||
|
''' </summary>
|
||||||
|
Private Sub MyMouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles JambsAndDoorsScene.OnMouseDownScene
|
||||||
|
EgtSetCurrentContext(JambsAndDoorsScene.GetCtx())
|
||||||
|
If m_bCtrl Then Return
|
||||||
|
EgtSetObjFilterForSelWin(True, True, True, True, True)
|
||||||
|
Dim nSel As Integer
|
||||||
|
EgtSelect(e.Location, Scene.DIM_SEL, Scene.DIM_SEL, nSel)
|
||||||
|
Dim nId As Integer = EgtGetFirstObjInSelWin()
|
||||||
|
While nId <> GDB_ID.NULL
|
||||||
|
' Recupero l'identificativo del pezzo cui appartiene
|
||||||
|
Dim nPartId As Integer = EgtGetParent(EgtGetParent(nId))
|
||||||
|
Dim sNamePartId As String = String.Empty
|
||||||
|
EgtGetName(nPartId, sNamePartId)
|
||||||
|
Select Case sNamePartId
|
||||||
|
Case "DOOR"
|
||||||
|
Map.refAssemblyPageVM.JambBtn("DO_1")
|
||||||
|
Case "FRAME_LEFT"
|
||||||
|
If m_bShift Then
|
||||||
|
Map.refAssemblyPageVM.CurrAssembly.JambLIsChecked = Not Map.refAssemblyPageVM.CurrAssembly.JambLIsChecked
|
||||||
|
Exit While
|
||||||
|
End If
|
||||||
|
Map.refAssemblyPageVM.JambBtn(ConstGen.PART_FRAME_LEFT)
|
||||||
|
Case "FRAME_RIGHT"
|
||||||
|
Map.refAssemblyPageVM.JambBtn(ConstGen.PART_FRAME_RIGHT)
|
||||||
|
Case "FRAME_TOP"
|
||||||
|
Map.refAssemblyPageVM.JambBtn(ConstGen.PART_FRAME_TOP)
|
||||||
|
Case Else
|
||||||
|
Exit While
|
||||||
|
End Select
|
||||||
|
nId = EgtGetNextObjInSelWin()
|
||||||
|
End While
|
||||||
|
' Reimposto contesto principale progetto
|
||||||
|
EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub OnSceneKeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles JambsAndDoorsScene.KeyDown
|
||||||
|
If e.KeyValue = System.Windows.Forms.Keys.Control OrElse e.KeyValue = System.Windows.Forms.Keys.ControlKey Then m_bCtrl = True
|
||||||
|
If e.KeyValue = Forms.Keys.Shift OrElse e.KeyValue = Forms.Keys.ShiftKey Then m_bShift = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub OnSceneKeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles JambsAndDoorsScene.KeyUp
|
||||||
|
m_bCtrl = False
|
||||||
|
m_bShift = False
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub SelectCurrDoor(Param As CompoParam)
|
||||||
|
EgtSetCurrentContext(JambsAndDoorsScene.GetCtx())
|
||||||
|
Dim FirstPart As Integer = EgtGetFirstPart()
|
||||||
|
If FirstPart = GDB_ID.NULL Then
|
||||||
|
EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
For Each Compo In Map.refHardwarePageVM.CurrHardware.GroupChapters
|
||||||
|
For Each CurrParam In Compo.CompoParamList
|
||||||
|
If Not IsNothing(CurrParam.LayerName) Then
|
||||||
|
EgtSetStatus(EgtGetFirstNameInGroup(FirstPart, CurrParam.LayerName), If(CurrParam.LayerName = Param.LayerName, GDB_ST.ON_, GDB_ST.OFF))
|
||||||
|
End If
|
||||||
|
'EgtSetStatus(EgtGetFirstNameInGroup(FirstPart, CurrParam.DDFName), If(CurrParam.DDFName = Param.DDFName, GDB_ST.ON_, GDB_ST.OFF))
|
||||||
|
Next
|
||||||
|
Next
|
||||||
|
EgtDraw()
|
||||||
|
EgtSetCurrentContext(Map.refSceneManagerVM.ProjectScene.GetCtx())
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
Imports System.ComponentModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.IO
|
|
||||||
Imports EgtUILib
|
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Public Class PartDoor
|
Public Class PartDoor
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_IsTemplate As Boolean = False
|
Private m_IsTemplate As Boolean = False
|
||||||
Public Property IsTemplate As Boolean
|
Public Property IsTemplate As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -53,7 +52,7 @@ Public Class PartDoor
|
|||||||
Public Sub SetIsChecked(bIsChecked As Boolean)
|
Public Sub SetIsChecked(bIsChecked As Boolean)
|
||||||
m_IsChecked = bIsChecked
|
m_IsChecked = bIsChecked
|
||||||
m_Door.IsActive = bIsChecked
|
m_Door.IsActive = bIsChecked
|
||||||
NotifyPropertyChanged("IsChecked")
|
NotifyPropertyChanged(NameOf(IsChecked))
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -73,4 +72,6 @@ Public Class PartDoor
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<UserControl x:Class="AssemblyManagerV"
|
<UserControl x:Class="AssemblyManagerV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:Interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
xmlns:Interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
||||||
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
||||||
Height="30">
|
Height="30">
|
||||||
|
|
||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<EgtDOORCreator:PathConverter x:Key="PathConverter"/>
|
<EgtDOORCreator:PathConverter x:Key="PathConverter"/>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<!--Visibility="{Binding CurrProject.Name, Converter={StaticResource ProjectVisibilityConverter}, UpdateSourceTrigger=PropertyChanged}"-->
|
<!--Visibility="{Binding CurrProject.Name, Converter={StaticResource ProjectVisibilityConverter}, UpdateSourceTrigger=PropertyChanged}"-->
|
||||||
<Grid IsEnabled="{Binding EnableAssebmlyManager}"
|
<Grid IsEnabled="{Binding EnableAssebmlyManager}"
|
||||||
Visibility="{Binding VisibilityDoorList}">
|
Visibility="{Binding VisibilityDoorList}">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="18*"/>
|
<RowDefinition Height="18*"/>
|
||||||
<RowDefinition Height="18*"/>
|
<RowDefinition Height="18*"/>
|
||||||
@@ -24,9 +24,9 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<ListBox PreviewMouseWheel="ListBox_PreviewMouseWheel"
|
<ListBox PreviewMouseWheel="ListBox_PreviewMouseWheel"
|
||||||
ItemsSource="{Binding CurrProject.AssemblyList}"
|
ItemsSource="{Binding CurrProject.AssemblyList}"
|
||||||
SelectedItem="{Binding CurrProject.SelAssemblyName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
SelectedItem="{Binding CurrProject.SelAssemblyName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource DoorListBox}" Name="AssemblyList" Grid.ColumnSpan="2" Margin="0,0,28,0.4" Grid.RowSpan="2">
|
Style="{DynamicResource DoorListBox}" Name="AssemblyList" Grid.ColumnSpan="2" Margin="0,0,28,0.4" Grid.RowSpan="2">
|
||||||
<!--SelectionChanged="AssemblyList_SelectedItem"-->
|
<!--SelectionChanged="AssemblyList_SelectedItem"-->
|
||||||
<Interactivity:Interaction.Behaviors>
|
<Interactivity:Interaction.Behaviors>
|
||||||
<EgtDOORCreator:ScrollIntoViewForListBox/>
|
<EgtDOORCreator:ScrollIntoViewForListBox/>
|
||||||
@@ -51,10 +51,13 @@
|
|||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<RadioButton GroupName="DoorGroup"
|
<RadioButton GroupName="DoorGroup"
|
||||||
Height="28" MaxWidth="150" Margin="0,0,2,0" Padding="5,0,5,0"
|
Height="28"
|
||||||
Style="{StaticResource {x:Type ToggleButton}}"
|
MaxWidth="150"
|
||||||
IsChecked="{Binding Path=IsSelected, RelativeSource={
|
Margin="0,0,2,0"
|
||||||
RelativeSource AncestorType={x:Type ListBoxItem}}}">
|
Padding="5,0,5,0"
|
||||||
|
Style="{StaticResource {x:Type ToggleButton}}"
|
||||||
|
IsChecked="{Binding Path=IsSelected, RelativeSource={
|
||||||
|
RelativeSource AncestorType={x:Type ListBoxItem}}}">
|
||||||
<RadioButton.Content>
|
<RadioButton.Content>
|
||||||
<TextBlock Text="{Binding GraphicName}"/>
|
<TextBlock Text="{Binding GraphicName}"/>
|
||||||
</RadioButton.Content>
|
</RadioButton.Content>
|
||||||
@@ -64,18 +67,26 @@
|
|||||||
</ListBox>
|
</ListBox>
|
||||||
|
|
||||||
<Button Grid.Column="1"
|
<Button Grid.Column="1"
|
||||||
Height="20" Width="20" VerticalAlignment="Center"
|
Grid.RowSpan="2"
|
||||||
Margin="3,5,5,5.4" Command="{Binding AddAssembly_Command}"
|
Height="20"
|
||||||
ToolTip="{Binding AddNewDoorToolTip}"
|
Width="20"
|
||||||
Focusable="False" Grid.RowSpan="2">
|
VerticalAlignment="Center"
|
||||||
|
Margin="3,5,5,5.4"
|
||||||
|
Focusable="False"
|
||||||
|
Command="{Binding AddAssembly_Command}"
|
||||||
|
ToolTip="{Binding AddNewDoorToolTip}">
|
||||||
<Image Source="/Resources/TopCommandBar/Add.png" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/Add.png" Stretch="Uniform"/>
|
||||||
<!--<Image Source="/Resources/TopCommandBar/NewFile.png" Stretch="Uniform"/>-->
|
<!--<Image Source="/Resources/TopCommandBar/NewFile.png" Stretch="Uniform"/>-->
|
||||||
</Button>
|
</Button>
|
||||||
<Button Grid.Column="2"
|
<Button Grid.Column="2"
|
||||||
Height="20" Width="20" VerticalAlignment="Center"
|
Grid.RowSpan="2"
|
||||||
Margin="0,5,4.8,5.4" Command="{Binding RemoveAssembly_Command}"
|
Height="20"
|
||||||
ToolTip="{Binding RemoveDoorToolTip}"
|
Width="20"
|
||||||
Focusable="False" Grid.RowSpan="2">
|
VerticalAlignment="Center"
|
||||||
|
Margin="0,5,4.8,5.4"
|
||||||
|
Focusable="False"
|
||||||
|
Command="{Binding RemoveAssembly_Command}"
|
||||||
|
ToolTip="{Binding RemoveDoorToolTip}">
|
||||||
<Image Source="/Resources/TopCommandBar/Remove.png" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/Remove.png" Stretch="Uniform"/>
|
||||||
<!--<Image Source="/Resources/TopCommandBar/Delete.png" Stretch="Uniform"/>-->
|
<!--<Image Source="/Resources/TopCommandBar/Delete.png" Stretch="Uniform"/>-->
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Public Class AssemblyManagerV
|
Public Class AssemblyManagerV
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Private Sub Door_MouseLeftButtonUp(sender As Object, e As MouseButtonEventArgs)
|
Private Sub Door_MouseLeftButtonUp(sender As Object, e As MouseButtonEventArgs)
|
||||||
Dim Item As ListBoxItem = DirectCast(sender, ListBoxItem)
|
Dim Item As ListBoxItem = DirectCast(sender, ListBoxItem)
|
||||||
If IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName) Then
|
If IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName) Then
|
||||||
@@ -44,4 +46,6 @@
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ Imports EgtWPFLib5
|
|||||||
Public Class AssemblyManagerVM
|
Public Class AssemblyManagerVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' creiamo un nuovo progetto: un nome e una lista di porte
|
' creiamo un nuovo progetto: un nome e una lista di porte
|
||||||
Private m_CurrProject As New Project
|
Private m_CurrProject As New Project
|
||||||
Public Property CurrProject As Project
|
Public Property CurrProject As Project
|
||||||
@@ -14,7 +16,7 @@ Public Class AssemblyManagerVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Project)
|
Set(value As Project)
|
||||||
m_CurrProject = value
|
m_CurrProject = value
|
||||||
NotifyPropertyChanged("CurrProject")
|
NotifyPropertyChanged(NameOf(CurrProject))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -25,7 +27,7 @@ Public Class AssemblyManagerVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Visibility)
|
Set(value As Visibility)
|
||||||
m_VisibilityDoorList = value
|
m_VisibilityDoorList = value
|
||||||
NotifyPropertyChanged("VisibilityDoorList")
|
NotifyPropertyChanged(NameOf(VisibilityDoorList))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -39,7 +41,7 @@ Public Class AssemblyManagerVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#Region "MESSAGES"
|
#Region "Messages"
|
||||||
|
|
||||||
Public ReadOnly Property AddNewDoorToolTip As String
|
Public ReadOnly Property AddNewDoorToolTip As String
|
||||||
Get
|
Get
|
||||||
@@ -53,16 +55,22 @@ Public Class AssemblyManagerVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region 'MESSAGES
|
#End Region 'Messages
|
||||||
|
|
||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdAddAssembly As ICommand
|
Private m_cmdAddAssembly As ICommand
|
||||||
Private m_cmdRemoveAssembly As ICommand
|
Private m_cmdRemoveAssembly As ICommand
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
Map.SetRefDoorManagerVM(Me)
|
Map.SetRefDoorManagerVM(Me)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
#Region "METHODS"
|
#Region "METHODS"
|
||||||
|
|
||||||
#Region "Apertura e salvataggio"
|
#Region "Apertura e salvataggio"
|
||||||
@@ -131,32 +139,65 @@ Public Class AssemblyManagerVM
|
|||||||
' 50540 = The current ddf is a part of a frame, do you want to save?
|
' 50540 = The current ddf is a part of a frame, do you want to save?
|
||||||
If MessageBox.Show(EgtMsg(50540), EgtMsg(50144), MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No) = MessageBoxResult.Yes Then
|
If MessageBox.Show(EgtMsg(50540), EgtMsg(50144), MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No) = MessageBoxResult.Yes Then
|
||||||
DdfFile.SaveErrorCompo = True
|
DdfFile.SaveErrorCompo = True
|
||||||
DdfFile.WriteDDFPart(SavedAssName.SelAssembly.ListPartDoor(0).Door, SavedAssName.Name, True, False)
|
Dim _IsDDF As Boolean = IsCurrentFileDDF(SavedAssName.Name)
|
||||||
|
DdfFile.WriteDDFPart(SavedAssName.SelAssembly.ListPartDoor(0).Door, SavedAssName.Name, _IsDDF, False)
|
||||||
DdfFile.SaveErrorCompo = False
|
DdfFile.SaveErrorCompo = False
|
||||||
Else
|
Else
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
DdfFile.SaveErrorCompo = True
|
DdfFile.SaveErrorCompo = True
|
||||||
DdfFile.WriteDDFPart(SavedAssName.SelAssembly.ListPartDoor(0).Door, SavedAssName.Name, True, False)
|
Dim _IsDDF As Boolean = IsCurrentFileDDF(SavedAssName.Name)
|
||||||
|
DdfFile.WriteDDFPart(SavedAssName.SelAssembly.ListPartDoor(0).Door, SavedAssName.Name, _IsDDF, False)
|
||||||
DdfFile.SaveErrorCompo = False
|
DdfFile.SaveErrorCompo = False
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
' se il ddf che sto leggendo è composto dal al massimo due parti significa che c'è un errore
|
' Se il ddf che sto leggendo è composto dal al massimo due parti significa che c'è un errore
|
||||||
If SavedAssName.SelAssembly.bOk = Assembly.ResultReadingAssembInfo.CorrectAssembInfo AndAlso
|
If SavedAssName.SelAssembly.bOk = Assembly.ResultReadingAssembInfo.CorrectAssembInfo AndAlso
|
||||||
SavedAssName.SelAssembly.ListPartDoor.Count < 3 Then
|
SavedAssName.SelAssembly.ListPartDoor.Count < 3 Then
|
||||||
' se sto salvando meno di tre componenti significa che mancano qualche pezzo per essere un assemblato
|
' Se sto salvando meno di tre componenti significa che mancano qualche pezzo per essere un assemblato
|
||||||
SavedAssName.SelAssembly.bOk = Assembly.ResultReadingAssembInfo.MissingAssembInfo
|
SavedAssName.SelAssembly.bOk = Assembly.ResultReadingAssembInfo.MissingAssembInfo
|
||||||
End If
|
End If
|
||||||
Dim ErrorMessage As String = SavedAssName.SelAssembly.ControlAssembly(True)
|
Dim ErrorMessage As String = SavedAssName.SelAssembly.ControlAssembly(True)
|
||||||
|
Dim m_MessageBoxResult As MessageBoxResult = MessageBoxResult.Cancel
|
||||||
If Not String.IsNullOrEmpty(ErrorMessage) Then
|
If Not String.IsNullOrEmpty(ErrorMessage) Then
|
||||||
If Not MessageBox.Show(ErrorMessage, EgtMsg(50144), MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No) = MessageBoxResult.Yes Then
|
' Richiedo di scegliere se salvare come porta singola oppure come assemblato (altrimenti annullo il salvataggio)
|
||||||
Return False
|
If GetMainPrivateProfileInt(S_GENERAL, K_SAVEASSINGLEDOOR, 0) <> 0 Then
|
||||||
|
' 50732=Save as Assembly (YES), Single door (NO).
|
||||||
|
m_MessageBoxResult = MessageBox.Show(EgtMsg(50732), EgtMsg(50144), MessageBoxButton.YesNoCancel, MessageBoxImage.Warning, MessageBoxResult.No)
|
||||||
|
If m_MessageBoxResult = MessageBoxResult.Cancel Then
|
||||||
|
' interrompo il salvataggio
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If m_MessageBoxResult = MessageBoxResult.Yes Then
|
||||||
|
' Procedo a sovrascrivere il file come ASSEMBALTO
|
||||||
|
DdfFile.SaveErrorCompo = True
|
||||||
|
DdfFile.WriteDDFAssembly(SavedAssName.SelAssembly, SavedAssName.Name, True)
|
||||||
|
DdfFile.SaveErrorCompo = False
|
||||||
|
ElseIf m_MessageBoxResult = MessageBoxResult.No Then
|
||||||
|
' Procedo a sovrascrivere il file come SINGLE DOOR
|
||||||
|
DdfFile.SaveErrorCompo = True
|
||||||
|
Dim _IsDDF As Boolean = IsCurrentFileDDF(SavedAssName.Name)
|
||||||
|
DdfFile.WriteDDFPart(SavedAssName.SelAssembly.ListPartDoor(0).Door, SavedAssName.Name, _IsDDF, False)
|
||||||
|
DdfFile.SaveErrorCompo = False
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
' Avviso che sto per salvare una porta singola come assemblato (altrimenti annullo il salvataggio)
|
||||||
|
If Not MessageBox.Show(ErrorMessage, EgtMsg(50144), MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No) = MessageBoxResult.Yes Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
' Procedo a sovrascrivere il file
|
||||||
|
DdfFile.SaveErrorCompo = True
|
||||||
|
DdfFile.WriteDDFAssembly(SavedAssName.SelAssembly, SavedAssName.Name, True)
|
||||||
|
DdfFile.SaveErrorCompo = False
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
' Non ci sono errori: procedo a sovrascrivere il file
|
||||||
|
DdfFile.SaveErrorCompo = True
|
||||||
|
DdfFile.WriteDDFAssembly(SavedAssName.SelAssembly, SavedAssName.Name, True)
|
||||||
|
DdfFile.SaveErrorCompo = False
|
||||||
End If
|
End If
|
||||||
DdfFile.SaveErrorCompo = True
|
|
||||||
DdfFile.WriteDDFAssembly(SavedAssName.SelAssembly, SavedAssName.Name, True)
|
|
||||||
DdfFile.SaveErrorCompo = False
|
|
||||||
End If
|
End If
|
||||||
' controllo che il salvataggio sia andato a buon fine
|
' controllo che il salvataggio sia andato a buon fine
|
||||||
|
|
||||||
@@ -164,7 +205,7 @@ Public Class AssemblyManagerVM
|
|||||||
SavedAssName.IsModified = False
|
SavedAssName.IsModified = False
|
||||||
' ogni progetto salvato è l'ultimo da aprire, anche se il programma è chiuso dall'HardwareManager
|
' ogni progetto salvato è l'ultimo da aprire, anche se il programma è chiuso dall'HardwareManager
|
||||||
WriteMainPrivateProfileString(S_LAUNCHERWINDOW, K_LASTPROJECT, Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.Name)
|
WriteMainPrivateProfileString(S_LAUNCHERWINDOW, K_LASTPROJECT, Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.Name)
|
||||||
SavedAssName.NotifyPropertyChanged("IsModify")
|
SavedAssName.NotifyPropertyChanged(NameOf(SavedAssName.IsModified))
|
||||||
Else
|
Else
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
@@ -1012,7 +1053,16 @@ Public Class AssemblyManagerVM
|
|||||||
If Assembly.Refreshing Then EgtZoom(ZM.ALL)
|
If Assembly.Refreshing Then EgtZoom(ZM.ALL)
|
||||||
m_CurrProject.SelAssemblyName.SelAssembly.MatchCompo()
|
m_CurrProject.SelAssemblyName.SelAssembly.MatchCompo()
|
||||||
m_CurrProject.SelAssemblyName.SelAssembly.UpDateAllOrigValue()
|
m_CurrProject.SelAssemblyName.SelAssembly.UpDateAllOrigValue()
|
||||||
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nAssemblyPage
|
' Se mancano le info per generare l'assemblato accedo direttamente alla prima porta
|
||||||
|
If m_CurrProject.SelAssemblyName.SelAssembly.bOk = Assembly.ResultReadingAssembInfo.MissingAssembInfo Then
|
||||||
|
If m_CurrProject.SelAssemblyName.SelAssembly.ListPartDoorOfDoor.Count > 0 Then
|
||||||
|
Map.refAssemblyPageVM.JambBtn(m_CurrProject.SelAssemblyName.SelAssembly.ListPartDoorOfDoor(0).Type)
|
||||||
|
Else
|
||||||
|
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nAssemblyPage
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nAssemblyPage
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
' ogni progetto salvato è l'ultimo da aprire, anche se il programma è chiuso dall'HardwareManager
|
' ogni progetto salvato è l'ultimo da aprire, anche se il programma è chiuso dall'HardwareManager
|
||||||
' controllo che esiste almeno un file aperto
|
' controllo che esiste almeno un file aperto
|
||||||
@@ -1364,7 +1414,7 @@ Public Class AssemblyManagerVM
|
|||||||
For Each ItemPartDoor In CurrAssembly.ListPartDoorOfDoor
|
For Each ItemPartDoor In CurrAssembly.ListPartDoorOfDoor
|
||||||
SetSwingOnDoor(CurrAssembly.DoorNumber, ItemPartDoor.Door, IndexSwing)
|
SetSwingOnDoor(CurrAssembly.DoorNumber, ItemPartDoor.Door, IndexSwing)
|
||||||
Next
|
Next
|
||||||
CurrAssembly.NotifyPropertyChanged("ListPartDoorOfDoor")
|
CurrAssembly.NotifyPropertyChanged(NameOf(CurrAssembly.ListPartDoorOfDoor))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' carica i valori di default (dell'option page) nella prima porta
|
' carica i valori di default (dell'option page) nella prima porta
|
||||||
@@ -1571,11 +1621,11 @@ Public Class AssemblyManagerVM
|
|||||||
|
|
||||||
#End Region ' Association
|
#End Region ' Association
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
|
|
||||||
#Region "AddDoor"
|
#Region "AddAssembly_Command"
|
||||||
|
|
||||||
Public ReadOnly Property AddAssembly_Command As ICommand
|
Public ReadOnly Property AddAssembly_Command As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -1752,9 +1802,9 @@ Public Class AssemblyManagerVM
|
|||||||
Return String.Empty
|
Return String.Empty
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region ' AddDoor
|
#End Region ' AddAssembly_Command
|
||||||
|
|
||||||
#Region "RemoveAssembly"
|
#Region "RemoveAssembly_Command"
|
||||||
|
|
||||||
Public ReadOnly Property RemoveAssembly_Command As ICommand
|
Public ReadOnly Property RemoveAssembly_Command As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -1776,7 +1826,7 @@ Public Class AssemblyManagerVM
|
|||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' RemoveAssembly
|
#End Region ' RemoveAssembly_Command
|
||||||
|
|
||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ Imports EgtWPFLib5
|
|||||||
Public Class AssemblyName
|
Public Class AssemblyName
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_Name As String
|
Private m_Name As String
|
||||||
Public Property Name As String
|
Public Property Name As String
|
||||||
Get
|
Get
|
||||||
@@ -54,7 +56,7 @@ Public Class AssemblyName
|
|||||||
' Map.refMainWindowVM.ProjectNameMsg = sTitle
|
' Map.refMainWindowVM.ProjectNameMsg = sTitle
|
||||||
'End If
|
'End If
|
||||||
MakeTitle()
|
MakeTitle()
|
||||||
NotifyPropertyChanged("GraphicName")
|
NotifyPropertyChanged(NameOf(GraphicName))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -75,10 +77,14 @@ Public Class AssemblyName
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Assembly)
|
Set(value As Assembly)
|
||||||
m_SelAssembly = value
|
m_SelAssembly = value
|
||||||
Map.refAssemblyPageVM.NotifyPropertyChanged("CurrAssembly")
|
Map.refAssemblyPageVM.NotifyPropertyChanged(NameOf(Map.refAssemblyPageVM.CurrAssembly))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Private Sub MakeTitle()
|
Private Sub MakeTitle()
|
||||||
If OptionModule.m_SingleDoor AndAlso Map.refMainWindowVM.SelectedPage <> MainWindowVM.ListPageEnum.nHardwarePage AndAlso
|
If OptionModule.m_SingleDoor AndAlso Map.refMainWindowVM.SelectedPage <> MainWindowVM.ListPageEnum.nHardwarePage AndAlso
|
||||||
Not IsNothing(Map.refMainWindowVM.ProjectNameMsg) Then
|
Not IsNothing(Map.refMainWindowVM.ProjectNameMsg) Then
|
||||||
@@ -92,4 +98,6 @@ Public Class AssemblyName
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -4,10 +4,16 @@ Imports System.Collections.Specialized
|
|||||||
Public Class ScrollIntoViewForListBox
|
Public Class ScrollIntoViewForListBox
|
||||||
Inherits Behavior(Of ListBox)
|
Inherits Behavior(Of ListBox)
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private ItemsSource As INotifyCollectionChanged
|
Private ItemsSource As INotifyCollectionChanged
|
||||||
|
|
||||||
Private ListControl As ListBox
|
Private ListControl As ListBox
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' When Beahvior is attached
|
''' When Beahvior is attached
|
||||||
''' </summary>
|
''' </summary>
|
||||||
@@ -17,7 +23,6 @@ Public Class ScrollIntoViewForListBox
|
|||||||
AddHandler Me.AssociatedObject.SelectionChanged, AddressOf AssociatedObject_SelectionChanged
|
AddHandler Me.AssociatedObject.SelectionChanged, AddressOf AssociatedObject_SelectionChanged
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub AssociatedObject_CollectionChanged(sender As Object, e As System.Collections.Specialized.NotifyCollectionChangedEventArgs)
|
Private Sub AssociatedObject_CollectionChanged(sender As Object, e As System.Collections.Specialized.NotifyCollectionChangedEventArgs)
|
||||||
If IsNothing(ItemsSource) Then
|
If IsNothing(ItemsSource) Then
|
||||||
Dim CurrItemsSource As IEnumerable = Me.AssociatedObject.ItemsSource
|
Dim CurrItemsSource As IEnumerable = Me.AssociatedObject.ItemsSource
|
||||||
@@ -74,15 +79,23 @@ Public Class ScrollIntoViewForListBox
|
|||||||
RemoveHandler ItemsSource.CollectionChanged, AddressOf AssociatedObject_CollectionChanged
|
RemoveHandler ItemsSource.CollectionChanged, AddressOf AssociatedObject_CollectionChanged
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class ScrollIntoViewForDataGrid
|
Public Class ScrollIntoViewForDataGrid
|
||||||
Inherits Behavior(Of DataGrid)
|
Inherits Behavior(Of DataGrid)
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private ItemsSource As INotifyCollectionChanged
|
Private ItemsSource As INotifyCollectionChanged
|
||||||
|
|
||||||
Private DataGridControl As DataGrid
|
Private DataGridControl As DataGrid
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' When Beahvior is attached
|
''' When Beahvior is attached
|
||||||
''' </summary>
|
''' </summary>
|
||||||
@@ -154,4 +167,6 @@ Public Class ScrollIntoViewForDataGrid
|
|||||||
RemoveHandler ItemsSource.CollectionChanged, AddressOf AssociatedObject_CollectionChanged
|
RemoveHandler ItemsSource.CollectionChanged, AddressOf AssociatedObject_CollectionChanged
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
|
Public Class Command
|
||||||
|
|
||||||
Public Class Command
|
|
||||||
Implements ICommand
|
Implements ICommand
|
||||||
|
|
||||||
#Region "Fields"
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private ReadOnly _execute As Action(Of Object)
|
Private ReadOnly _execute As Action(Of Object)
|
||||||
Private ReadOnly _canExecute As Predicate(Of Object)
|
Private ReadOnly _canExecute As Predicate(Of Object)
|
||||||
|
|
||||||
#End Region ' Fields
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
#Region "Constructors"
|
#Region "CONSTRUCTORS"
|
||||||
|
|
||||||
Public Sub New(ByVal execute As Action(Of Object))
|
Public Sub New(ByVal execute As Action(Of Object))
|
||||||
Me.New(execute, Nothing)
|
Me.New(execute, Nothing)
|
||||||
@@ -27,9 +25,9 @@ Public Class Command
|
|||||||
|
|
||||||
#End Region ' Constructors
|
#End Region ' Constructors
|
||||||
|
|
||||||
#Region "ICommand Members"
|
#Region "ICOMMAND MEMBERS"
|
||||||
|
|
||||||
<DebuggerStepThrough> _
|
<DebuggerStepThrough>
|
||||||
Public Function CanExecute(ByVal parameter As Object) As Boolean Implements ICommand.CanExecute
|
Public Function CanExecute(ByVal parameter As Object) As Boolean Implements ICommand.CanExecute
|
||||||
Return If(_canExecute Is Nothing, True, _canExecute(parameter))
|
Return If(_canExecute Is Nothing, True, _canExecute(parameter))
|
||||||
End Function
|
End Function
|
||||||
@@ -50,4 +48,5 @@ Public Class Command
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' ICommand Members
|
#End Region ' ICommand Members
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -3,6 +3,8 @@ Imports System.IO
|
|||||||
|
|
||||||
Module CompoMatch
|
Module CompoMatch
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' restituisce il nome dell'assegnazione eseguito nel file Matching.lua e resetta l'assegnazione
|
' restituisce il nome dell'assegnazione eseguito nel file Matching.lua e resetta l'assegnazione
|
||||||
Friend Function CalcCompoMatching(sCompoDir As String, DoorNumber As Integer, sTemplate As String, ByRef sFrameTemplate As String) As Boolean
|
Friend Function CalcCompoMatching(sCompoDir As String, DoorNumber As Integer, sTemplate As String, ByRef sFrameTemplate As String) As Boolean
|
||||||
' Path del lua da utilizzare
|
' Path del lua da utilizzare
|
||||||
@@ -206,7 +208,10 @@ Module CompoMatch
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "HARDWAREMANAGER"
|
#Region "HARDWAREMANAGER"
|
||||||
|
|
||||||
' carico il file Tabella.lua per la ricerca dei nomi delle geometrie
|
' carico il file Tabella.lua per la ricerca dei nomi delle geometrie
|
||||||
Friend Function LoadTableGeometry() As Boolean
|
Friend Function LoadTableGeometry() As Boolean
|
||||||
EgtLuaCreateGlobTable("HMD")
|
EgtLuaCreateGlobTable("HMD")
|
||||||
|
|||||||
@@ -1,58 +1,57 @@
|
|||||||
<UserControl x:Class="CompoPanelHardwareV"
|
<UserControl x:Class="CompoPanelHardwareV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator">
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator">
|
||||||
|
|
||||||
<UserControl.InputBindings>
|
<UserControl.InputBindings>
|
||||||
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
||||||
</UserControl.InputBindings>
|
</UserControl.InputBindings>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="16*"/>
|
<RowDefinition Height="16*"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<ItemsControl ItemsSource="{Binding CompoTypeList}" Focusable="True"
|
<ItemsControl ItemsSource="{Binding CompoTypeList}"
|
||||||
Visibility="{Binding IsVisible}">
|
Style="{DynamicResource CompoTypeListItemsControlStyle}">
|
||||||
|
|
||||||
<ItemsControl.InputBindings>
|
<ItemsControl.InputBindings>
|
||||||
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
||||||
</ItemsControl.InputBindings>
|
</ItemsControl.InputBindings>
|
||||||
|
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<UniformGrid Columns="1"/>
|
<UniformGrid Columns="1"/>
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
|
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<RadioButton GroupName="DoorGroup"
|
<RadioButton GroupName="DoorGroup"
|
||||||
Style="{StaticResource {x:Type ToggleButton}}"
|
CommandParameter="{Binding}"
|
||||||
CommandParameter="{Binding}"
|
Command="{Binding DataContext.CompoBtnCommand,
|
||||||
Command="{Binding DataContext.CompoBtnCommand,
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
IsChecked="{Binding IsSelectedBtn}"
|
||||||
IsChecked="{Binding IsSelectedBtn}">
|
Style="{DynamicResource GeneralToogleButton}">
|
||||||
<RadioButton.Content>
|
<RadioButton.Content>
|
||||||
<TextBlock Text="{Binding Name}"/>
|
<TextBlock Text="{Binding Name}"
|
||||||
</RadioButton.Content>
|
Style="{DynamicResource CompoHardwareTxBx}"/>
|
||||||
</RadioButton>
|
</RadioButton.Content>
|
||||||
</DataTemplate>
|
</RadioButton>
|
||||||
</ItemsControl.ItemTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
|
||||||
<Button Grid.Row="1"
|
<Button Grid.Row="1"
|
||||||
Name="GoToAssembly"
|
Name="GoToAssembly"
|
||||||
Command="{Binding DataContext.GoToAssemblyBtnCommand,
|
Command="{Binding DataContext.GoToAssemblyBtnCommand,
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding}"
|
CommandParameter="{Binding}"
|
||||||
Visibility="{Binding GoBackVisibility}"
|
Style="{DynamicResource GoToAssemblyBtn}">
|
||||||
MaxHeight="40"
|
<Image Source="/Resources/Refresh/BackArrow.png" Stretch="Uniform"/>
|
||||||
Focusable="False">
|
</Button>
|
||||||
<Image Source="/Resources/Refresh/BackArrow.png" Stretch="Uniform"/>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
<UserControl x:Class="CompoPanelV"
|
<UserControl x:Class="CompoPanelV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator">
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
||||||
|
Background="Transparent">
|
||||||
|
|
||||||
<UserControl.InputBindings>
|
<UserControl.InputBindings>
|
||||||
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
||||||
</UserControl.InputBindings>
|
</UserControl.InputBindings>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="16*"/>
|
<RowDefinition Height="16*"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
<ItemsControl ItemsSource="{Binding CompoTypeList}"
|
||||||
|
IsEnabled="{Binding EnableModify}"
|
||||||
<ItemsControl ItemsSource="{Binding CompoTypeList}" Focusable="True"
|
Style="{DynamicResource CompoTypeListItemsControlStyle}">
|
||||||
Visibility="{Binding IsVisible}" IsEnabled="{Binding EnableModify}">
|
|
||||||
|
|
||||||
<ItemsControl.InputBindings>
|
<ItemsControl.InputBindings>
|
||||||
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
<KeyBinding Key="Enter" Command="{Binding RefreshCmd}"/>
|
||||||
</ItemsControl.InputBindings>
|
</ItemsControl.InputBindings>
|
||||||
|
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<UniformGrid Columns="1"/>
|
<UniformGrid Columns="1"/>
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Button Name="Compo" Content="{Binding Name}"
|
<Button Name="Compo"
|
||||||
Command="{Binding DataContext.CompoBtnCommand,
|
Content="{Binding Name}"
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
Command="{Binding DataContext.CompoBtnCommand,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding}"
|
CommandParameter="{Binding}"
|
||||||
Focusable="False">
|
Focusable="False"
|
||||||
|
Style="{DynamicResource CompoBtn}">
|
||||||
|
|
||||||
<Button.ToolTip>
|
<Button.ToolTip>
|
||||||
<Image Source="{Binding ImageDoorHardware}"
|
<Image Source="{Binding ImageDoorHardware}"
|
||||||
MaxHeight="100"
|
MaxHeight="100"
|
||||||
MaxWidth="100"
|
MaxWidth="100"
|
||||||
Stretch="Uniform"/>
|
Stretch="Uniform"/>
|
||||||
</Button.ToolTip>
|
</Button.ToolTip>
|
||||||
|
|
||||||
</Button>
|
</Button>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
|
|
||||||
<Button Grid.Row="1"
|
<Button Grid.Row="1"
|
||||||
Name="GoToAssembly"
|
Name="GoToAssembly"
|
||||||
Command="{Binding DataContext.GoToAssemblyBtnCommand,
|
Command="{Binding DataContext.GoToAssemblyBtnCommand,
|
||||||
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding}"
|
CommandParameter="{Binding}"
|
||||||
Visibility="{Binding GoBackVisibility}"
|
Style="{DynamicResource GoToAssemblyBtn}">
|
||||||
MaxHeight="40"
|
|
||||||
Focusable="False">
|
|
||||||
<Image Source="/Resources/Refresh/BackArrow.png" Stretch="Uniform"/>
|
<Image Source="/Resources/Refresh/BackArrow.png" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ Imports System.IO
|
|||||||
Public Class CompoPanelVM
|
Public Class CompoPanelVM
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_ErroLoadCompo As String = String.Empty
|
Private m_ErroLoadCompo As String = String.Empty
|
||||||
Public ReadOnly Property ErrorLoadCompo As String
|
Public ReadOnly Property ErrorLoadCompo As String
|
||||||
Get
|
Get
|
||||||
@@ -36,7 +38,7 @@ Public Class CompoPanelVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Visibility)
|
Set(value As Visibility)
|
||||||
m_IsVisible = value
|
m_IsVisible = value
|
||||||
NotifyPropertyChanged("IsVisible")
|
NotifyPropertyChanged(NameOf(IsVisible))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -47,7 +49,7 @@ Public Class CompoPanelVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Visibility)
|
Set(value As Visibility)
|
||||||
m_GoBackVisibility = value
|
m_GoBackVisibility = value
|
||||||
NotifyPropertyChanged("GoBackVisibility")
|
NotifyPropertyChanged(NameOf(GoBackVisibility))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -63,6 +65,10 @@ Public Class CompoPanelVM
|
|||||||
' definizione comando
|
' definizione comando
|
||||||
Private m_EnterRefreshCmd As ICommand
|
Private m_EnterRefreshCmd As ICommand
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(Page As String)
|
Sub New(Page As String)
|
||||||
m_PageName = Page
|
m_PageName = Page
|
||||||
'Map.SetRefCompoPanelVM(Me)
|
'Map.SetRefCompoPanelVM(Me)
|
||||||
@@ -170,6 +176,8 @@ Public Class CompoPanelVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
|
|
||||||
#Region "CompoBtnCommand"
|
#Region "CompoBtnCommand"
|
||||||
@@ -257,12 +265,12 @@ Public Class CompoPanelVM
|
|||||||
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nDDFPage
|
Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nDDFPage
|
||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
End If
|
End If
|
||||||
Map.refProjectManagerVM.NotifyPropertyChanged("VisibilityCreateAssembly")
|
Map.refProjectManagerVM.NotifyPropertyChanged(NameOf(Map.refProjectManagerVM.VisibilityCreateAssembly))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' GoToAssemblyBtnCommand
|
#End Region ' GoToAssemblyBtnCommand
|
||||||
|
|
||||||
#Region "ENTERREFRESH"
|
#Region "RefreshCmd"
|
||||||
|
|
||||||
Public ReadOnly Property RefreshCmd As ICommand
|
Public ReadOnly Property RefreshCmd As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -277,21 +285,26 @@ Public Class CompoPanelVM
|
|||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' EnterRefresh
|
#End Region ' RefreshCmd
|
||||||
|
|
||||||
#End Region 'Commands
|
#End Region 'Commands
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|
||||||
Public Class VerifyCompo
|
Public Class VerifyCompo
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_sName As String
|
Private m_sName As String
|
||||||
Public ReadOnly Property sName As String
|
Public ReadOnly Property sName As String
|
||||||
Get
|
Get
|
||||||
@@ -310,9 +323,15 @@ Public Class VerifyCompo
|
|||||||
m_bExists = Exists
|
m_bExists = Exists
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(Name As String, Exists As Boolean)
|
Sub New(Name As String, Exists As Boolean)
|
||||||
m_sName = Name
|
m_sName = Name
|
||||||
m_bExists = Exists
|
m_bExists = Exists
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
Imports System.IO
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Public Class CompoType
|
Public Class CompoType
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' Folder Door
|
' Folder Door
|
||||||
Private m_FolderList As New ObservableCollection(Of CompoBrandDir)
|
Private m_FolderList As New ObservableCollection(Of CompoBrandDir)
|
||||||
Public Property FolderList As ObservableCollection(Of CompoBrandDir)
|
Public Property FolderList As ObservableCollection(Of CompoBrandDir)
|
||||||
@@ -45,7 +46,7 @@ Public Class CompoType
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_IsSelectedBtn = value
|
m_IsSelectedBtn = value
|
||||||
NotifyPropertyChanged("IsSelectedBtn")
|
NotifyPropertyChanged(NameOf(IsSelectedBtn))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -127,25 +128,13 @@ Public Class CompoType
|
|||||||
Return m_DDFMaterial
|
Return m_DDFMaterial
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub SetDDFMaterial(DDFMaterial As String)
|
Public Sub SetDDFMaterial(DDFMaterial As String)
|
||||||
m_DDFMaterial = DDFMaterial
|
m_DDFMaterial = DDFMaterial
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function LoadListTemplate() As Boolean
|
#End Region ' Fields & Properties
|
||||||
FolderList.Clear()
|
|
||||||
m_HardwareFolderList.Clear()
|
|
||||||
m_FrameFolderList.Clear()
|
|
||||||
m_FolderList.Clear()
|
|
||||||
GetDirectoryCompoModel(m_Path, m_FolderList, m_FrameFolderList, m_HardwareFolderList)
|
|
||||||
Return True
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Public Function DeepCopy() As CompoType
|
#Region "CONSTRUCTORS"
|
||||||
Dim other As CompoType = DirectCast(Me.MemberwiseClone, CompoType)
|
|
||||||
other.LoadListTemplate()
|
|
||||||
Return other
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Sub New(sName As String, sDDFName As String, sPath As String, sJambSide As String, sFolderName As String, Optional sDDFMaterial As String = "wood")
|
Sub New(sName As String, sDDFName As String, sPath As String, sJambSide As String, sFolderName As String, Optional sDDFMaterial As String = "wood")
|
||||||
m_Name = sName
|
m_Name = sName
|
||||||
@@ -168,4 +157,25 @@ Public Class CompoType
|
|||||||
LoadListTemplate()
|
LoadListTemplate()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructors
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Public Function LoadListTemplate() As Boolean
|
||||||
|
FolderList.Clear()
|
||||||
|
m_HardwareFolderList.Clear()
|
||||||
|
m_FrameFolderList.Clear()
|
||||||
|
m_FolderList.Clear()
|
||||||
|
GetDirectoryCompoModel(m_Path, m_FolderList, m_FrameFolderList, m_HardwareFolderList)
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function DeepCopy() As CompoType
|
||||||
|
Dim other As CompoType = DirectCast(Me.MemberwiseClone, CompoType)
|
||||||
|
other.LoadListTemplate()
|
||||||
|
Return other
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -21,41 +21,41 @@ Module ConstCompo
|
|||||||
Public Const S_MEASURES As String = "measures"
|
Public Const S_MEASURES As String = "measures"
|
||||||
Public Const S_CODE As String = "code"
|
Public Const S_CODE As String = "code"
|
||||||
Public Const S_ORDER As String = "order"
|
Public Const S_ORDER As String = "order"
|
||||||
Public Const K_CUSTOMER As String = "customer"
|
Public Const K_CUSTOMER As String = "customer"
|
||||||
Public Const K_ELEVATION As String = "elevation"
|
Public Const K_ELEVATION As String = "elevation"
|
||||||
Public Const K_PROJECT As String = "project"
|
Public Const K_PROJECT As String = "project"
|
||||||
Public Const K_ORDER As String = "Order"
|
Public Const K_ORDER As String = "Order"
|
||||||
Public Const K_PO As String = "PO"
|
Public Const K_PO As String = "PO"
|
||||||
Public Const K_LINE As String = "Line"
|
Public Const K_LINE As String = "Line"
|
||||||
Public Const S_DATE As String = "date"
|
Public Const S_DATE As String = "date"
|
||||||
Public Const S_PIECE As String = "piece"
|
Public Const S_PIECE As String = "piece"
|
||||||
Public Const S_POSITION As String = "position"
|
Public Const S_POSITION As String = "position"
|
||||||
Public Const K_X As String = "x"
|
Public Const K_X As String = "x"
|
||||||
Public Const K_Y As String = "y"
|
Public Const K_Y As String = "y"
|
||||||
Public Const K_Z As String = "z"
|
Public Const K_Z As String = "z"
|
||||||
Public Const S_SIZE As String = "size"
|
Public Const S_SIZE As String = "size"
|
||||||
Public Const K_WIDTH As String = "width"
|
Public Const K_WIDTH As String = "width"
|
||||||
Public Const K_HEIGHT As String = "height"
|
Public Const K_HEIGHT As String = "height"
|
||||||
Public Const K_THICKNESS As String = "thickness"
|
Public Const K_THICKNESS As String = "thickness"
|
||||||
Public Const S_ORIGHEIGHTDOOR As String = "origdoorheight"
|
Public Const S_ORIGHEIGHTDOOR As String = "origdoorheight"
|
||||||
Public Const S_OVERLAP_DDF As String = "overlap"
|
Public Const S_OVERLAP_DDF As String = "overlap"
|
||||||
Public Const S_WEIGHT As String = "pressure"
|
Public Const S_WEIGHT As String = "pressure"
|
||||||
Public Const S_SWING As String = "swing"
|
Public Const S_SWING As String = "swing"
|
||||||
Public Const S_SECURE As String = "secure"
|
Public Const S_SECURE As String = "secure"
|
||||||
Public Const S_MATERIAL As String = "material"
|
Public Const S_MATERIAL As String = "material"
|
||||||
Public Const S_PROPERTIES As String = "properties"
|
Public Const S_PROPERTIES As String = "properties"
|
||||||
Public Const S_PROFILES As String = "profiles"
|
Public Const S_PROFILES As String = "profiles"
|
||||||
Public Const K_LOCKEDGE As String = "lockedge"
|
Public Const K_LOCKEDGE As String = "lockedge"
|
||||||
Public Const K_HINGEEDGE As String = "hingeedge"
|
Public Const K_HINGEEDGE As String = "hingeedge"
|
||||||
Public Const K_TOP As String = "top"
|
Public Const K_TOP As String = "top"
|
||||||
Public Const K_BOTTOM As String = "bottom"
|
Public Const K_BOTTOM As String = "bottom"
|
||||||
Public Const K_TYPEEDGE As String = "type"
|
Public Const K_TYPEEDGE As String = "type"
|
||||||
Public Const K_MACHINING As String = "machining"
|
Public Const K_MACHINING As String = "machining"
|
||||||
Public Const K_OVERMATERIAL As String = "overmaterial"
|
Public Const K_OVERMATERIAL As String = "overmaterial"
|
||||||
Public Const K_IDCODECOMPONENT As String = "IdCodeComponent"
|
Public Const K_IDCODECOMPONENT As String = "IdCodeComponent"
|
||||||
Public Const K_OTHERDOOR As String = "other_door"
|
Public Const K_OTHERDOOR As String = "other_door"
|
||||||
Public Const K_RADIUS As String = "radius"
|
Public Const K_RADIUS As String = "radius"
|
||||||
Public Const K_ANGLE As String = "angle"
|
Public Const K_ANGLE As String = "angle"
|
||||||
Public Const K_POSX As String = "posx"
|
Public Const K_POSX As String = "posx"
|
||||||
Public Const K_OVERLAP_BOTTOM As String = "overlap bottom"
|
Public Const K_OVERLAP_BOTTOM As String = "overlap bottom"
|
||||||
Public Const K_THICKNESS_BOTTOM As String = "thickness bottom"
|
Public Const K_THICKNESS_BOTTOM As String = "thickness bottom"
|
||||||
@@ -74,12 +74,12 @@ Module ConstCompo
|
|||||||
Public Const K_MATERIAL As String = "Material"
|
Public Const K_MATERIAL As String = "Material"
|
||||||
Public Const K_CASCADED As String = "Cascaded"
|
Public Const K_CASCADED As String = "Cascaded"
|
||||||
Public Const K_FOLDER_NAME As String = "FolderName"
|
Public Const K_FOLDER_NAME As String = "FolderName"
|
||||||
' K_NAME come sopra indicato
|
' K_NAME come sopra indicato
|
||||||
Public Const K_COMPO As String = "Compo"
|
Public Const K_COMPO As String = "Compo"
|
||||||
Public Const S_NGECONFIG As String = "NgeConfig"
|
Public Const S_NGECONFIG As String = "NgeConfig"
|
||||||
Public Const K_DEFAULT As String = "Default"
|
Public Const K_DEFAULT As String = "Default"
|
||||||
Public Const S_POSITIONSIDE As String = "PositionSide"
|
Public Const S_POSITIONSIDE As String = "PositionSide"
|
||||||
Public Const K_SIDE As String = "Side"
|
Public Const K_SIDE As String = "Side"
|
||||||
Public Const S_GR_PARAM_DEFAULT = "Graphic parameters"
|
Public Const S_GR_PARAM_DEFAULT = "Graphic parameters"
|
||||||
Public Const S_GR_PARAM_HARDWARE = "Parameters"
|
Public Const S_GR_PARAM_HARDWARE = "Parameters"
|
||||||
Public Const K_PARAM As String = "Param"
|
Public Const K_PARAM As String = "Param"
|
||||||
@@ -131,7 +131,7 @@ Module ConstCompo
|
|||||||
Public Const INI_EXTENSION As String = ".ini"
|
Public Const INI_EXTENSION As String = ".ini"
|
||||||
Public Const TEMPL_EXTENSION As String = ".templ"
|
Public Const TEMPL_EXTENSION As String = ".templ"
|
||||||
Public Const FRAME_FOLDER As String = ".frame"
|
Public Const FRAME_FOLDER As String = ".frame"
|
||||||
Public Const LCK_EXTENSION as string = ".lck"
|
Public Const LCK_EXTENSION As String = ".lck"
|
||||||
Public Const FOLDERDIR As String = "Folder"
|
Public Const FOLDERDIR As String = "Folder"
|
||||||
|
|
||||||
' Nome file di matching tra componenti su ante e telaio
|
' Nome file di matching tra componenti su ante e telaio
|
||||||
@@ -154,5 +154,4 @@ Module ConstCompo
|
|||||||
Public Const INI_CHECKBOX As String = "CheckBox"
|
Public Const INI_CHECKBOX As String = "CheckBox"
|
||||||
Public Const INI_GHOST As String = "Ghost"
|
Public Const INI_GHOST As String = "Ghost"
|
||||||
|
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ Module ConstIni
|
|||||||
Public Const K_EGTCAMEXE As String = "EgtCam5Exe"
|
Public Const K_EGTCAMEXE As String = "EgtCam5Exe"
|
||||||
Public Const K_REFRESHTIME As String = "RefreshTime"
|
Public Const K_REFRESHTIME As String = "RefreshTime"
|
||||||
Public Const K_DDFVERSION As String = "DDFVersion"
|
Public Const K_DDFVERSION As String = "DDFVersion"
|
||||||
|
Public Const K_THEMA As String = "Thema"
|
||||||
|
Public Const K_SAVEASSINGLEDOOR As String = "SaveAsSingleDoor"
|
||||||
|
|
||||||
Public Const S_LANGUAGES As String = "Languages"
|
Public Const S_LANGUAGES As String = "Languages"
|
||||||
Public Const K_LANGUAGE As String = "Language"
|
Public Const K_LANGUAGE As String = "Language"
|
||||||
|
|||||||
@@ -0,0 +1,93 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports System.Resources
|
||||||
|
|
||||||
|
Public Class ThemesDataService
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private ReadOnly m_Themes As New ObservableCollection(Of ThemeM)()
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
ScanResources()
|
||||||
|
ScanDisk("Themes")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Restiusce il nome derivato dalla cartella
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="path"></param>
|
||||||
|
''' <param name="pathChar"></param>
|
||||||
|
''' <param name="fileEnding"></param>
|
||||||
|
''' <returns></returns>
|
||||||
|
Private Function GetNameFromPath(ByVal path As String, ByVal Optional pathChar As Char = "/"c, ByVal Optional fileEnding As String = "Theme.xaml") As String
|
||||||
|
Dim name As String = path.Substring(path.LastIndexOf(pathChar) + 1)
|
||||||
|
name = name.Substring(0, name.Length - fileEnding.Length)
|
||||||
|
name = Char.ToUpper(name(0)) & If(name.Length > 1, name.Substring(1), "")
|
||||||
|
Return name
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub ScanResources(ByVal Optional fileEnding As String = "Theme.xaml")
|
||||||
|
Dim assembly = System.Reflection.Assembly.GetExecutingAssembly()
|
||||||
|
Dim resourceNames = assembly.GetManifestResourceNames()
|
||||||
|
|
||||||
|
For Each resourceName In resourceNames
|
||||||
|
Dim [set] As New ResourceSet(assembly.GetManifestResourceStream(resourceName))
|
||||||
|
|
||||||
|
For Each item As DictionaryEntry In [set]
|
||||||
|
Dim fileName As String = item.Key.ToString()
|
||||||
|
|
||||||
|
If fileName.ToLower().EndsWith(fileEnding.ToLower()) Then
|
||||||
|
m_Themes.Add(New ThemeM() With {
|
||||||
|
.Name = GetNameFromPath(fileName),
|
||||||
|
.Path = "pack://application:,,,/WpfTheme;component/" & fileName
|
||||||
|
})
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Next
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ScanDisk(ByVal relativePath As String)
|
||||||
|
If Directory.Exists(AppDomain.CurrentDomain.BaseDirectory & relativePath) Then
|
||||||
|
Dim themeFiles = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory & relativePath, "*Theme.xaml", SearchOption.AllDirectories)
|
||||||
|
|
||||||
|
For Each fileName In themeFiles
|
||||||
|
m_Themes.Add(New ThemeM() With {
|
||||||
|
.Name = GetNameFromPath(fileName, "\"c),
|
||||||
|
.Path = fileName
|
||||||
|
})
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub SetTheme(ByVal theme As ThemeM)
|
||||||
|
If theme Is Nothing Then
|
||||||
|
EgtUILib.EgtOutLog("Error setting theme: Attempting to set theme to null.")
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
|
||||||
|
Try
|
||||||
|
Application.Current.Resources.MergedDictionaries(1).Source = New Uri(theme.Path, UriKind.RelativeOrAbsolute)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtUILib.EgtOutLog("Error setting theme: " & ex.Message)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
Public Class ThemeM
|
||||||
|
|
||||||
|
Public Property Name As String
|
||||||
|
Public Property Path As String
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports System.Text.RegularExpressions
|
|
||||||
|
|
||||||
Friend Module DdfFile
|
Friend Module DdfFile
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' lista ordinata delle componenti da stampare
|
' lista ordinata delle componenti da stampare
|
||||||
Friend CompoListOrder As New List(Of String)
|
Friend CompoListOrder As New List(Of String)
|
||||||
' se riesco a scrivere un DDF (o una parte dell'essamblato) diventa true
|
' se riesco a scrivere un DDF (o una parte dell'essamblato) diventa true
|
||||||
@@ -25,6 +26,8 @@ Friend Module DdfFile
|
|||||||
|
|
||||||
Private ParamInCompoIsCorrect As Boolean = True
|
Private ParamInCompoIsCorrect As Boolean = True
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "SCRITTURA DDF"
|
#Region "SCRITTURA DDF"
|
||||||
|
|
||||||
' Questa funzione dovrà sostituire quella precedente (Scritta sopra)
|
' Questa funzione dovrà sostituire quella precedente (Scritta sopra)
|
||||||
@@ -1641,6 +1644,7 @@ Friend Module DdfFile
|
|||||||
#End Region ' Scrittura DDF
|
#End Region ' Scrittura DDF
|
||||||
|
|
||||||
#Region "SCRITTURA ASSEMBLATO"
|
#Region "SCRITTURA ASSEMBLATO"
|
||||||
|
|
||||||
' serve per pulire il file temporaneo la prima volta che viene creato
|
' serve per pulire il file temporaneo la prima volta che viene creato
|
||||||
Friend Function WriteDDFAssembly(ByVal CurrAssembly As Assembly, sPath As String, bIsDDF As Boolean) As Boolean
|
Friend Function WriteDDFAssembly(ByVal CurrAssembly As Assembly, sPath As String, bIsDDF As Boolean) As Boolean
|
||||||
' verifico esistenza assemblato
|
' verifico esistenza assemblato
|
||||||
@@ -1846,6 +1850,6 @@ Friend Module DdfFile
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region
|
#End Region ' Scrittura Assemblato
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Public Class PartPageV
|
Public Class PartPageV
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Public Sub ItemsControl_SelectionChanged(sender As Object, e As SelectionChangedEventArgs)
|
Public Sub ItemsControl_SelectionChanged(sender As Object, e As SelectionChangedEventArgs)
|
||||||
Dim ListControl As ListBox = DirectCast(sender, ListBox)
|
Dim ListControl As ListBox = DirectCast(sender, ListBox)
|
||||||
If Not IsNothing(ListControl.SelectedItem) Then
|
If Not IsNothing(ListControl.SelectedItem) Then
|
||||||
@@ -27,8 +29,6 @@
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub UserControl_IsEnabledChanged(sender As Object, e As DependencyPropertyChangedEventArgs)
|
#End Region ' Methods
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ Imports EgtUILib
|
|||||||
Public Class PartPageVM
|
Public Class PartPageVM
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Friend bSetChange As Boolean = False
|
Friend bSetChange As Boolean = False
|
||||||
Private m_CurrPart As Part
|
Private m_CurrPart As Part
|
||||||
Public Property CurrPart As Part
|
Public Property CurrPart As Part
|
||||||
@@ -17,7 +19,7 @@ Public Class PartPageVM
|
|||||||
If Not IsNothing(m_CurrPart) Then
|
If Not IsNothing(m_CurrPart) Then
|
||||||
Map.refAssemblyPageVM.CurrAssembly.SetVarAssembly()
|
Map.refAssemblyPageVM.CurrAssembly.SetVarAssembly()
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("CurrPart")
|
NotifyPropertyChanged(NameOf(CurrPart))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -75,6 +77,8 @@ Public Class PartPageVM
|
|||||||
|
|
||||||
#Region "DISPOSITION SCREEN"
|
#Region "DISPOSITION SCREEN"
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Public ReadOnly Property WidthColumn1 As String
|
Public ReadOnly Property WidthColumn1 As String
|
||||||
Get
|
Get
|
||||||
If OptionModule.m_nDispostionScreen = 0 Or OptionModule.m_nDispostionScreen = 1 Then
|
If OptionModule.m_nDispostionScreen = 0 Or OptionModule.m_nDispostionScreen = 1 Then
|
||||||
@@ -115,38 +119,103 @@ Public Class PartPageVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
#End Region ' Disposition Screen
|
#End Region ' Disposition Screen
|
||||||
|
|
||||||
#Region "CONSTUCTOR"
|
Private m_IsResize As Boolean
|
||||||
|
Public Property IsResize As Boolean
|
||||||
Sub New()
|
Get
|
||||||
Map.SetRefDoorParametersVM(Me)
|
Return m_IsResize
|
||||||
If IsNothing(Map.refCompoPanelVM) Then Map.SetRefCompoPanelVM(New CompoPanelVM("PartPage"))
|
End Get
|
||||||
If IsNothing(m_CompoPanelPart) Then m_CompoPanelPart = New CompoPanelV
|
Set(value As Boolean)
|
||||||
m_CompoPanelPart.DataContext = Map.refCompoPanelVM
|
m_IsResize = value
|
||||||
m_IsReadOnly = OptionModule.ReadOnlyDDF
|
NotifyPropertyChanged(NameOf(IsResize))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Sub SetStatusPage()
|
||||||
|
NotifyPropertyChanged(NameOf(EnablePageDoor))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub PrepareEvent()
|
Public ReadOnly Property EnablePageDoor As Boolean
|
||||||
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
Get
|
||||||
AddHandler Map.refInstrumentPanelVM.EnableCurrentPage, AddressOf Me.SetStatusPage
|
Map.refProjectManagerVM.NotifyPropertyChanged(NameOf(Map.refProjectManagerVM.EnableProjectManager))
|
||||||
End If
|
Map.refAssemblyManagerVM.NotifyPropertyChanged(NameOf(Map.refAssemblyManagerVM.EnableAssebmlyManager))
|
||||||
End Sub
|
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
||||||
|
Return Map.refInstrumentPanelVM.EnablePage
|
||||||
|
Else
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region
|
Private m_IsReadOnly As Boolean
|
||||||
|
Public Property IsRaedOnly As Boolean
|
||||||
|
Get
|
||||||
|
Return m_IsReadOnly
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_IsReadOnly = value
|
||||||
|
NotifyPropertyChanged(NameOf(IsRaedOnly))
|
||||||
|
NotifyPropertyChanged(NameOf(DisableHeight))
|
||||||
|
NotifyPropertyChanged(NameOf(DisableWidth))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' vero se la porta è Inactive, Falso il contrario
|
||||||
|
Private m_IsInactive As Boolean = False
|
||||||
|
Public Property IsInactive As Boolean
|
||||||
|
Get
|
||||||
|
Return m_IsInactive
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_IsInactive = value
|
||||||
|
NotifyPropertyChanged(NameOf(IsInactive))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property DisableHeight As Boolean
|
||||||
|
Get
|
||||||
|
If Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) AndAlso Map.refPartPageVM.CurrPart.TypePart.Contains("DO_") Then
|
||||||
|
Return Map.refAssemblyPageVM.CurrAssembly.Dimension
|
||||||
|
Else
|
||||||
|
Return m_IsReadOnly
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property DisableWidth As Boolean
|
||||||
|
Get
|
||||||
|
If Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) AndAlso Map.refPartPageVM.CurrPart.TypePart.Contains("DO_") Then
|
||||||
|
Return Map.refAssemblyPageVM.CurrAssembly.Dimension
|
||||||
|
Else
|
||||||
|
Return m_IsReadOnly
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_Image As String
|
||||||
|
Public Property Image As String
|
||||||
|
Get
|
||||||
|
Return m_Image
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_Image = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
#Region "Messages"
|
#Region "Messages"
|
||||||
|
|
||||||
'General'
|
'General'
|
||||||
Public ReadOnly Property MachMsg As String
|
Public ReadOnly Property MachMsg As String
|
||||||
Get
|
Get
|
||||||
' 50711 = Mach.
|
' 50711 = Mach.
|
||||||
Return EgtMsg(50711)
|
Return EgtMsg(50711)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property ResizeMsg As String
|
Public ReadOnly Property ResizeMsg As String
|
||||||
Get
|
Get
|
||||||
'50311=Resize
|
'50311=Resize
|
||||||
Return EgtMsg(50311)
|
Return EgtMsg(50311)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
@@ -237,43 +306,43 @@ Public Class PartPageVM
|
|||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property RadiusMsg As String
|
Public ReadOnly Property RadiusMsg As String
|
||||||
Get
|
Get
|
||||||
' 50704 = Radius
|
' 50704 = Radius
|
||||||
Return EgtMsg(50704)
|
Return EgtMsg(50704)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property AngleMsg As String
|
Public ReadOnly Property AngleMsg As String
|
||||||
Get
|
Get
|
||||||
' 50705 = Angle
|
' 50705 = Angle
|
||||||
Return EgtMsg(50705)
|
Return EgtMsg(50705)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property PosxMsg As String
|
Public ReadOnly Property PosxMsg As String
|
||||||
Get
|
Get
|
||||||
' 50706 = Pos_x
|
' 50706 = Pos_x
|
||||||
Return EgtMsg(50706)
|
Return EgtMsg(50706)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property TopArcMsg As String
|
Public ReadOnly Property TopArcMsg As String
|
||||||
Get
|
Get
|
||||||
' 50707 = Top Arc
|
' 50707 = Top Arc
|
||||||
Return EgtMsg(50707)
|
Return EgtMsg(50707)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property TopAngleMsg As String
|
Public ReadOnly Property TopAngleMsg As String
|
||||||
Get
|
Get
|
||||||
' 50708 = Top Angle
|
' 50708 = Top Angle
|
||||||
Return EgtMsg(50708)
|
Return EgtMsg(50708)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property PropertyMsg As String
|
Public ReadOnly Property PropertyMsg As String
|
||||||
Get
|
Get
|
||||||
' 50709 = Properties
|
' 50709 = Properties
|
||||||
Return EgtMsg(50709)
|
Return EgtMsg(50709)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Public ReadOnly Property MaterialMsg As String
|
Public ReadOnly Property MaterialMsg As String
|
||||||
Get
|
Get
|
||||||
' 50710 = Material
|
' 50710 = Material
|
||||||
Return EgtMsg(50710)
|
Return EgtMsg(50710)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
@@ -313,96 +382,42 @@ Public Class PartPageVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region ' Messages
|
||||||
|
|
||||||
Private m_IsResize As Boolean
|
|
||||||
Public Property IsResize As Boolean
|
|
||||||
Get
|
|
||||||
Return m_IsResize
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_IsResize = value
|
|
||||||
NotifyPropertyChanged("IsResize")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Sub SetStatusPage()
|
|
||||||
NotifyPropertyChanged("EnablePageDoor")
|
|
||||||
End Sub
|
|
||||||
Public ReadOnly Property EnablePageDoor As Boolean
|
|
||||||
Get
|
|
||||||
Map.refProjectManagerVM.NotifyPropertyChanged("EnableProjectManager")
|
|
||||||
Map.refAssemblyManagerVM.NotifyPropertyChanged("EnableAssebmlyManager")
|
|
||||||
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
|
||||||
Return Map.refInstrumentPanelVM.EnablePage
|
|
||||||
Else
|
|
||||||
Return True
|
|
||||||
End If
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_IsReadOnly As Boolean
|
|
||||||
Public Property IsRaedOnly As Boolean
|
|
||||||
Get
|
|
||||||
Return m_IsReadOnly
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_IsReadOnly = value
|
|
||||||
NotifyPropertyChanged("IsRaedOnly")
|
|
||||||
NotifyPropertyChanged("DisableHeight")
|
|
||||||
NotifyPropertyChanged("DisableWidth")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
' vero se la porta è Inactive, Falso il contrario
|
|
||||||
Private m_IsInactive As Boolean = False
|
|
||||||
Public Property IsInactive As Boolean
|
|
||||||
Get
|
|
||||||
Return m_IsInactive
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_IsInactive = value
|
|
||||||
NotifyPropertyChanged("IsInactive")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public ReadOnly Property DisableHeight As Boolean
|
|
||||||
Get
|
|
||||||
If Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) AndAlso Map.refPartPageVM.CurrPart.TypePart.Contains("DO_") Then
|
|
||||||
Return Map.refAssemblyPageVM.CurrAssembly.Dimension
|
|
||||||
Else
|
|
||||||
Return m_IsReadOnly
|
|
||||||
End If
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public ReadOnly Property DisableWidth As Boolean
|
|
||||||
Get
|
|
||||||
If Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) AndAlso Map.refPartPageVM.CurrPart.TypePart.Contains("DO_") Then
|
|
||||||
Return Map.refAssemblyPageVM.CurrAssembly.Dimension
|
|
||||||
Else
|
|
||||||
Return m_IsReadOnly
|
|
||||||
End If
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_Image As String
|
|
||||||
Public Property Image As String
|
|
||||||
Get
|
|
||||||
Return m_Image
|
|
||||||
End Get
|
|
||||||
Set(value As String)
|
|
||||||
m_Image = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
' definizione comando
|
' definizione comando
|
||||||
Private m_EnterRefreshCmd As ICommand
|
Private m_EnterRefreshCmd As ICommand
|
||||||
Private m_F1GuideCmd As ICommand
|
Private m_F1GuideCmd As ICommand
|
||||||
Private m_cmdOrderBtn As ICommand
|
Private m_cmdOrderBtn As ICommand
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTUCTOR"
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
Map.SetRefDoorParametersVM(Me)
|
||||||
|
If IsNothing(Map.refCompoPanelVM) Then Map.SetRefCompoPanelVM(New CompoPanelVM("PartPage"))
|
||||||
|
If IsNothing(m_CompoPanelPart) Then m_CompoPanelPart = New CompoPanelV
|
||||||
|
m_CompoPanelPart.DataContext = Map.refCompoPanelVM
|
||||||
|
m_IsReadOnly = OptionModule.ReadOnlyDDF
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Sub PrepareEvent()
|
||||||
|
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
||||||
|
AddHandler Map.refInstrumentPanelVM.EnableCurrentPage, AddressOf Me.SetStatusPage
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "RefreshCmd"
|
||||||
|
|
||||||
Public ReadOnly Property RefreshCmd As ICommand
|
Public ReadOnly Property RefreshCmd As ICommand
|
||||||
Get
|
Get
|
||||||
If m_EnterRefreshCmd Is Nothing Then
|
If m_EnterRefreshCmd Is Nothing Then
|
||||||
@@ -416,6 +431,10 @@ Public Class PartPageVM
|
|||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' RefreshCmd
|
||||||
|
|
||||||
|
#Region "GuideCmd"
|
||||||
|
|
||||||
' Comando Guida
|
' Comando Guida
|
||||||
Public ReadOnly Property GuideCmd As ICommand
|
Public ReadOnly Property GuideCmd As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -434,6 +453,10 @@ Public Class PartPageVM
|
|||||||
Map.refProjectManagerVM.Guide()
|
Map.refProjectManagerVM.Guide()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' GuideCmd
|
||||||
|
|
||||||
|
#Region "OrderCmd"
|
||||||
|
|
||||||
Public ReadOnly Property OrderCmd As ICommand
|
Public ReadOnly Property OrderCmd As ICommand
|
||||||
Get
|
Get
|
||||||
If m_cmdOrderBtn Is Nothing Then
|
If m_cmdOrderBtn Is Nothing Then
|
||||||
@@ -443,14 +466,20 @@ Public Class PartPageVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' OrderCmd
|
||||||
|
|
||||||
#End Region ' Command
|
#End Region ' Command
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class DoorVisibilityConverter
|
Public Class DoorVisibilityConverter
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
'Imports EgtWPFLib5
|
Imports System.Collections.ObjectModel
|
||||||
'Imports EgtUILib
|
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.IO
|
|
||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
|
|
||||||
Public Class PropertyItem
|
Public Class PropertyItem
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_GraphicName As String
|
Private m_GraphicName As String
|
||||||
Public Property GraphicName As String
|
Public Property GraphicName As String
|
||||||
Get
|
Get
|
||||||
@@ -35,22 +34,32 @@ Public Class PropertyItem
|
|||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_IsChecked = value
|
m_IsChecked = value
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.IsModified = True
|
||||||
NotifyPropertyChanged("IsChecked")
|
NotifyPropertyChanged(NameOf(IsChecked))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sName As String, sGraphicName As String, bIsChecked As Boolean)
|
Sub New(sName As String, sGraphicName As String, bIsChecked As Boolean)
|
||||||
m_Name = sName
|
m_Name = sName
|
||||||
m_GraphicName = sGraphicName
|
m_GraphicName = sGraphicName
|
||||||
m_IsChecked = bIsChecked
|
m_IsChecked = bIsChecked
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|
||||||
@@ -58,6 +67,8 @@ Public Class MaterialType
|
|||||||
'Inherits VMBase
|
'Inherits VMBase
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' nome caricato dalla lista dei messaggi
|
' nome caricato dalla lista dei messaggi
|
||||||
Private m_Name As String
|
Private m_Name As String
|
||||||
Public Property Name As String
|
Public Property Name As String
|
||||||
@@ -91,17 +102,27 @@ Public Class MaterialType
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sName As String, sGraphicName As String)
|
Sub New(sName As String, sGraphicName As String)
|
||||||
m_NameDDF = sName
|
m_NameDDF = sName
|
||||||
m_Name = sGraphicName
|
m_Name = sGraphicName
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class TopShape
|
Public Class TopShape
|
||||||
|
|||||||
@@ -11,12 +11,13 @@
|
|||||||
'
|
'
|
||||||
'----------------------------------------------------------------------------
|
'----------------------------------------------------------------------------
|
||||||
|
|
||||||
Imports Microsoft.VisualBasic
|
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Public Module Doors
|
Public Module Doors
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Function ExecDoors(ByRef scene As Scene, sFilePath As String, Optional bDraw As Boolean = True) As Boolean
|
Function ExecDoors(ByRef scene As Scene, sFilePath As String, Optional bDraw As Boolean = True) As Boolean
|
||||||
' Cursore attesa
|
' Cursore attesa
|
||||||
scene.Cursor = System.Windows.Forms.Cursors.WaitCursor
|
scene.Cursor = System.Windows.Forms.Cursors.WaitCursor
|
||||||
@@ -68,4 +69,6 @@ Public Module Doors
|
|||||||
Return bOk
|
Return bOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -93,6 +93,7 @@
|
|||||||
<Reference Include="EgtWPFLib5">
|
<Reference Include="EgtWPFLib5">
|
||||||
<HintPath>..\..\EgtProg\Dll32\EgtWPFLib5.dll</HintPath>
|
<HintPath>..\..\EgtProg\Dll32\EgtWPFLib5.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="PresentationFramework.Aero" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Design" />
|
<Reference Include="System.Design" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
@@ -123,6 +124,9 @@
|
|||||||
<DependentUpon>AboutBoxV.xaml</DependentUpon>
|
<DependentUpon>AboutBoxV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="AssemblyManager\AssemblyName.vb" />
|
<Compile Include="AssemblyManager\AssemblyName.vb" />
|
||||||
|
<Compile Include="Assembly\JambsAndDoorsSceneHostV.xaml.vb">
|
||||||
|
<DependentUpon>JambsAndDoorsSceneHostV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Assembly\PartDoor.vb" />
|
<Compile Include="Assembly\PartDoor.vb" />
|
||||||
<Compile Include="Assembly\Association.vb" />
|
<Compile Include="Assembly\Association.vb" />
|
||||||
<Compile Include="AttachedBehavior\ScrollIntoView.vb" />
|
<Compile Include="AttachedBehavior\ScrollIntoView.vb" />
|
||||||
@@ -142,6 +146,7 @@
|
|||||||
<Compile Include="Converter\SplitConverter.vb" />
|
<Compile Include="Converter\SplitConverter.vb" />
|
||||||
<Compile Include="Converter\TemplateListConverter.vb" />
|
<Compile Include="Converter\TemplateListConverter.vb" />
|
||||||
<Compile Include="Converter\TrueToFalse.vb" />
|
<Compile Include="Converter\TrueToFalse.vb" />
|
||||||
|
<Compile Include="DataService\ThemesDataService.vb" />
|
||||||
<Compile Include="DdfFile.vb" />
|
<Compile Include="DdfFile.vb" />
|
||||||
<Compile Include="AssemblyManager\AssemblyManagerV.xaml.vb">
|
<Compile Include="AssemblyManager\AssemblyManagerV.xaml.vb">
|
||||||
<DependentUpon>AssemblyManagerV.xaml</DependentUpon>
|
<DependentUpon>AssemblyManagerV.xaml</DependentUpon>
|
||||||
@@ -270,6 +275,10 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="Assembly\JambsAndDoorsSceneHostV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="CompoPanel\CompoPanelHardwareV.xaml">
|
<Page Include="CompoPanel\CompoPanelHardwareV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@@ -278,10 +287,22 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="EgtDOORCreatorDarkDictionary.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="EgtDOORCreatorDefaultStyle.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="EgtDOORCreatorDictionary.xaml">
|
<Page Include="EgtDOORCreatorDictionary.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="EgtDOORCreatorSummerDictonary.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="Guide\GuideV.xaml">
|
<Page Include="Guide\GuideV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@@ -455,9 +476,26 @@
|
|||||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
</None>
|
</None>
|
||||||
<AppDesigner Include="My Project\" />
|
<AppDesigner Include="My Project\" />
|
||||||
|
<None Include="packages.config" />
|
||||||
<Resource Include="Resources\TopCommandBar\DeleteDir.png" />
|
<Resource Include="Resources\TopCommandBar\DeleteDir.png" />
|
||||||
<Resource Include="Resources\EgtCAM5.png" />
|
<Resource Include="Resources\EgtCAM5.png" />
|
||||||
<Resource Include="Resources\InstrumentPanel\LinearDimension.png" />
|
<Resource Include="Resources\InstrumentPanel\LinearDimension.png" />
|
||||||
|
<Resource Include="Resources\NewIco\CNC5assi.png" />
|
||||||
|
<Resource Include="Resources\NewIco\copyfile.png" />
|
||||||
|
<Resource Include="Resources\NewIco\delete.png" />
|
||||||
|
<Resource Include="Resources\NewIco\deletefile.png" />
|
||||||
|
<Resource Include="Resources\NewIco\export.png" />
|
||||||
|
<Resource Include="Resources\NewIco\feedback.png" />
|
||||||
|
<Resource Include="Resources\NewIco\folder.png" />
|
||||||
|
<Resource Include="Resources\NewIco\help.png" />
|
||||||
|
<Resource Include="Resources\NewIco\newfile.png" />
|
||||||
|
<Resource Include="Resources\NewIco\newfolder.png" />
|
||||||
|
<Resource Include="Resources\NewIco\print.png" />
|
||||||
|
<Resource Include="Resources\NewIco\refresh.png" />
|
||||||
|
<Resource Include="Resources\NewIco\save.png" />
|
||||||
|
<Resource Include="Resources\NewIco\saveas.png" />
|
||||||
|
<Resource Include="Resources\NewIco\savesp.png" />
|
||||||
|
<Resource Include="Resources\NewIco\settings.png" />
|
||||||
<Content Include="Resources\TopCommandBar\SaveAsTemplate1.png" />
|
<Content Include="Resources\TopCommandBar\SaveAsTemplate1.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -0,0 +1,595 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
||||||
|
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
|
||||||
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
||||||
|
|
||||||
|
<!--Importo EgtDictionary-->
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="EgtDOORCreatorDefaultStyle.xaml"/>
|
||||||
|
<ResourceDictionary Source="EgtDOORCreatorDictionary.xaml" />
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
|
||||||
|
<!--#region TextBlockColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="DoorParamsTxBx.TextColor.Foreground" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion TextBlockColor-->
|
||||||
|
|
||||||
|
<!--#region CheckBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Background" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Border" Color="{StaticResource EgalwareDeepCeruleanColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Glyph" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Foreground" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.MouseOver.Background" Color="{StaticResource EgalwareDeepCeruleanColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.MouseOver.Border" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.MouseOver.Glyph" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Pressed.Background" Color="{StaticResource EgalwarePattensBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Pressed.Border" Color="{StaticResource EgalwareRoyalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Pressed.Glyph" Color="{StaticResource EgalwareMineShaftColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Disabled.Background" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Disabled.Border" Color="{StaticResource EgalwareDeepCeruleanColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Disabled.Glyph" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion CheckBoxColor-->
|
||||||
|
|
||||||
|
<!--#region ComboBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="TextBox.Static.Background" Color="{StaticResource EgalwareWhiteSmokeColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.Static.Border" MappingMode="RelativeToBoundingBox" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareOrientColor}" Offset="0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwarePrussianBlueColor}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.Static.Background" MappingMode="RelativeToBoundingBox" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareRegalBlueColor}" Offset="0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareOrientColor}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="{StaticResource EgalwareWhiteSmokeColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Foreground" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="{StaticResource EgalwareWhiteSmokeColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="{StaticResource EgalwareGrayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareLochmaraColor}" Offset="0" />
|
||||||
|
<GradientStop Color="{StaticResource EgalwarePrussianBlueColor}" Offset="1" />
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="{StaticResource EgalwareGrayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="{StaticResource EgalwareCeruleanColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="{StaticResource EgalwareCeruleanColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareCeruleanColor}" Offset="0.0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareLochmaraColor}" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="{StaticResource EgalwareSeagullColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Background" Color="{StaticResource EgalwareDarkBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="{StaticResource EgalwareDarkCyanColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="{StaticResource EgalwareDarkOrangeColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="{StaticResource EgalwareCornflowerBlueColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.Pressed.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareHawkesBlueColor}" Offset="0.0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareFrenchPassColor}" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="{StaticResource EgalwareCornflowerBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="{StaticResource EgalwarePrussianBlue2Color}" Opacity="0.2"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="{StaticResource EgalwareRegalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="{StaticResource EgalwareWhiteSmokeColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="{StaticResource EgalwareSilverColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ComboBoxColor-->
|
||||||
|
|
||||||
|
<!--#region ScrollBarColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Background" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Background" Color="{StaticResource EgalwareCerulean2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Foreground" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Border" Color="{StaticResource EgalwareRegalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Glyph" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Thumb" Color="{StaticResource EgalwareRegalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Background" Color="{StaticResource EgalwareBahamaBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Border" Color="{StaticResource EgalwarePrussianBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Glyph" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Thumb" Color="{StaticResource EgalwarePrussianBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Background" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Border" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Thumb" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Glyph" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Background" Color="{StaticResource EgalwareOrientColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Border" Color="{StaticResource EgalwareOrientColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Glyph" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Button.Static.Background" Color="{StaticResource EgalwareRegalBlueColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ScrollBarColor -->
|
||||||
|
|
||||||
|
<!--#region ButtonColor-->
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="Button.Static.Background" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareCeruleanColor}" Offset="0"/>
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareBahamaBlueColor}" Offset="0.5"/>
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareCerulean3Color}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="Button.Static.Border" Color="{DynamicResource EgalwareBahamaBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Static.Foreground" Color="{DynamicResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="{DynamicResource EgalwareOrientColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="{DynamicResource EgalwareRoyalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Pressed.Background" Color="{DynamicResource EgalwareRegalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Pressed.Border" Color="{DynamicResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Disabled.Background" Color="{DynamicResource EgalwareCornflowerBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Disabled.Border" Color="{DynamicResource EgalwareGlacierColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="{DynamicResource EgalwareGrayColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ButtonColor-->
|
||||||
|
|
||||||
|
<!--#region TextBlockColor-->
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="EgtCustomWindow.TitleBarBrush" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareCeruleanColor}" Offset="0"/>
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareBahamaBlueColor}" Offset="0.5"/>
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareCerulean3Color}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="EgtCustomWindow.BorderBrush" Color="{DynamicResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="EgtCustomWindow.Background" Color="{DynamicResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
|
||||||
|
<!--#endregion TextBlockColor-->
|
||||||
|
|
||||||
|
<!--#region TextBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="TextBox.Foreground" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="TextBox.Background" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion TextBoxColor-->
|
||||||
|
|
||||||
|
<!--#region ListBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="ListBox.Background" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ListBoxColor-->
|
||||||
|
|
||||||
|
<!--#region BorderColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="HardwareDimensionList.Foreground" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<LinearGradientBrush x:Key="HardwareDimensionList.Background" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareCeruleanColor}" Offset="0"/>
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareBahamaBlueColor}" Offset="0.5"/>
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareCerulean3Color}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
|
||||||
|
<!--#endregion BorderColor-->
|
||||||
|
|
||||||
|
<!--#region TabItemColor-->
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareDeepCeruleanColor}" Offset="0" />
|
||||||
|
<GradientStop Color="{StaticResource EgalwarePrussianBlue2Color}" Offset="0.5" />
|
||||||
|
<GradientStop Color="{StaticResource EgalwareDeepCeruleanColor}" Offset="1" />
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="TabItem.Static.Border" Color="{StaticResource EgalwareLightGrayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="TabItem.MouseOver.Background" Color="{StaticResource EgalwareCornflowerBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="{StaticResource EgalwareLochmaraColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="TabItem.Selected.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareDeepCeruleanColor}" Offset="0" />
|
||||||
|
<GradientStop Color="{StaticResource EgalwarePrussianBlue2Color}" Offset="0.5" />
|
||||||
|
<GradientStop Color="{StaticResource EgalwareDeepCeruleanColor}" Offset="1" />
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="TabItem.Selected.Border" Color="{StaticResource EgalwarePrussianBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="TabItem.Disabled.Background" Color="{StaticResource EgalwarePrussianBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="TabItem.Disabled.Border" Color="{StaticResource EgalwarePrussianBlueColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion TabItemColor-->
|
||||||
|
|
||||||
|
<!--#region ExpanderColor-->
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="Expander.BackgroundColor" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareCeruleanColor}" Offset="0" />
|
||||||
|
<GradientStop Color="{StaticResource EgalwareBahamaBlueColor}" Offset="0.5" />
|
||||||
|
<GradientStop Color="{StaticResource EgalwareCerulean3Color}" Offset="1" />
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="Expander.BorderBrush" Color="{StaticResource EgalwareSeagullColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ExpanderColor-->
|
||||||
|
|
||||||
|
<!--#region BorderThickness-->
|
||||||
|
|
||||||
|
<Thickness x:Key="GroupBoxBorderThicknessHeader">2,2,2,0</Thickness>
|
||||||
|
<Thickness x:Key="GroupBoxBorderThickness">2,0,2,2</Thickness>
|
||||||
|
<Thickness x:Key="GroupBoxBorderThicknessErrHeader">2,2,2,0</Thickness>
|
||||||
|
<Thickness x:Key="GroupBoxBorderThicknessErr">2,0,2,2</Thickness>
|
||||||
|
<Thickness x:Key="BorderParamThickness">0.5</Thickness>
|
||||||
|
<Thickness x:Key="GroupBox_BorderThickness">0.7</Thickness>
|
||||||
|
<Thickness x:Key="CustomScrollBarThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="DoorListBoxThickness">0</Thickness>
|
||||||
|
<Thickness x:Key="ButtonThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="ToggleButtonThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="DoorParamsCmBxThickness">1</Thickness>
|
||||||
|
|
||||||
|
<!--#endregion BorderThickness-->
|
||||||
|
|
||||||
|
<!--#region Immagini predefiniti-->
|
||||||
|
|
||||||
|
<BitmapImage x:Key="NewFile" UriSource="/Resources/NewIco/newfile.png"/>
|
||||||
|
<BitmapImage x:Key="DeleteFile" UriSource="/Resources/NewIco/deletefile.png"/>
|
||||||
|
<BitmapImage x:Key="CopyFile" UriSource="/Resources/NewIco/copyfile.png"/>
|
||||||
|
<BitmapImage x:Key="OpenFolder" UriSource="/Resources/NewIco/folder.png"/>
|
||||||
|
<BitmapImage x:Key="NewFolder" UriSource="/Resources/NewIco/newfolder.png"/>
|
||||||
|
<BitmapImage x:Key="Refresh" UriSource="/Resources/NewIco/refresh.png"/>
|
||||||
|
<BitmapImage x:Key="Save" UriSource="/Resources/NewIco/save.png"/>
|
||||||
|
<BitmapImage x:Key="SaveAs" UriSource="/Resources/NewIco/saveas.png"/>
|
||||||
|
<BitmapImage x:Key="SaveAsTemplate" UriSource="/Resources/Newico/savesp.png"/>
|
||||||
|
<BitmapImage x:Key="ExportToMachine" UriSource="/Resources/NewIco/CNC5assi.png"/>
|
||||||
|
<BitmapImage x:Key="Print" UriSource="/Resources/NewIco/print.png"/>
|
||||||
|
<BitmapImage x:Key="CreateAssembly" UriSource="/Resources/TopCommandBar/Create Assembly.png"/>
|
||||||
|
<BitmapImage x:Key="Option" UriSource="/Resources/NewIco/settings.png"/>
|
||||||
|
<BitmapImage x:Key="FeedBack" UriSource="/Resources/NewIco/feedback.png"/>
|
||||||
|
<BitmapImage x:Key="Help" UriSource="/Resources/NewIco/help.png"/>
|
||||||
|
|
||||||
|
<!--#endregion Immagini predefiniti-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region ButtonStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="GeneralDoorParamGrpButton" TargetType="{x:Type Button}" BasedOn="{StaticResource DoorsBtn}">
|
||||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||||
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||||
|
<Setter Property="FontStyle" Value="Normal"/>
|
||||||
|
<Setter Property="Height" Value="Auto"/>
|
||||||
|
<Setter Property="Padding" Value="2,0,2,2"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="CompoBtn" TargetType="{x:Type Button}" BasedOn="{StaticResource DoorsBtn}">
|
||||||
|
<Setter Property="FontWeight" Value="DemiBold"/>
|
||||||
|
<Setter Property="FontStyle" Value="Italic"/>
|
||||||
|
<Setter Property="Margin" Value="0.5"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="BrowseOptionBtn" TargetType="{x:Type Button}" BasedOn="{StaticResource DoorsBtn}">
|
||||||
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||||
|
<Setter Property="FontStyle" Value="Normal"/>
|
||||||
|
<Setter Property="MaxHeight" Value="28"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion ButtonStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region TextBlockStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="DoorParamHeaderGrp" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
<Setter Property="FontSize" Value="14"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<Setter Property="Foreground" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamHeaderGrp.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontWeight" Value="{Binding FontBold}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="GeneralDoorParamGrpTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="Width" Value="Auto"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="BrandTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontStyle" Value="Normal"/>
|
||||||
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding MissingDirectory}" Value="True">
|
||||||
|
<Setter Property="FontStyle" Value="{Binding FontStyleCompoBrandFile}"/>
|
||||||
|
<Setter Property="Foreground" Value="{Binding ErrorColor}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="FileTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontStyle" Value="Normal"/>
|
||||||
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding MissingFile}" Value="True">
|
||||||
|
<Setter Property="FontStyle" Value="{Binding FontStyleCompoBrandFile}"/>
|
||||||
|
<Setter Property="Foreground" Value="{Binding ErrorColor}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Messaggio nel GroupBox della pagina OptionPage-->
|
||||||
|
<Style x:Key="GeneralOptionTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Center"/>
|
||||||
|
<Setter Property="FontWeight" Value="Medium"/>
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,5,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Messaggio di Header nel GroupBox della pagina OptionPage-->
|
||||||
|
<Style x:Key="GeneralOptionHeaderTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Messaggio nel GroupBox CurrentMachine della pagina OptionPage-->
|
||||||
|
<Style x:Key="GeneralOptionMTableTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontWeight" Value="Black"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,5,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion TextBlockStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region GroupBoxStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="DoorParamGrp" TargetType="{x:Type GroupBox}">
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="GroupBox">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<!--Border dell'Header-->
|
||||||
|
<Border Grid.Row="0"
|
||||||
|
x:Name="BrdH"
|
||||||
|
CornerRadius="2,2,0,0"
|
||||||
|
Background="{StaticResource GrpBxParamColor1}">
|
||||||
|
<ContentPresenter Margin="4"
|
||||||
|
ContentSource="Header"
|
||||||
|
RecognizesAccessKey="True"/>
|
||||||
|
</Border>
|
||||||
|
<!--Border del contenuto-->
|
||||||
|
<Border Grid.Row="1"
|
||||||
|
x:Name="Brd"
|
||||||
|
CornerRadius="0,0,2,2"
|
||||||
|
Background="{StaticResource GrpBxParamColor2}">
|
||||||
|
<ContentPresenter Margin="4"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<!--Gestione colore border header groupbox con riferimento al border di nome BrdH-->
|
||||||
|
<Setter TargetName="BrdH" Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter TargetName="BrdH" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessErrHeader}"/>
|
||||||
|
<!--Gestione colore border corpo groupbox con riferimento al border di nome Brd-->
|
||||||
|
<Setter TargetName="Brd" Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter TargetName="Brd" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessErr}"/>
|
||||||
|
<!--Gestione margine-->
|
||||||
|
<Setter TargetName="BrdH" Property="Margin" Value="1,1,1,0"/>
|
||||||
|
<Setter TargetName="Brd" Property="Margin" Value="1,0,1,1"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<!--Gestione colore border header groupbox con riferimento al border di nome BrdH-->
|
||||||
|
<Setter TargetName="BrdH" Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter TargetName="BrdH" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessHeader}"/>
|
||||||
|
<!--Gestione colore border corpo groupbox con riferimento al border di nome Brd-->
|
||||||
|
<Setter TargetName="Brd" Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter TargetName="Brd" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThickness}"/>
|
||||||
|
<!--Gestione margine-->
|
||||||
|
<Setter TargetName="BrdH" Property="Margin" Value="1,1,1,0"/>
|
||||||
|
<Setter TargetName="Brd" Property="Margin" Value="1,0,1,1"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="DoorParamGrp2" TargetType="{x:Type GroupBox}">
|
||||||
|
<Setter Property="Margin" Value="0,0,0,5"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="GroupBox">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<!--Border dell'Header-->
|
||||||
|
<Border Grid.Row="0"
|
||||||
|
x:Name="BrdH"
|
||||||
|
CornerRadius="2,2,0,0"
|
||||||
|
Background="{StaticResource GrpBxParamColor1}">
|
||||||
|
<ContentPresenter Margin="4"
|
||||||
|
ContentSource="Header"
|
||||||
|
RecognizesAccessKey="True"/>
|
||||||
|
</Border>
|
||||||
|
<!--Border del contenuto-->
|
||||||
|
<Border Grid.Row="1"
|
||||||
|
x:Name="Brd"
|
||||||
|
CornerRadius="0,0,2,2"
|
||||||
|
Background="{StaticResource GrpBxParamColor2}">
|
||||||
|
<ContentPresenter Margin="4"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<!--Gestione colore border header groupbox con riferimento al border di nome BrdH-->
|
||||||
|
<Setter TargetName="BrdH" Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter TargetName="BrdH" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessErrHeader}"/>
|
||||||
|
<!--Gestione colore border corpo groupbox con riferimento al border di nome Brd-->
|
||||||
|
<Setter TargetName="Brd" Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter TargetName="Brd" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessErr}"/>
|
||||||
|
<!--Gestione margine-->
|
||||||
|
<Setter TargetName="BrdH" Property="Margin" Value="1,1,1,0"/>
|
||||||
|
<Setter TargetName="Brd" Property="Margin" Value="1,0,1,1"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<!--Gestione colore border header groupbox con riferimento al border di nome BrdH-->
|
||||||
|
<Setter TargetName="BrdH" Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter TargetName="BrdH" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessHeader}"/>
|
||||||
|
<!--Gestione colore border corpo groupbox con riferimento al border di nome Brd-->
|
||||||
|
<Setter TargetName="Brd" Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter TargetName="Brd" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThickness}"/>
|
||||||
|
<!--Gestione margine-->
|
||||||
|
<Setter TargetName="BrdH" Property="Margin" Value="1,1,1,0"/>
|
||||||
|
<Setter TargetName="Brd" Property="Margin" Value="1,0,1,1"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="GeneralDoorParamGrp" TargetType="{x:Type GroupBox}" BasedOn="{StaticResource DoorParamGrp}">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="GroupBox">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border Grid.Row="0"
|
||||||
|
BorderBrush="{StaticResource EgalwareDeepCerulean}"
|
||||||
|
BorderThickness="2,2,2,0"
|
||||||
|
CornerRadius="2,2,0,0"
|
||||||
|
Background="{StaticResource GrpBxParamColor1}">
|
||||||
|
<ContentPresenter Margin="4"
|
||||||
|
ContentSource="Header"
|
||||||
|
RecognizesAccessKey="True"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<Border Grid.Row="1"
|
||||||
|
BorderBrush="{StaticResource EgalwareDeepCerulean}"
|
||||||
|
BorderThickness="2,0,2,2"
|
||||||
|
CornerRadius="0,0,2,2"
|
||||||
|
Background="{StaticResource GrpBxParamColor2}">
|
||||||
|
<ContentPresenter Margin="4"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
|
||||||
|
<Style x:Key="PartPageGrp" TargetType="{x:Type GroupBox}">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource EgalwareDeepCerulean}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
||||||
|
<Grid SnapsToDevicePixels="true">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="6"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="6"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="6"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Border x:Name="Header" Grid.Column="1" Grid.ColumnSpan="2" Padding="3,1,3,0" Grid.RowSpan="2" Grid.Row="0" Background="{StaticResource GrpBxParamColor1}" CornerRadius="2,2,0,0">
|
||||||
|
<ContentPresenter ContentSource="Header" Margin="4" Width="{Binding ElementName=Header, Path=ActualWidth}" HorizontalAlignment="Right" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<Border x:Name="Argument" Grid.Column="1" Grid.ColumnSpan="2" Grid.RowSpan="2" Grid.Row="2" Padding="0,1,3,0" Background="{StaticResource GrpBxParamColor2}" CornerRadius="0,0,2,2">
|
||||||
|
<ContentPresenter Margin="4" HorizontalAlignment="Center" Width="{Binding ElementName=Argument, Path=ActualWidth}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<!--Gestione colore border header groupbox con riferimento al border di nome BrdH-->
|
||||||
|
<Setter TargetName="Header" Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter TargetName="Header" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessErrHeader}"/>
|
||||||
|
<!--Gestione colore border corpo groupbox con riferimento al border di nome Brd-->
|
||||||
|
<Setter TargetName="Argument" Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter TargetName="Argument" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessErr}"/>
|
||||||
|
<!--Gestione margine-->
|
||||||
|
<Setter TargetName="Header" Property="Margin" Value="1,1,1,0"/>
|
||||||
|
<Setter TargetName="Argument" Property="Margin" Value="1,0,1,1"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<!--Gestione colore border header groupbox con riferimento al border di nome BrdH-->
|
||||||
|
<Setter TargetName="Header" Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter TargetName="Header" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThicknessHeader}"/>
|
||||||
|
<!--Gestione colore border corpo groupbox con riferimento al border di nome Brd-->
|
||||||
|
<Setter TargetName="Argument" Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter TargetName="Argument" Property="BorderThickness" Value="{StaticResource GroupBoxBorderThickness}"/>
|
||||||
|
<!--Gestione margine-->
|
||||||
|
<Setter TargetName="Header" Property="Margin" Value="1,1,1,0"/>
|
||||||
|
<Setter TargetName="Argument" Property="Margin" Value="1,0,1,1"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion GroupBoxStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region TabControl Style-->
|
||||||
|
|
||||||
|
<Style x:Key="GeneralOptionTabControl" TargetType="{x:Type TabControl}">
|
||||||
|
<Setter Property="Background" Value="{StaticResource EgalwareTransparent}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource EgalwareAlto}"/>
|
||||||
|
<Setter Property="Margin" Value="0,3,0,0"/>
|
||||||
|
<Style.Resources>
|
||||||
|
<Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource GeneralOptionTabItem}"/>
|
||||||
|
</Style.Resources>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion TabControl Style-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region CheckBoxStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="AllignGropBoxChBx" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource GeneralCheckBox}">
|
||||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||||
|
<Setter Property="Margin" Value="2,0,0.2,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion CheckBoxStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region LineStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="PartPageLine" TargetType="{x:Type Line}">
|
||||||
|
<Setter Property="Stroke" Value="{StaticResource EgalwareTransparent}"/>
|
||||||
|
<Setter Property="StrokeThickness" Value="0"/>
|
||||||
|
<Setter Property="X1" Value="10"/>
|
||||||
|
<Setter Property="X2" Value="400"/>
|
||||||
|
<Setter Property="Y1" Value="70"/>
|
||||||
|
<Setter Property="Y2" Value="70"/>
|
||||||
|
<Setter Property="Margin" Value="0,-60,0,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion LineStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
||||||
@@ -0,0 +1,898 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
||||||
|
xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
|
||||||
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
||||||
|
|
||||||
|
<!--#region TextBlockColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="DoorParamsTxBx.TextColor.Foreground" Color="{StaticResource EgalwareIndochineColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion TextBlockColor-->
|
||||||
|
|
||||||
|
<!--#region CheckBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Background" Color="{StaticResource EgalwareDarkCyanColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Border" Color="{StaticResource EgalwareDarkBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Glyph" Color="{StaticResource EgalwareAliceBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Static.Foreground" Color="{StaticResource EgalwareIndochineColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.MouseOver.Background" Color="{StaticResource EgalwareAliceBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.MouseOver.Border" Color="{StaticResource EgalwareDodgerBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.MouseOver.Glyph" Color="{StaticResource EgalwareMineShaftColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Pressed.Background" Color="{StaticResource EgalwarePattensBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Pressed.Border" Color="{StaticResource EgalwareRoyalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Pressed.Glyph" Color="{StaticResource EgalwareMineShaftColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Disabled.Background" Color="{StaticResource EgalwareMercuryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Disabled.Border" Color="{StaticResource EgalwareSilverColor}"/>
|
||||||
|
<SolidColorBrush x:Key="OptionMark.Disabled.Glyph" Color="{StaticResource EgalwareDoveGrayColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion CheckBox Color-->
|
||||||
|
|
||||||
|
<!--#region ComboBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="TextBox.Static.Background" Color="{StaticResource EgalwareGlacierColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.Static.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareCerulean2Color}" Offset="0.0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareCerulean3Color}" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Border" Color="{StaticResource EgalwarePrussianBlue2Color}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="{StaticResource EgalwareFrenchPassColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Foreground" Color="{StaticResource EgalwareIndochineColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="{StaticResource EgalwareBombayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareCornflowerBlueColor}" Offset="0.0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareGlacierColor}" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="{StaticResource EgalwareDodgerBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="{StaticResource EgalwareBlackColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="{StaticResource EgalwareSeagullColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareSelagoColor}" Offset="0.0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareHawkesBlueColor}" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="{StaticResource EgalwareSeagullColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.Pressed.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareHawkesBlueColor}" Offset="0.0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareFrenchPassColor}" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="{StaticResource EgalwareCornflowerBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="{StaticResource EgalwareBlackColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="{StaticResource EgalwareCornflowerBlueColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="ComboBox.Pressed.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
||||||
|
<GradientStop Color="{StaticResource EgalwareHawkesBlueColor}" Offset="0.0"/>
|
||||||
|
<GradientStop Color="{StaticResource EgalwareFrenchPassColor}" Offset="1.0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="{StaticResource EgalwareCornflowerBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="{StaticResource EgalwareGalleryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="{StaticResource EgalwareAltoColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="{StaticResource EgalwareSilverColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="{StaticResource EgalwareSilverColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="{StaticResource EgalwareTransparentColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ComboBoxColor-->
|
||||||
|
|
||||||
|
<!--#region ScrollBarColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Background" Color="{StaticResource EgalwareSilverChaliceColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Background" Color="{StaticResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Foreground" Color="{StaticResource EgalwareBlackColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Border" Color="{StaticResource EgalwareGalleryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Glyph" Color="{StaticResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Static.Thumb" Color="{StaticResource EgalwareSilverColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Background" Color="{StaticResource EgalwareAltoColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Border" Color="{StaticResource EgalwareAltoColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Glyph" Color="{StaticResource EgalwareBlackColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.MouseOver.Thumb" Color="{StaticResource EgalwareSilverChaliceColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Background" Color="{StaticResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Border" Color="{StaticResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Thumb" Color="{StaticResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Pressed.Glyph" Color="{StaticResource EgalwareBlackColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Background" Color="{StaticResource EgalwareGalleryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Border" Color="{StaticResource EgalwareGalleryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Disabled.Glyph" Color="{StaticResource EgalwareSilverColor}"/>
|
||||||
|
<SolidColorBrush x:Key="ScrollBar.Button.Static.Background" Color="{StaticResource EgalwareWhiteColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ScrollBarColor -->
|
||||||
|
|
||||||
|
<!--#region DoorListColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Static.Background" Color="{DynamicResource EgalwareGalleryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Static.Border" Color="{DynamicResource EgalwareGalleryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Pressed.Glyph" Color="{DynamicResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.MouseOver.Glyph" Color="{DynamicResource EgalwareBlackColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Disabled.Glyph" Color="{DynamicResource EgalwareSilverColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Static.Glyph" Color="{DynamicResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.MouseOver.Background" Color="{DynamicResource EgalwareAltoColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.MouseOver.Border" Color="{DynamicResource EgalwareAltoColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Pressed.Background" Color="{DynamicResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Pressed.Border" Color="{DynamicResource EgalwareScorpionColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Disabled.Background" Color="{DynamicResource EgalwareGalleryColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ScrollBar.Disabled.Border" Color="{DynamicResource EgalwareGalleryColor}"/>
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="DoorList.ListBox.Static.Background" Color="{DynamicResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ListBox.Static.Border" Color="{DynamicResource EgalwareBombayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ListBox.Disabled.Background" Color="{DynamicResource EgalwareWhiteColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorList.ListBox.Disabled.Border" Color="{DynamicResource EgalwareAltoColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion DoorListColor-->
|
||||||
|
|
||||||
|
<!--#region ButtonColor-->
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="Button.Static.Background" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareDarkOrangeColor}" Offset="0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="Button.Static.Border" Color="{DynamicResource EgalwareDoveGrayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Static.Foreground" Color="{DynamicResource EgalwareCodGrayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="{DynamicResource EgalwareFrenchPassColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="{DynamicResource EgalwareBostonBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Pressed.Background" Color="{DynamicResource EgalwareTropicalBlueColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Pressed.Border" Color="{DynamicResource EgalwareCalypsoColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Disabled.Background" Color="{DynamicResource EgalwareWindSandColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Disabled.Border" Color="{DynamicResource EgalwareBombayColor}"/>
|
||||||
|
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="{DynamicResource EgalwareGrayColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ButtonColor-->
|
||||||
|
|
||||||
|
<!--#region TextBlockColor-->
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="EgtCustomWindow.TitleBarBrush" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareDarkCyanColor}" Offset="0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="EgtCustomWindow.BorderBrush" Color="{DynamicResource EgalwareIndigoColor}"/>
|
||||||
|
<SolidColorBrush x:Key="EgtCustomWindow.Background" Color="{DynamicResource EgalwareWhiteColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion TextBlockColor-->
|
||||||
|
|
||||||
|
<!--#region TextBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="TextBox.Foreground" Color="{StaticResource EgalwareIndochineColor}"/>
|
||||||
|
<SolidColorBrush x:Key="TextBox.Background" Color="{StaticResource EgalwarePattensBlueColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion TextBoxColor-->
|
||||||
|
|
||||||
|
<!--#region ListBoxColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="ListBox.Background" Color="{StaticResource EgalwareDanubeColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ListBoxColor-->
|
||||||
|
|
||||||
|
<!--#region BorderColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="HardwareDimensionList.Foreground" Color="{StaticResource EgalwareDoveGrayColor}"/>
|
||||||
|
<LinearGradientBrush x:Key="HardwareDimensionList.Background" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareDarkBlueColor}" Offset="0"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
|
||||||
|
<!--#endregion BorderColor-->
|
||||||
|
|
||||||
|
<!--#region DoorButtonColor-->
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="DoorButton.Static.Background" Color="{DynamicResource EgalwareIndochineColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorButton.Static.Border" Color="{DynamicResource EgalwareBlackColor}"/>
|
||||||
|
<SolidColorBrush x:Key="DoorButton.MouseOver.Border" Color="{DynamicResource EgalwareBostonBlueColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion DoorButtonColor-->
|
||||||
|
|
||||||
|
<!--#region ExpanderColor-->
|
||||||
|
|
||||||
|
<LinearGradientBrush x:Key="Expander.BackgroundColor" MappingMode="RelativeToBoundingBox" EndPoint="0,0" StartPoint="1,1">
|
||||||
|
<GradientStop Color="{DynamicResource EgalwareSilverChaliceColor}" Offset="0" />
|
||||||
|
</LinearGradientBrush>
|
||||||
|
<SolidColorBrush x:Key="Expander.BorderBrush" Color="{StaticResource EgalwareGeyserColor}"/>
|
||||||
|
|
||||||
|
<!--#endregion ExpanderColor-->
|
||||||
|
|
||||||
|
<!--#region BorderThickness-->
|
||||||
|
|
||||||
|
<Thickness x:Key="GroupBox_BorderThickness">0.7</Thickness>
|
||||||
|
<Thickness x:Key="BorderParamThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="CustomScrollBarThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="DoorListBoxThickness">0</Thickness>
|
||||||
|
<Thickness x:Key="ButtonThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="ToggleButtonThickness">1</Thickness>
|
||||||
|
|
||||||
|
<!--#endregion BorderThickness-->
|
||||||
|
|
||||||
|
<!--#region Immagini predefiniti-->
|
||||||
|
|
||||||
|
<BitmapImage x:Key="NewFile" UriSource="/Resources/TopCommandBar/NewFile.png"/>
|
||||||
|
<BitmapImage x:Key="DeleteFile" UriSource="/Resources/TopCommandBar/Delete.png"/>
|
||||||
|
<BitmapImage x:Key="CopyFile" UriSource="/Resources/TopCommandBar/DuplicaFile.png"/>
|
||||||
|
<BitmapImage x:Key="OpenFolder" UriSource="/Resources/TopCommandBar/Open.png"/>
|
||||||
|
<BitmapImage x:Key="NewFolder" UriSource="/Resources/TopCommandBar/NewDir.png"/>
|
||||||
|
<BitmapImage x:Key="Refresh" UriSource="/Resources/Refresh/RefreshDir.png"/>
|
||||||
|
<BitmapImage x:Key="Save" UriSource="/Resources/TopCommandBar/Save.png"/>
|
||||||
|
<BitmapImage x:Key="SaveAs" UriSource="/Resources/TopCommandBar/SaveAs.png"/>
|
||||||
|
<BitmapImage x:Key="SaveAsTemplate" UriSource="/Resources/TopCommandBar/SaveAsTemplate.png"/>
|
||||||
|
<BitmapImage x:Key="ExportToMachine" UriSource="/Resources/TopCommandBar/Export.png"/>
|
||||||
|
<BitmapImage x:Key="Print" UriSource="/Resources/InstrumentPanel/Print.png"/>
|
||||||
|
<BitmapImage x:Key="CreateAssembly" UriSource="/Resources/TopCommandBar/Create Assembly.png"/>
|
||||||
|
<BitmapImage x:Key="Option" UriSource="/Resources/TopCommandBar/Options.png"/>
|
||||||
|
<BitmapImage x:Key="FeedBack" UriSource="/Resources/TopCommandBar/Send.png"/>
|
||||||
|
<BitmapImage x:Key="Help" UriSource="/Resources/TopCommandBar/Help.png"/>
|
||||||
|
|
||||||
|
<!--#endregion Immagini predefiniti-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region ButtonStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="GeneralDoorParamGrpButton" TargetType="{x:Type Button}" BasedOn="{StaticResource DoorsBtn}">
|
||||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||||
|
<Setter Property="Height" Value="Auto"/>
|
||||||
|
<Setter Property="Padding" Value="2,0,2,2"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="CompoBtn" TargetType="{x:Type Button}" BasedOn="{StaticResource DoorsBtn}">
|
||||||
|
<Setter Property="Margin" Value="0.5"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="BrowseOptionBtn" TargetType="{x:Type Button}" BasedOn="{StaticResource DoorsBtn}">
|
||||||
|
<Setter Property="FontWeight" Value="Normal"/>
|
||||||
|
<Setter Property="FontStyle" Value="Normal"/>
|
||||||
|
<Setter Property="MaxHeight" Value="28"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion ButtonStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region TextBlockStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="DoorParamHeaderGrp" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="Margin" Value="0,0,0,0"/>
|
||||||
|
<Setter Property="FontWeight" Value="Normal"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<Setter Property="Foreground" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<Setter Property="Foreground" Value="{Binding Foreground}"/>
|
||||||
|
<Setter Property="FontWeight" Value="{Binding FontBold}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="GeneralDoorParamGrpTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="Width" Value="Auto"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="BrandTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontStyle" Value="Normal"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding MissingDirectory}" Value="True">
|
||||||
|
<Setter Property="FontStyle" Value="{Binding FontStyleCompoBrandFile}"/>
|
||||||
|
<Setter Property="Foreground" Value="{Binding ErrorColor}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="FileTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding MissingFile}" Value="True">
|
||||||
|
<Setter Property="FontStyle" Value="{Binding FontStyleCompoBrandFile}"/>
|
||||||
|
<Setter Property="Foreground" Value="{Binding ErrorColor}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="GeneralOptionTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Center"/>
|
||||||
|
<Setter Property="FontWeight" Value="Normal"/>
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,5,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Messaggio di Header nel GroupBox della pagina OptionPage-->
|
||||||
|
<Style x:Key="GeneralOptionHeaderTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontWeight" Value="Normal"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Messaggio nel GroupBox CurrentMachine della pagina OptionPage-->
|
||||||
|
<Style x:Key="GeneralOptionMTableTxBx" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource DoorParamsTxBx.TextColor.Foreground}"/>
|
||||||
|
<Setter Property="FontWeight" Value="Normal"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,5,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion TextBlockStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region GroupBox Style-->
|
||||||
|
|
||||||
|
<Style x:Key="DoorParamGrp" TargetType="{x:Type GroupBox}">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource EgalwareLightGray}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="2"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<Setter Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="{Binding BorderThickness}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="DoorParamGrp2" TargetType="{x:Type GroupBox}">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource EgalwareLightGray}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
<Setter Property="Margin" Value="0,0,0,5"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="2"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<Setter Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="{Binding BorderThickness}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="GeneralDoorParamGrp" TargetType="{x:Type GroupBox}" BasedOn="{StaticResource DoorParamGrp}">
|
||||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||||
|
<Setter Property="FontWeight" Value="Normal"/>
|
||||||
|
<Setter Property="FontStyle" Value="Normal"/>
|
||||||
|
<Setter Property="Height" Value="Auto"/>
|
||||||
|
<Setter Property="Padding" Value="2,0,2,2"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,0,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
|
||||||
|
<Style x:Key="PartPageGrp" TargetType="{x:Type GroupBox}">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource EgalwareLightGray}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
<Setter Property="Padding" Value="0,0,1,0"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type GroupBox}">
|
||||||
|
<Grid SnapsToDevicePixels="true">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="6"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="6"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="6"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Border Background="{TemplateBinding Background}" BorderBrush="{StaticResource EgalwareTransparent}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" Grid.Column="0" Grid.ColumnSpan="4" Grid.RowSpan="3" Grid.Row="1"/>
|
||||||
|
<Border BorderBrush="{StaticResource EgalwareWhite}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" Grid.ColumnSpan="4" Grid.RowSpan="3" Grid.Row="1">
|
||||||
|
<Border.OpacityMask>
|
||||||
|
<MultiBinding ConverterParameter="7" Converter="{StaticResource BorderGapMaskConverter}">
|
||||||
|
<Binding ElementName="Header" Path="ActualWidth"/>
|
||||||
|
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Mode=Self}"/>
|
||||||
|
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Mode=Self}"/>
|
||||||
|
</MultiBinding>
|
||||||
|
</Border.OpacityMask>
|
||||||
|
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
|
||||||
|
<Border BorderBrush="{StaticResource EgalwareWhite}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<Border x:Name="Header" Grid.Column="1" Grid.ColumnSpan="2" Padding="3,1,3,0" Grid.RowSpan="2" Grid.Row="0">
|
||||||
|
<ContentPresenter ContentSource="Header" Width="{Binding ElementName=Header, Path=ActualWidth}" HorizontalAlignment="Right" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||||
|
</Border>
|
||||||
|
<ContentPresenter Grid.Column="1" Grid.ColumnSpan="2" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="2"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<Setter Property="BorderBrush" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="{Binding BorderThickness}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion GroupBox Style-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region ComboBoxStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
|
||||||
|
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
||||||
|
<Setter Property="AllowDrop" Value="true"/>
|
||||||
|
<Setter Property="MinWidth" Value="0"/>
|
||||||
|
<Setter Property="MinHeight" Value="0"/>
|
||||||
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||||
|
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
|
||||||
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||||
|
<ScrollViewer x:Name="PART_ContentHost" Background="{StaticResource EgalwareTransparent}"
|
||||||
|
Focusable="false" HorizontalScrollBarVisibility="Hidden"
|
||||||
|
VerticalScrollBarVisibility="Hidden"/>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
|
||||||
|
<Setter Property="OverridesDefaultStyle" Value="true"/>
|
||||||
|
<Setter Property="IsTabStop" Value="false"/>
|
||||||
|
<Setter Property="Focusable" Value="false"/>
|
||||||
|
<Setter Property="ClickMode" Value="Press"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||||
|
<Border x:Name="templateRoot"
|
||||||
|
Background="{DynamicResource ComboBox.Static.Background}"
|
||||||
|
BorderBrush="{DynamicResource ComboBox.Static.Border}"
|
||||||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
|
SnapsToDevicePixels="True">
|
||||||
|
<Border x:Name="splitBorder"
|
||||||
|
BorderBrush="{DynamicResource EgalwareTransparent}"
|
||||||
|
BorderThickness="1"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="0"
|
||||||
|
SnapsToDevicePixels="true"
|
||||||
|
Width="{StaticResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
|
||||||
|
<Path x:Name="arrow" Data="F1 M 0,0 L 2.667,2.66665 L 5.3334,0 L 5.3334,-1.78168 L 2.6667,0.88501 L0,-1.78168 L0,0 Z"
|
||||||
|
Fill="{DynamicResource ComboBox.Static.Glyph}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Margin="0"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<MultiDataTrigger>
|
||||||
|
<MultiDataTrigger.Conditions>
|
||||||
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
|
||||||
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="False"/>
|
||||||
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="False"/>
|
||||||
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
|
||||||
|
</MultiDataTrigger.Conditions>
|
||||||
|
<Setter Property="Background" TargetName="templateRoot" Value="{DynamicResource ComboBox.Static.Editable.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{DynamicResource ComboBox.Static.Editable.Border}"/>
|
||||||
|
<Setter Property="Background" TargetName="splitBorder" Value="{DynamicResource ComboBox.Static.Editable.Button.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{DynamicResource ComboBox.Static.Editable.Button.Border}"/>
|
||||||
|
</MultiDataTrigger>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="Fill" TargetName="arrow"
|
||||||
|
Value="{DynamicResource ComboBox.MouseOver.Glyph}"/>
|
||||||
|
</Trigger>
|
||||||
|
<MultiDataTrigger>
|
||||||
|
<MultiDataTrigger.Conditions>
|
||||||
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
|
||||||
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="False"/>
|
||||||
|
</MultiDataTrigger.Conditions>
|
||||||
|
<Setter Property="Background" TargetName="templateRoot" Value="{DynamicResource ComboBox.MouseOver.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{DynamicResource ComboBox.MouseOver.Border}"/>
|
||||||
|
</MultiDataTrigger>
|
||||||
|
<MultiDataTrigger>
|
||||||
|
<MultiDataTrigger.Conditions>
|
||||||
|
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
|
||||||
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="True"/>
|
||||||
|
</MultiDataTrigger.Conditions>
|
||||||
|
<Setter Property="Background" TargetName="templateRoot" Value="{DynamicResource ComboBox.MouseOver.Editable.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{DynamicResource ComboBox.MouseOver.Editable.Border}"/>
|
||||||
|
<Setter Property="Background" TargetName="splitBorder" Value="{DynamicResource ComboBox.MouseOver.Editable.Button.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{DynamicResource ComboBox.MouseOver.Editable.Button.Border}"/>
|
||||||
|
</MultiDataTrigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter Property="Fill" TargetName="arrow" Value="{DynamicResource ComboBox.Pressed.Glyph}"/>
|
||||||
|
</Trigger>
|
||||||
|
<MultiDataTrigger>
|
||||||
|
<MultiDataTrigger.Conditions>
|
||||||
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
|
||||||
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="False"/>
|
||||||
|
</MultiDataTrigger.Conditions>
|
||||||
|
<Setter Property="Background" TargetName="templateRoot" Value="{DynamicResource ComboBox.Pressed.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{DynamicResource ComboBox.Pressed.Border}"/>
|
||||||
|
</MultiDataTrigger>
|
||||||
|
<MultiDataTrigger>
|
||||||
|
<MultiDataTrigger.Conditions>
|
||||||
|
<Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
|
||||||
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="True"/>
|
||||||
|
</MultiDataTrigger.Conditions>
|
||||||
|
<Setter Property="Background" TargetName="templateRoot" Value="{DynamicResource ComboBox.Pressed.Editable.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{DynamicResource ComboBox.Pressed.Editable.Border}"/>
|
||||||
|
<Setter Property="Background" TargetName="splitBorder" Value="{DynamicResource ComboBox.Pressed.Editable.Button.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{DynamicResource ComboBox.Pressed.Editable.Button.Border}"/>
|
||||||
|
</MultiDataTrigger>
|
||||||
|
<Trigger Property="IsEnabled" Value="False">
|
||||||
|
<Setter Property="Fill" TargetName="arrow" Value="{DynamicResource ComboBox.Disabled.Glyph}"/>
|
||||||
|
</Trigger>
|
||||||
|
<MultiDataTrigger>
|
||||||
|
<MultiDataTrigger.Conditions>
|
||||||
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="False"/>
|
||||||
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
|
||||||
|
</MultiDataTrigger.Conditions>
|
||||||
|
<Setter Property="Background" TargetName="templateRoot" Value="{DynamicResource ComboBox.Disabled.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{DynamicResource ComboBox.Disabled.Border}"/>
|
||||||
|
</MultiDataTrigger>
|
||||||
|
<MultiDataTrigger>
|
||||||
|
<MultiDataTrigger.Conditions>
|
||||||
|
<Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="False"/>
|
||||||
|
<Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="True"/>
|
||||||
|
</MultiDataTrigger.Conditions>
|
||||||
|
<Setter Property="Background" TargetName="templateRoot" Value="{DynamicResource ComboBox.Disabled.Editable.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="templateRoot" Value="{DynamicResource ComboBox.Disabled.Editable.Border}"/>
|
||||||
|
<Setter Property="Background" TargetName="splitBorder" Value="{DynamicResource ComboBox.Disabled.Editable.Button.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" TargetName="splitBorder" Value="{DynamicResource ComboBox.Disabled.Editable.Button.Border}"/>
|
||||||
|
</MultiDataTrigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
<ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
|
||||||
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="True">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource Mode=TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
|
||||||
|
<theme:SystemDropShadowChrome x:Name="shadow" Color="{DynamicResource EgalwareTransparentColor}" MinWidth="{Binding ActualWidth, ElementName=templateRoot}" MaxHeight="{TemplateBinding MaxDropDownHeight}">
|
||||||
|
<Border x:Name="dropDownBorder" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1">
|
||||||
|
<ScrollViewer x:Name="DropDownScrollViewer">
|
||||||
|
<Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
|
||||||
|
<Canvas x:Name="canvas" HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
|
||||||
|
<Rectangle x:Name="opaqueRect" Fill="{Binding Background, ElementName=dropDownBorder}" Height="{Binding ActualHeight, ElementName=dropDownBorder}" Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
|
||||||
|
</Canvas>
|
||||||
|
<ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||||
|
</Grid>
|
||||||
|
</ScrollViewer>
|
||||||
|
</Border>
|
||||||
|
</theme:SystemDropShadowChrome>
|
||||||
|
</Popup>
|
||||||
|
<ToggleButton x:Name="toggleButton" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
|
||||||
|
<Border x:Name="border" Background="{StaticResource TextBox.Static.Background}" Margin="{TemplateBinding BorderThickness}">
|
||||||
|
<TextBox x:Name="PART_EditableTextBox" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="{TemplateBinding Padding}" Style="{StaticResource ComboBoxEditableTextBox}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsEnabled" Value="False">
|
||||||
|
<Setter Property="Opacity" TargetName="border" Value="0.56"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource EgalwareBlack}"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="True">
|
||||||
|
<Setter Property="Margin" TargetName="shadow" Value="0,0,5,5"/>
|
||||||
|
<Setter Property="Color" TargetName="shadow" Value="#71000000"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="HasItems" Value="false">
|
||||||
|
<Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
|
||||||
|
</Trigger>
|
||||||
|
<MultiTrigger>
|
||||||
|
<MultiTrigger.Conditions>
|
||||||
|
<Condition Property="IsGrouping" Value="true"/>
|
||||||
|
</MultiTrigger.Conditions>
|
||||||
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
|
||||||
|
</MultiTrigger>
|
||||||
|
<Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
|
||||||
|
<Setter Property="Canvas.Top" TargetName="opaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
|
||||||
|
<Setter Property="Canvas.Left" TargetName="opaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
<ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
|
||||||
|
<Grid x:Name="templateRoot" SnapsToDevicePixels="true">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="1" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
|
||||||
|
<theme:SystemDropShadowChrome x:Name="shadow" Color="{DynamicResource EgalwareTransparentColor}" MinWidth="{Binding ActualWidth, ElementName=templateRoot}" MaxHeight="{TemplateBinding MaxDropDownHeight}">
|
||||||
|
<Border x:Name="dropDownBorder"
|
||||||
|
Background="{DynamicResource ComboBox.Static.Background}"
|
||||||
|
BorderBrush="{DynamicResource ComboBox.Static.Border}"
|
||||||
|
BorderThickness="1">
|
||||||
|
<ScrollViewer x:Name="DropDownScrollViewer">
|
||||||
|
<Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
|
||||||
|
<Canvas x:Name="canvas" HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
|
||||||
|
<Rectangle x:Name="opaqueRect" Fill="{Binding Background, ElementName=dropDownBorder}" Height="{Binding ActualHeight, ElementName=dropDownBorder}" Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
|
||||||
|
</Canvas>
|
||||||
|
<ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||||
|
</Grid>
|
||||||
|
</ScrollViewer>
|
||||||
|
</Border>
|
||||||
|
</theme:SystemDropShadowChrome>
|
||||||
|
</Popup>
|
||||||
|
<ToggleButton x:Name="toggleButton" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
|
||||||
|
<ContentPresenter x:Name="contentPresenter" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" Content="{TemplateBinding SelectionBoxItem}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="false" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||||
|
</Grid>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="True">
|
||||||
|
<Setter Property="Margin" TargetName="shadow" Value="0,0,5,5"/>
|
||||||
|
<Setter Property="Color" TargetName="shadow" Value="#71000000"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="HasItems" Value="False">
|
||||||
|
<Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
|
||||||
|
</Trigger>
|
||||||
|
<MultiTrigger>
|
||||||
|
<MultiTrigger.Conditions>
|
||||||
|
<Condition Property="IsGrouping" Value="True"/>
|
||||||
|
</MultiTrigger.Conditions>
|
||||||
|
<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
|
||||||
|
</MultiTrigger>
|
||||||
|
<Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
|
||||||
|
<Setter Property="Canvas.Top" TargetName="opaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
|
||||||
|
<Setter Property="Canvas.Left" TargetName="opaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
|
||||||
|
<Style x:Key="DoorParamsCmBx" TargetType="{x:Type ComboBox}">
|
||||||
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource FocusVisual}"/>
|
||||||
|
<Setter Property="Background" Value="{DynamicResource ComboBox.Static.Background}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBox.Static.Border}"/>
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource ComboBox.Static.Foreground}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="{DynamicResource DoorParamsCmBxThickness}"/>
|
||||||
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
||||||
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||||
|
<Setter Property="Padding" Value="6,3,5,3"/>
|
||||||
|
<Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
|
||||||
|
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
|
||||||
|
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
|
||||||
|
<Setter Property="Height" Value="22"/>
|
||||||
|
<Setter Property="Template" Value="{StaticResource ComboBoxTemplate}"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsEditable" Value="True">
|
||||||
|
<Setter Property="IsTabStop" Value="False"/>
|
||||||
|
<Setter Property="Padding" Value="2"/>
|
||||||
|
<Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="DoorEdgeParamsCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="ItemContainerStyle">
|
||||||
|
<Setter.Value>
|
||||||
|
<Style TargetType="{x:Type ComboBoxItem}">
|
||||||
|
<Setter Property="Visibility" Value="{Binding IsActive}"/>
|
||||||
|
</Style>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Setter Property="ItemTemplate">
|
||||||
|
<Setter.Value>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Name}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="JambsParamsCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Height" Value="Auto"/>
|
||||||
|
<Setter Property="MaxWidth" Value="120"/>
|
||||||
|
<Setter Property="Margin" Value="0.4,2,10,3.2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="SelectCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Height" Value="24"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="Margin" Value="5,0,5,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="HardwarePageCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="0,2,0,2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="CurrHardwareCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Height" Value="Auto"/>
|
||||||
|
<Setter Property="Margin" Value="0.4,2,39.6,3.2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="LuaCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="0,2,2,2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="ParamOnOffCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="0,0,0,2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="LockedgeCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="0.4,2,30,4"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="AllignGropBoxCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Height" Value="Auto"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||||
|
<Setter Property="Width" Value="100"/>
|
||||||
|
<Setter Property="Margin" Value="2,0,0,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="CurrPartCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="MaxWidth" Value="120"/>
|
||||||
|
<Setter Property="Margin" Value="-7,0,38,2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="MaterialsCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="MaxWidth" Value="120"/>
|
||||||
|
<Setter Property="Margin" Value="-7,2,38,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="PropertiesCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="MaxWidth" Value="120"/>
|
||||||
|
<Setter Property="Margin" Value="18,0,12,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="SwingListCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="5,0,30,5"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="LockEdgeProfileCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="5,0,15,5"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="BrandListCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="0,2,15,2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="TypeListCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="Margin" Value="0,2,15,2"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="DimensioningCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Height" Value="25"/>
|
||||||
|
<Setter Property="Margin" Value="10,0,0,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="SwingCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="5,0,30,5"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="LockEdgeCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="5,0,40,5"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="DoorNumberCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="15,2.5,10,2.5"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="FrameEdgeCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Margin" Value="5,2.5,10,2.5"/>
|
||||||
|
<Setter Property="ItemContainerStyle">
|
||||||
|
<Setter.Value>
|
||||||
|
<Style TargetType="ComboBoxItem">
|
||||||
|
<Setter Property="Visibility" Value="{Binding IsActive}"/>
|
||||||
|
</Style>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Setter Property="ItemTemplate">
|
||||||
|
<Setter.Value>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Name}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="SnapPointTypeCmBx" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DoorParamsCmBx}">
|
||||||
|
<Setter Property="Width" Value="130"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion ComboBoxStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region TabControl Style-->
|
||||||
|
|
||||||
|
<Style x:Key="GeneralOptionTabControl" TargetType="{x:Type TabControl}">
|
||||||
|
<Setter Property="Margin" Value="0,3,0,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion TabControl Style-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region CheckBoxStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="AllignGropBoxChBx" TargetType="{x:Type CheckBox}" BasedOn="{StaticResource GeneralCheckBox}">
|
||||||
|
<Setter Property="Margin" Value="2,0,0.2,0"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion CheckBoxStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region HardwareExpander Style-->
|
||||||
|
|
||||||
|
<Style x:Key="HardwareExpander" TargetType="{x:Type Expander}">
|
||||||
|
<Setter Property="IsExpanded" Value="True"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type Expander}">
|
||||||
|
<Grid>
|
||||||
|
<GroupBox Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
|
<GroupBox.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<CheckBox IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource AncestorType={x:Type Expander}}}"
|
||||||
|
Content="{TemplateBinding Header}" Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
|
<TextBlock Text="{Binding TemplateName}" Margin="5,0,0,0"
|
||||||
|
Style="{DynamicResource HardwareTxBx}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</GroupBox.Header>
|
||||||
|
<ContentControl Content="{TemplateBinding Content}"/>
|
||||||
|
</GroupBox>
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsExpanded" Value="False">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type Expander}">
|
||||||
|
<Border BorderBrush="{DynamicResource EgalwareGeyser}" Background="{DynamicResource EgalwareTransparent}" BorderThickness="{DynamicResource GroupBox_BorderThickness}" CornerRadius="3" Margin="1,1,1,0">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<CheckBox IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource AncestorType={x:Type Expander}}}"
|
||||||
|
Content="{TemplateBinding Header}"
|
||||||
|
Margin="9,5,5,5" Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
|
<TextBlock Text="{Binding TemplateName}" Margin="5,3,0,0"
|
||||||
|
Style="{DynamicResource HardwareTxBx}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion HardwareExpander Style-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
<!--#region LineStyle-->
|
||||||
|
|
||||||
|
<Style x:Key="PartPageLine" TargetType="{x:Type Line}">
|
||||||
|
<Setter Property="Stroke" Value="{StaticResource EgalwareLightGray}"/>
|
||||||
|
<Setter Property="StrokeThickness" Value="0.1"/>
|
||||||
|
<Setter Property="X1" Value="10"/>
|
||||||
|
<Setter Property="X2" Value="400"/>
|
||||||
|
<Setter Property="Y1" Value="70"/>
|
||||||
|
<Setter Property="Y2" Value="70"/>
|
||||||
|
<Setter Property="Margin" Value="0,-60,0,0"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="True">
|
||||||
|
<Setter Property="Stroke" Value="{Binding ErrorColor}"/>
|
||||||
|
<Setter Property="StrokeThickness" Value="2"/>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding IsError}" Value="False">
|
||||||
|
<Setter Property="Stroke" Value="{Binding BorderColor}"/>
|
||||||
|
<Setter Property="StrokeThickness" Value="{Binding BorderThickness}"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--#endregion LineStyle-->
|
||||||
|
|
||||||
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
||||||
@@ -3,15 +3,15 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
||||||
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}"
|
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="True"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="True"
|
||||||
IsMinimizable="True" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
IsMinimizable="True" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
Height="800" Width="1500">
|
Height="800" Width="1500">
|
||||||
|
|
||||||
<DockPanel Margin="5">
|
<DockPanel Margin="5">
|
||||||
<WebBrowser x:Name="DoorBrowser"/>
|
<WebBrowser x:Name="DoorBrowser"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -2,9 +2,15 @@
|
|||||||
|
|
||||||
Public Class GuideV
|
Public Class GuideV
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_GuideVM As GuideVM
|
Private m_GuideVM As GuideVM
|
||||||
Public Shared m_Language As String
|
Public Shared m_Language As String
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(Owner As Window, GuideVM As GuideVM)
|
Sub New(Owner As Window, GuideVM As GuideVM)
|
||||||
MyBase.New(Owner)
|
MyBase.New(Owner)
|
||||||
' This call is required by the designer.
|
' This call is required by the designer.
|
||||||
@@ -43,4 +49,6 @@ Public Class GuideV
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Public Class GuideVM
|
||||||
Imports System.ComponentModel
|
|
||||||
Imports System.Windows.Forms
|
#Region "FIELDS & PROPERTIES"
|
||||||
Imports EgtUILib
|
|
||||||
|
|
||||||
Public Class GuideVM
|
|
||||||
' se non è stata selezionato ancora nulla allora faccio partire il menu principale
|
' se non è stata selezionato ancora nulla allora faccio partire il menu principale
|
||||||
Public Shared m_AddressGuide As String = "Index"
|
Public Shared m_AddressGuide As String = "Index"
|
||||||
|
|
||||||
@@ -13,4 +11,6 @@ Public Class GuideVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,15 +1,133 @@
|
|||||||
Imports System.ComponentModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.IO
|
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Public Class GeometryListConfigVM
|
Public Class GeometryListConfigVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Dim m_HardwareTemp As Hardware
|
Dim m_HardwareTemp As Hardware
|
||||||
|
|
||||||
#Region "MESSAGES"
|
#Region "GEOMETRY NAME"
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private m_ColorText As SolidColorBrush = DirectCast(New BrushConverter().ConvertFrom("Black"), SolidColorBrush)
|
||||||
|
Public Property ColorText As SolidColorBrush
|
||||||
|
Get
|
||||||
|
Return m_ColorText
|
||||||
|
End Get
|
||||||
|
Set(value As SolidColorBrush)
|
||||||
|
m_ColorText = value
|
||||||
|
NotifyPropertyChanged(NameOf(ColorText))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_GeometryName As String = "Geometry"
|
||||||
|
Public Property GeometryName As String
|
||||||
|
Get
|
||||||
|
Return m_GeometryName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_GeometryName = Trim(value)
|
||||||
|
If Not GetWorkListGeometryName(m_SelHardware.DDFName) Then
|
||||||
|
If Not IsNothing(Map.refOptionsVM) AndAlso Map.refOptionsVM.SelectedTheme.Name = "Default" Then
|
||||||
|
ColorText = DirectCast(New BrushConverter().ConvertFrom(OptionModule.ColorNewGeometry), SolidColorBrush)
|
||||||
|
Else
|
||||||
|
ColorText = DirectCast(New BrushConverter().ConvertFrom("White"), SolidColorBrush)
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If Not IsNothing(Map.refOptionsVM) AndAlso Map.refOptionsVM.SelectedTheme.Name = "Default" Then
|
||||||
|
ColorText = DirectCast(New BrushConverter().ConvertFrom("Black"), SolidColorBrush)
|
||||||
|
Else
|
||||||
|
ColorText = DirectCast(New BrushConverter().ConvertFrom("White"), SolidColorBrush)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
NotifyPropertyChanged(NameOf(GeometryName))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_GeometryNameList As New ObservableCollection(Of String)
|
||||||
|
Public Property GeometryNameList As ObservableCollection(Of String)
|
||||||
|
Get
|
||||||
|
Return m_GeometryNameList
|
||||||
|
End Get
|
||||||
|
Set(value As ObservableCollection(Of String))
|
||||||
|
m_GeometryNameList = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#End Region ' Geommetry Name
|
||||||
|
|
||||||
|
#Region "HARDWARE LIST"
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private m_HardwareList As New ObservableCollection(Of CompoType)
|
||||||
|
Private m_SelHardware As CompoType
|
||||||
|
|
||||||
|
Private m_GraphicHardwareList As New ObservableCollection(Of String)
|
||||||
|
Public Property GraphicHardwareList As ObservableCollection(Of String)
|
||||||
|
Get
|
||||||
|
Return m_GraphicHardwareList
|
||||||
|
End Get
|
||||||
|
Set(value As ObservableCollection(Of String))
|
||||||
|
m_GraphicHardwareList = value
|
||||||
|
NotifyPropertyChanged(NameOf(GraphicHardwareList))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_SelGraphicHardware As String
|
||||||
|
Public Property SelGraphicHardware As String
|
||||||
|
Get
|
||||||
|
Return m_SelGraphicHardware
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_SelGraphicHardware = value
|
||||||
|
For Each Item In m_HardwareList
|
||||||
|
If Item.Name = m_SelGraphicHardware Then
|
||||||
|
m_SelHArdware = Item
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
LoadParamBySelecetedHardware()
|
||||||
|
GetWorkListGeometryName(m_SelHardware.DDFName)
|
||||||
|
NotifyPropertyChanged(NameOf(SelGraphicHardware))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#End Region ' Hardware List
|
||||||
|
|
||||||
|
#Region "PARAMETER LIST"
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
'Private m_Parameter As CompoParam
|
||||||
|
|
||||||
|
Private m_ParameterList As New ObservableCollection(Of ItemGeometry)
|
||||||
|
Public Property ParameterList As ObservableCollection(Of ItemGeometry)
|
||||||
|
Get
|
||||||
|
Return m_ParameterList
|
||||||
|
End Get
|
||||||
|
Set(value As ObservableCollection(Of ItemGeometry))
|
||||||
|
m_ParameterList = value
|
||||||
|
NotifyPropertyChanged(NameOf(ParameterList))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_SelParameter As String
|
||||||
|
Private m_CurrentWork() As String
|
||||||
|
|
||||||
|
#End Region ' Fileds & Properties
|
||||||
|
|
||||||
|
#End Region ' Parameter List
|
||||||
|
|
||||||
|
#Region "Messages"
|
||||||
|
|
||||||
Public ReadOnly Property Title As String
|
Public ReadOnly Property Title As String
|
||||||
Get
|
Get
|
||||||
@@ -44,105 +162,11 @@ Public Class GeometryListConfigVM
|
|||||||
|
|
||||||
#End Region ' Messages
|
#End Region ' Messages
|
||||||
|
|
||||||
#Region "GEOMETRY NAME"
|
Private m_CmdSave As ICommand
|
||||||
|
|
||||||
Private m_ColorText As SolidColorBrush = DirectCast(New BrushConverter().ConvertFrom("Black"), SolidColorBrush)
|
#End Region ' Fields & Properties
|
||||||
Public Property ColorText As SolidColorBrush
|
|
||||||
Get
|
|
||||||
Return m_ColorText
|
|
||||||
End Get
|
|
||||||
Set(value As SolidColorBrush)
|
|
||||||
m_ColorText = value
|
|
||||||
NotifyPropertyChanged("ColorText")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_GeometryName As String = "Geometry"
|
#Region "METHODS"
|
||||||
Public Property GeometryName As String
|
|
||||||
Get
|
|
||||||
Return m_GeometryName
|
|
||||||
End Get
|
|
||||||
Set(value As String)
|
|
||||||
m_GeometryName = Trim(value)
|
|
||||||
If Not GetWorkListGeometryName(m_SelHardware.DDFName) Then
|
|
||||||
ColorText = DirectCast(New BrushConverter().ConvertFrom(OptionModule.ColorNewGeometry), SolidColorBrush)
|
|
||||||
Else
|
|
||||||
ColorText = DirectCast(New BrushConverter().ConvertFrom("Black"), SolidColorBrush)
|
|
||||||
End If
|
|
||||||
NotifyPropertyChanged("GeometryName")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_GeometryNameList As New ObservableCollection(Of String)
|
|
||||||
Public Property GeometryNameList As ObservableCollection(Of String)
|
|
||||||
Get
|
|
||||||
Return m_GeometryNameList
|
|
||||||
End Get
|
|
||||||
Set(value As ObservableCollection(Of String))
|
|
||||||
m_GeometryNameList = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region ' Geommetry Name
|
|
||||||
|
|
||||||
#Region "HARDWARE LIST"
|
|
||||||
|
|
||||||
Private m_HardwareList As New ObservableCollection(Of CompoType)
|
|
||||||
Private m_SelHardware As CompoType
|
|
||||||
|
|
||||||
Private m_GraphicHardwareList As New ObservableCollection(Of String)
|
|
||||||
Public Property GraphicHardwareList As ObservableCollection(Of String)
|
|
||||||
Get
|
|
||||||
Return m_GraphicHardwareList
|
|
||||||
End Get
|
|
||||||
Set(value As ObservableCollection(Of String))
|
|
||||||
m_GraphicHardwareList = value
|
|
||||||
NotifyPropertyChanged("GraphicHardwareList")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_SelGraphicHardware As String
|
|
||||||
Public Property SelGraphicHardware As String
|
|
||||||
Get
|
|
||||||
Return m_SelGraphicHardware
|
|
||||||
End Get
|
|
||||||
Set(value As String)
|
|
||||||
m_SelGraphicHardware = value
|
|
||||||
For Each Item In m_HardwareList
|
|
||||||
If Item.Name = m_SelGraphicHardware Then
|
|
||||||
m_SelHArdware = Item
|
|
||||||
Exit For
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
LoadParamBySelecetedHardware()
|
|
||||||
GetWorkListGeometryName(m_SelHardware.DDFName)
|
|
||||||
NotifyPropertyChanged("SelGraphicHardware")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region ' Hardware List
|
|
||||||
|
|
||||||
#Region "PARAMETER LIST"
|
|
||||||
|
|
||||||
'Private m_Parameter As CompoParam
|
|
||||||
|
|
||||||
Private m_ParameterList As New ObservableCollection(Of ItemGeometry)
|
|
||||||
Public Property ParameterList As ObservableCollection(Of ItemGeometry)
|
|
||||||
Get
|
|
||||||
Return m_ParameterList
|
|
||||||
End Get
|
|
||||||
Set(value As ObservableCollection(Of ItemGeometry))
|
|
||||||
m_ParameterList = value
|
|
||||||
NotifyPropertyChanged("ParameterList")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_SelParameter As String
|
|
||||||
Private m_CurrentWork() As String
|
|
||||||
|
|
||||||
#End Region ' Parameter List
|
|
||||||
|
|
||||||
#Region "METODI"
|
|
||||||
|
|
||||||
Public Function LoadNameComboBoxLua(LocalHardware As Hardware) As Boolean
|
Public Function LoadNameComboBoxLua(LocalHardware As Hardware) As Boolean
|
||||||
' prima di ricaricare la lista deve essere svuotata
|
' prima di ricaricare la lista deve essere svuotata
|
||||||
@@ -236,11 +260,35 @@ Public Class GeometryListConfigVM
|
|||||||
Return bNameExists
|
Return bNameExists
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region
|
#End Region ' Methods
|
||||||
|
|
||||||
Private m_CmdSave As ICommand
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
#Region "SAVE"
|
Sub New(ParamName As String)
|
||||||
|
' carico la lista degli Hardware
|
||||||
|
For Each Element In Map.refCompoPanelVM.CompoTypeList
|
||||||
|
m_HardwareList.Add(Element)
|
||||||
|
m_GraphicHardwareList.Add(Element.Name)
|
||||||
|
m_HardwareTemp = Map.refHardwarePageVM.CurrHardware
|
||||||
|
If Map.refHardwarePageVM.CurrHardware.HardwareGeneral.Name = Element.Name Then
|
||||||
|
' selziono il nome da mostrare in grafica
|
||||||
|
m_SelGraphicHardware = m_GraphicHardwareList(m_GraphicHardwareList.Count - 1)
|
||||||
|
m_SelHardware = Element
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
If Not String.IsNullOrEmpty(ParamName) Then
|
||||||
|
GeometryName = ParamName
|
||||||
|
End If
|
||||||
|
' carico la lista dei Parametri
|
||||||
|
LoadNameComboBoxLua(Map.refHardwarePageVM.CurrHardware)
|
||||||
|
GetWorkListGeometryName(m_HardwareTemp.HardwareGeneral.DDFName)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "SaveCommand"
|
||||||
|
|
||||||
Public ReadOnly Property SaveCommand As ICommand
|
Public ReadOnly Property SaveCommand As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -369,33 +417,17 @@ Public Class GeometryListConfigVM
|
|||||||
AddNewGeometryNameList()
|
AddNewGeometryNameList()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Save
|
#End Region ' SaveCommand
|
||||||
|
|
||||||
Sub New(ParamName As String)
|
#End Region ' Commands
|
||||||
' carico la lista degli Hardware
|
|
||||||
For Each Element In Map.refCompoPanelVM.CompoTypeList
|
|
||||||
m_HardwareList.Add(Element)
|
|
||||||
m_GraphicHardwareList.Add(Element.Name)
|
|
||||||
m_HardwareTemp = Map.refHardwarePageVM.CurrHardware
|
|
||||||
If Map.refHardwarePageVM.CurrHardware.HardwareGeneral.Name = Element.Name Then
|
|
||||||
' selziono il nome da mostrare in grafica
|
|
||||||
m_SelGraphicHardware = m_GraphicHardwareList(m_GraphicHardwareList.Count - 1)
|
|
||||||
m_SelHardware = Element
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
If Not String.IsNullOrEmpty(ParamName) Then
|
|
||||||
GeometryName = ParamName
|
|
||||||
End If
|
|
||||||
' carico la lista dei Parametri
|
|
||||||
LoadNameComboBoxLua(Map.refHardwarePageVM.CurrHardware)
|
|
||||||
GetWorkListGeometryName(m_HardwareTemp.HardwareGeneral.DDFName)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class ItemGeometry
|
Public Class ItemGeometry
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_NameDDF As String = String.Empty
|
Private m_NameDDF As String = String.Empty
|
||||||
Public ReadOnly Property NameDDF As String
|
Public ReadOnly Property NameDDF As String
|
||||||
Get
|
Get
|
||||||
@@ -410,7 +442,7 @@ Public Class ItemGeometry
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_IsChecked = value
|
m_IsChecked = value
|
||||||
NotifyPropertyChanged("IsChecked")
|
NotifyPropertyChanged(NameOf(IsChecked))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -421,12 +453,18 @@ Public Class ItemGeometry
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_IsEnable = value
|
m_IsEnable = value
|
||||||
NotifyPropertyChanged("IsEnable")
|
NotifyPropertyChanged(NameOf(IsEnable))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sNameDDF As String)
|
Sub New(sNameDDF As String)
|
||||||
m_NameDDF = sNameDDF
|
m_NameDDF = sNameDDF
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="GeometryListConfigV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="GeometryListConfigV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="clr-namespace:EgtDOORCreator"
|
xmlns:local="clr-namespace:EgtDOORCreator"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
||||||
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
Height="225" Width="350">
|
||||||
Height="225" Width="350">
|
|
||||||
|
|
||||||
<Grid Margin="2">
|
<Grid Margin="2">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
@@ -24,15 +23,14 @@
|
|||||||
|
|
||||||
<!--<RowDefinition Height="1*"/>-->
|
<!--<RowDefinition Height="1*"/>-->
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding GeometryName, UpdateSourceTrigger=PropertyChanged}"
|
<TextBlock Grid.Row="0"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Grid.Column="0"
|
||||||
Foreground="{Binding ColorText}"
|
Text="{Binding GeometryNameMsg}"
|
||||||
Padding="0,2.5,0, 0"
|
Style="{DynamicResource GeometryListConfigTxBl}"/>
|
||||||
Margin="5,0,15,5"/>
|
<TextBox Grid.Row="0"
|
||||||
<TextBlock Grid.Column="0" Grid.Row="0"
|
Grid.Column="1"
|
||||||
Text="{Binding GeometryNameMsg}" VerticalAlignment="Center"
|
Text="{Binding GeometryName, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Margin="15,0,0,0"
|
Style="{DynamicResource GeometryListConfigTxBx}"/>
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
|
||||||
|
|
||||||
<!--<ComboBox ItemsSource="{Binding GraphicHardwareList}"
|
<!--<ComboBox ItemsSource="{Binding GraphicHardwareList}"
|
||||||
Grid.Column="1" Grid.Row="1"
|
Grid.Column="1" Grid.Row="1"
|
||||||
@@ -40,33 +38,38 @@
|
|||||||
SelectedItem="{Binding SelGraphicHardware}"
|
SelectedItem="{Binding SelGraphicHardware}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
Style="{StaticResource DoorParamsCmBx}"
|
||||||
IsEnabled="False"/>-->
|
IsEnabled="False"/>-->
|
||||||
<TextBox Grid.Column="1" Grid.Row="1"
|
<TextBox Grid.Row="1"
|
||||||
Margin="5,0,15,5" VerticalAlignment="Center"
|
Grid.Column="1"
|
||||||
Padding="0,2.5,0, 2.5"
|
Text="{Binding SelGraphicHardware}"
|
||||||
IsEnabled="False"
|
Style="{DynamicResource SelGraphicHardwareTxBx}"/>
|
||||||
Text="{Binding SelGraphicHardware}"/>
|
<!--<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding TypeHardware}"
|
||||||
<!--<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding TypeHardware}"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{StaticResource DoorParamsTxBx}"
|
||||||
Margin="5,0,15,5"/>-->
|
Margin="5,0,15,5"/>-->
|
||||||
<TextBlock Grid.Column="0" Grid.Row="1" Text="{Binding TypeHardwareMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="1"
|
||||||
Margin="15,0,15,5"
|
Grid.Column="0"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding TypeHardwareMsg}"
|
||||||
<!--<ListBox Grid.Column="1" Grid.Row="2" ItemsSource="{Binding ParameterList}">
|
Style="{StaticResource TypeHardwareTxBl}"/>
|
||||||
|
<!--<ListBox Grid.Column="1" Grid.Row="2" ItemsSource="{Binding ParameterList}">
|
||||||
|
|
||||||
</ListBox>-->
|
</ListBox>-->
|
||||||
<ListBox Grid.Column="1" Grid.Row="2" Margin="5,5,15,5"
|
<ListBox Grid.Row="2"
|
||||||
ItemsSource="{Binding ParameterList}">
|
Grid.Column="1"
|
||||||
<ListBox.ItemTemplate>
|
ItemsSource="{Binding ParameterList}"
|
||||||
<DataTemplate>
|
Style="{DynamicResource ParameterList}">
|
||||||
<StackPanel Orientation="Horizontal">
|
<ListBox.ItemTemplate>
|
||||||
<CheckBox IsChecked="{Binding Path=IsChecked}" IsEnabled="{Binding Path=IsEnable}"/>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=NameDDF}" Margin="10,0,0,0"/>
|
<StackPanel Orientation="Horizontal">
|
||||||
</StackPanel>
|
<CheckBox IsChecked="{Binding Path=IsChecked}"
|
||||||
</DataTemplate>
|
IsEnabled="{Binding Path=IsEnable}"
|
||||||
</ListBox.ItemTemplate>
|
Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
</ListBox>
|
<TextBlock Text="{Binding Path=NameDDF}"
|
||||||
|
Style="{DynamicResource ParameterListTxBl}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.ItemTemplate>
|
||||||
|
</ListBox>
|
||||||
|
|
||||||
<!--<ComboBox ItemsSource="{Binding ParameterList}" Margin="5,0,15,5"
|
<!--<ComboBox ItemsSource="{Binding ParameterList}" Margin="5,0,15,5"
|
||||||
Grid.Column="1" Grid.Row="2"
|
Grid.Column="1" Grid.Row="2"
|
||||||
SelectedItem="{Binding SelParameter}"
|
SelectedItem="{Binding SelParameter}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
Style="{StaticResource DoorParamsCmBx}"
|
||||||
@@ -74,9 +77,10 @@
|
|||||||
<!--<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Parameter}"
|
<!--<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Parameter}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{StaticResource DoorParamsTxBx}"
|
||||||
Margin="5,0,15,5"/>-->
|
Margin="5,0,15,5"/>-->
|
||||||
<TextBlock Grid.Column="0" Grid.Row="2" Text="{Binding ParameterMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="2"
|
||||||
Margin="15,0,0,0"
|
Grid.Column="0"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding ParameterMsg}"
|
||||||
|
Style="{DynamicResource GeometryListConfigTxBl}"/>
|
||||||
<!--<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding PO}"
|
<!--<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding PO}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{StaticResource DoorParamsTxBx}"
|
||||||
Margin="5,0,15,5"/>
|
Margin="5,0,15,5"/>
|
||||||
@@ -95,11 +99,11 @@
|
|||||||
Style="{StaticResource DoorParamsCmBx}"
|
Style="{StaticResource DoorParamsCmBx}"
|
||||||
ItemsSource="{Binding ConfigurationList}"
|
ItemsSource="{Binding ConfigurationList}"
|
||||||
SelectedItem="{Binding Configuration}"/>-->
|
SelectedItem="{Binding Configuration}"/>-->
|
||||||
<Button Grid.Column="1" Grid.Row="3" Margin="70,2,30,2"
|
<Button Grid.Row="3"
|
||||||
Content="{Binding SaveMsg}"
|
Grid.Column="1"
|
||||||
Command="{Binding SaveCommand}"
|
Content="{Binding SaveMsg}"
|
||||||
IsDefault="True"
|
Command="{Binding SaveCommand}"
|
||||||
IsCancel="True"/>
|
Style="{DynamicResource ParameterListBtn}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
Public Class GeometryListConfigV
|
Public Class GeometryListConfigV
|
||||||
|
|
||||||
Private m_GeometryListVM As GeometryListConfigVM
|
Private m_GeometryListVM As GeometryListConfigVM
|
||||||
|
|
||||||
Sub New(Owner As Window, GeometryListVM As GeometryListConfigVM)
|
Sub New(Owner As Window, GeometryListVM As GeometryListConfigVM)
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ Public Class Hardware
|
|||||||
'Map.refSceneManagerVM.RefreshBtn()
|
'Map.refSceneManagerVM.RefreshBtn()
|
||||||
End If
|
End If
|
||||||
' termine della selezione
|
' termine della selezione
|
||||||
NotifyPropertyChanged("SelBrand")
|
NotifyPropertyChanged(NameOf(SelBrand))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ Public Class Hardware
|
|||||||
Set(value As ObservableCollection(Of String))
|
Set(value As ObservableCollection(Of String))
|
||||||
m_TemplateList = value
|
m_TemplateList = value
|
||||||
DoRefresh = False
|
DoRefresh = False
|
||||||
NotifyPropertyChanged("TemplateList")
|
NotifyPropertyChanged(NameOf(TemplateList))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -181,9 +181,9 @@ Public Class Hardware
|
|||||||
If SaveControl() = SaveResult.nCancel Then
|
If SaveControl() = SaveResult.nCancel Then
|
||||||
Application.Current.Dispatcher.BeginInvoke(New Action(Sub()
|
Application.Current.Dispatcher.BeginInvoke(New Action(Sub()
|
||||||
m_SelTemplate = sLastTemplate
|
m_SelTemplate = sLastTemplate
|
||||||
NotifyPropertyChanged("SelTemplate")
|
NotifyPropertyChanged(NameOf(SelTemplate))
|
||||||
End Sub), System.Windows.Threading.DispatcherPriority.ContextIdle, Nothing)
|
End Sub), System.Windows.Threading.DispatcherPriority.ContextIdle, Nothing)
|
||||||
NotifyPropertyChanged("TemplateList")
|
NotifyPropertyChanged(NameOf(TemplateList))
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -203,7 +203,7 @@ Public Class Hardware
|
|||||||
RefreshTemplateListEgtDOORCreator()
|
RefreshTemplateListEgtDOORCreator()
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("VisibilityType")
|
NotifyPropertyChanged(NameOf(VisibilityType))
|
||||||
End If
|
End If
|
||||||
FirstSelection = True ' Comunico grafica di eseguire lo zoom
|
FirstSelection = True ' Comunico grafica di eseguire lo zoom
|
||||||
ReadChapterTemplate() ' Rileggo i parametri del SetdTemplate
|
ReadChapterTemplate() ' Rileggo i parametri del SetdTemplate
|
||||||
@@ -211,7 +211,7 @@ Public Class Hardware
|
|||||||
ReadTemplate()
|
ReadTemplate()
|
||||||
' Map.refSceneManagerVM.RefreshBtn()
|
' Map.refSceneManagerVM.RefreshBtn()
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("SelTemplate")
|
NotifyPropertyChanged(NameOf(SelTemplate))
|
||||||
LoadSwingFromTemplate()
|
LoadSwingFromTemplate()
|
||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
' NotifyPropertyChanged("TemplateList")
|
' NotifyPropertyChanged("TemplateList")
|
||||||
@@ -240,7 +240,7 @@ Public Class Hardware
|
|||||||
End Get
|
End Get
|
||||||
Set(value As List(Of TypeHardware))
|
Set(value As List(Of TypeHardware))
|
||||||
m_TypeList = value
|
m_TypeList = value
|
||||||
NotifyPropertyChanged("TypeList")
|
NotifyPropertyChanged(NameOf(TypeList))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -256,7 +256,7 @@ Public Class Hardware
|
|||||||
m_SelType = value
|
m_SelType = value
|
||||||
' se cambiato carico il suo progetto con quotature/suggerimenti
|
' se cambiato carico il suo progetto con quotature/suggerimenti
|
||||||
If bChanged Then Map.refHardwareHelpSceneHostV.LoadHelpProject()
|
If bChanged Then Map.refHardwareHelpSceneHostV.LoadHelpProject()
|
||||||
NotifyPropertyChanged("SelType")
|
NotifyPropertyChanged(NameOf(SelType))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -267,7 +267,7 @@ Public Class Hardware
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Visibility)
|
Set(value As Visibility)
|
||||||
m_VisibilityType = value
|
m_VisibilityType = value
|
||||||
NotifyPropertyChanged("VisibilityType")
|
NotifyPropertyChanged(NameOf(VisibilityType))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -280,7 +280,7 @@ Public Class Hardware
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_IsEnableType = value
|
m_IsEnableType = value
|
||||||
NotifyPropertyChanged("IsEnableType")
|
NotifyPropertyChanged(NameOf(IsEnableType))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -502,7 +502,7 @@ Public Class Hardware
|
|||||||
Dim CurrFolder = New CompoBrandDir(m_HardwareGeneral.Path, Path.GetFileName(m_HardwareGeneral.Path))
|
Dim CurrFolder = New CompoBrandDir(m_HardwareGeneral.Path, Path.GetFileName(m_HardwareGeneral.Path))
|
||||||
m_HardwareGeneral.HardwareFolderList.Add(CurrFolder)
|
m_HardwareGeneral.HardwareFolderList.Add(CurrFolder)
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("BrandList")
|
NotifyPropertyChanged(NameOf(BrandList))
|
||||||
' carico la lista dei Type
|
' carico la lista dei Type
|
||||||
bTypeListExist = LoadType()
|
bTypeListExist = LoadType()
|
||||||
If Not bTypeListExist Then
|
If Not bTypeListExist Then
|
||||||
@@ -516,7 +516,7 @@ Public Class Hardware
|
|||||||
Dim ErrorList As String = String.Empty
|
Dim ErrorList As String = String.Empty
|
||||||
If EgtUILib.GetPrivateProfileInt(S_TEMPLATE, K_ISACTIVE, 1, CurrCompoType.Path & "\" & CONFIGINI_FILE_NAME) = 0 Then
|
If EgtUILib.GetPrivateProfileInt(S_TEMPLATE, K_ISACTIVE, 1, CurrCompoType.Path & "\" & CONFIGINI_FILE_NAME) = 0 Then
|
||||||
VisibilityTemplate = Visibility.Collapsed
|
VisibilityTemplate = Visibility.Collapsed
|
||||||
NotifyPropertyChanged("VisibilityTemplate")
|
NotifyPropertyChanged(NameOf(VisibilityTemplate))
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -640,7 +640,7 @@ Public Class Hardware
|
|||||||
If TypeList(IndexListType).NameINI = "1" Then
|
If TypeList(IndexListType).NameINI = "1" Then
|
||||||
SelType = TypeList(IndexListType)
|
SelType = TypeList(IndexListType)
|
||||||
VisibilityType = Visibility.Visible
|
VisibilityType = Visibility.Visible
|
||||||
NotifyPropertyChanged("SelType")
|
NotifyPropertyChanged(NameOf(SelType))
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -688,7 +688,7 @@ Public Class Hardware
|
|||||||
For IndexListType As Integer = 0 To TypeList.Count - 1
|
For IndexListType As Integer = 0 To TypeList.Count - 1
|
||||||
If TypeList(IndexListType).NameINI = ConfigDefault Then
|
If TypeList(IndexListType).NameINI = ConfigDefault Then
|
||||||
SelType = TypeList(IndexListType)
|
SelType = TypeList(IndexListType)
|
||||||
NotifyPropertyChanged("SelType")
|
NotifyPropertyChanged(NameOf(SelType))
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -891,7 +891,7 @@ Public Class Hardware
|
|||||||
If Not IsNothing(GroupChapters) Then
|
If Not IsNothing(GroupChapters) Then
|
||||||
GroupChapters.Clear()
|
GroupChapters.Clear()
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("GroupChapters")
|
NotifyPropertyChanged(NameOf(GroupChapters))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' ricarico il file temporaneo
|
' ricarico il file temporaneo
|
||||||
@@ -1501,8 +1501,8 @@ Public Class Hardware
|
|||||||
' carico le variabili temporanee e aggiorno la grafica (lista dei file e Brand selezionato)
|
' carico le variabili temporanee e aggiorno la grafica (lista dei file e Brand selezionato)
|
||||||
m_SelBrand = m_HardwareGeneral.HardwareFolderList(IndexModel)
|
m_SelBrand = m_HardwareGeneral.HardwareFolderList(IndexModel)
|
||||||
TemplateList = Temp_TemplateList
|
TemplateList = Temp_TemplateList
|
||||||
NotifyPropertyChanged("TemplateList")
|
NotifyPropertyChanged(NameOf(TemplateList))
|
||||||
NotifyPropertyChanged("SelBrand")
|
NotifyPropertyChanged(NameOf(SelBrand))
|
||||||
' copio il file
|
' copio il file
|
||||||
Try
|
Try
|
||||||
File.Copy(OldDirPath, CurrDirPath, True)
|
File.Copy(OldDirPath, CurrDirPath, True)
|
||||||
@@ -1589,8 +1589,8 @@ Public Class Hardware
|
|||||||
SelBrand = m_HardwareGeneral.HardwareFolderList(IndexModel)
|
SelBrand = m_HardwareGeneral.HardwareFolderList(IndexModel)
|
||||||
TemplateList = Temp_TemplateList
|
TemplateList = Temp_TemplateList
|
||||||
SelType = sType
|
SelType = sType
|
||||||
NotifyPropertyChanged("TemplateList")
|
NotifyPropertyChanged(NameOf(TemplateList))
|
||||||
NotifyPropertyChanged("SelBrand")
|
NotifyPropertyChanged(NameOf(SelBrand))
|
||||||
' ripulisco la lista da eventuali residui di altri Hardware
|
' ripulisco la lista da eventuali residui di altri Hardware
|
||||||
ClearGroupChapters()
|
ClearGroupChapters()
|
||||||
' rileggo le component dell'hardware da StdTemplate
|
' rileggo le component dell'hardware da StdTemplate
|
||||||
@@ -1917,12 +1917,12 @@ Public Class Hardware
|
|||||||
Dim CurrFolder = New CompoBrandDir(m_HardwareGeneral.Path, Path.GetFileName(m_HardwareGeneral.Path))
|
Dim CurrFolder = New CompoBrandDir(m_HardwareGeneral.Path, Path.GetFileName(m_HardwareGeneral.Path))
|
||||||
m_HardwareGeneral.HardwareFolderList.Add(CurrFolder)
|
m_HardwareGeneral.HardwareFolderList.Add(CurrFolder)
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("BrandList")
|
NotifyPropertyChanged(NameOf(BrandList))
|
||||||
For Each Item In BrandList
|
For Each Item In BrandList
|
||||||
If m_LastDirectory.ModelDir = Item.ModelDir Then
|
If m_LastDirectory.ModelDir = Item.ModelDir Then
|
||||||
SelBrand = Item
|
SelBrand = Item
|
||||||
NotifyPropertyChanged("BrandList")
|
NotifyPropertyChanged(NameOf(BrandList))
|
||||||
NotifyPropertyChanged("SelBrand")
|
NotifyPropertyChanged(NameOf(SelBrand))
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -2314,7 +2314,7 @@ Public Class Hardware
|
|||||||
End If
|
End If
|
||||||
DoRefresh = True
|
DoRefresh = True
|
||||||
RefreshTemplateListEgtDOORCreator()
|
RefreshTemplateListEgtDOORCreator()
|
||||||
NotifyPropertyChanged("TemplateList")
|
NotifyPropertyChanged(NameOf(TemplateList))
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -2434,8 +2434,8 @@ Public Class TypeHardware
|
|||||||
Sub New(Name As String, NameINI As String)
|
Sub New(Name As String, NameINI As String)
|
||||||
m_Name = Name
|
m_Name = Name
|
||||||
m_NameINI = NameINI
|
m_NameINI = NameINI
|
||||||
NotifyPropertyChanged("Name")
|
NotifyPropertyChanged(NameOf(Name))
|
||||||
NotifyPropertyChanged("NameINI")
|
NotifyPropertyChanged(NameOf(NameINI))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<WindowsFormsHost x:Class="HardwareHelpSceneHostV"
|
<WindowsFormsHost x:Class="HardwareHelpSceneHostV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtUILib="clr-namespace:EgtUILib;assembly=EgtUILib">
|
xmlns:EgtUILib="clr-namespace:EgtUILib;assembly=EgtUILib">
|
||||||
|
|
||||||
<EgtUILib:Scene x:Name="HardwareHelpScene"/>
|
<EgtUILib:Scene x:Name="HardwareHelpScene"/>
|
||||||
|
|
||||||
|
|||||||
@@ -28,20 +28,25 @@
|
|||||||
</Grid.InputBindings>
|
</Grid.InputBindings>
|
||||||
|
|
||||||
<!-- La griglia che gestirà i parametri hardaware -->
|
<!-- La griglia che gestirà i parametri hardaware -->
|
||||||
<Grid Grid.Column="{Binding GridGeneralDiposition}" Grid.Row="0">
|
<Grid Grid.Row="0"
|
||||||
|
Grid.Column="{Binding GridGeneralDiposition}">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<!-- Deicata al general dell'hardware-->
|
<!-- Deicata al general dell'hardware-->
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<!-- dedicata alla lista dei parametri dell'hardware-->
|
<!-- dedicata alla lista dei parametri dell'hardware-->
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!-- Genaral Hardware-->
|
<!-- Genaral Hardware-->
|
||||||
<GroupBox Grid.Row="0" Grid.Column="0" Visibility="{Binding VisibilityGeneral}">
|
<GroupBox Grid.Row="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
Visibility="{Binding VisibilityGeneral}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
<GroupBox.Header>
|
<GroupBox.Header>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<!-- titolo del general-->
|
<!-- titolo del general-->
|
||||||
<TextBlock Text="{Binding GeneralMsg}" Width="Auto"/>
|
<TextBlock Text="{Binding GeneralMsg}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</GroupBox.Header>
|
</GroupBox.Header>
|
||||||
|
|
||||||
@@ -60,43 +65,50 @@
|
|||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<!-- Nome della prima sottocartella dopo "Hinges"-->
|
<!-- Nome della prima sottocartella dopo "Hinges"-->
|
||||||
<TextBlock Grid.Row="0" Grid.Column="0" Margin="2,0,0,2"
|
<TextBlock Grid.Row="0"
|
||||||
|
Grid.Column="0"
|
||||||
Text="{Binding BrandMsg}"
|
Text="{Binding BrandMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
<ComboBox Grid.Row="0" Grid.Column="1" Margin="0.4,2,39.6,3.2"
|
<ComboBox Grid.Row="0"
|
||||||
ItemsSource="{Binding CurrHardware.BrandList}"
|
Grid.Column="1"
|
||||||
SelectedItem="{Binding CurrHardware.SelBrand}"
|
DisplayMemberPath="ModelDirGraphic"
|
||||||
DisplayMemberPath="ModelDirGraphic"
|
ItemsSource="{Binding CurrHardware.BrandList}"
|
||||||
Style="{StaticResource DoorParamsCmBx}" Height="Auto"/>
|
SelectedItem="{Binding CurrHardware.SelBrand}"
|
||||||
|
Style="{DynamicResource CurrHardwareCmBx}"/>
|
||||||
<!-- Nome del template "StdCon" -->
|
<!-- Nome del template "StdCon" -->
|
||||||
<TextBlock Grid.Row="1" Grid.Column="0" Margin="2,0,0,2"
|
<TextBlock Grid.Row="1"
|
||||||
|
Grid.Column="0"
|
||||||
Text="{Binding TemplateMsg}"
|
Text="{Binding TemplateMsg}"
|
||||||
Visibility="{Binding CurrHardware.VisibilityTemplate}"
|
Visibility="{Binding CurrHardware.VisibilityTemplate}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{DynamicResource JambsParams2TxBl}"/>
|
||||||
<ComboBox Grid.Row="1" Grid.Column="1" Margin="0.4,2,39.6,3.2"
|
<ComboBox Grid.Row="1"
|
||||||
ItemsSource="{Binding CurrHardware.TemplateList}"
|
Grid.Column="1"
|
||||||
SelectedItem="{Binding CurrHardware.SelTemplate}"
|
ItemsSource="{Binding CurrHardware.TemplateList}"
|
||||||
Visibility="{Binding CurrHardware.VisibilityTemplate}"
|
SelectedItem="{Binding CurrHardware.SelTemplate}"
|
||||||
Style="{StaticResource DoorParamsCmBx}" Height="Auto"/>
|
Visibility="{Binding CurrHardware.VisibilityTemplate}"
|
||||||
|
Style="{DynamicResource CurrHardwareCmBx}"/>
|
||||||
<!-- tipologia di template "Mort/Con" -->
|
<!-- tipologia di template "Mort/Con" -->
|
||||||
<TextBlock Grid.Row="2" Grid.Column="0" Margin="2,0,0,2"
|
<TextBlock Grid.Row="2"
|
||||||
|
Grid.Column="0"
|
||||||
Text="{Binding TypeMsg}"
|
Text="{Binding TypeMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"
|
Style="{DynamicResource JambsParams2TxBl}"
|
||||||
Visibility="{Binding CurrHardware.VisibilityType}"/>
|
|
||||||
<TextBox Grid.Row="2" Grid.Column="1" Margin="0.4,0,39.6,0"
|
|
||||||
Text="{Binding CurrHardware.SelType.Name}"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}" Height="Auto"
|
|
||||||
IsEnabled="{Binding CurrHardware.IsEnableType}"
|
|
||||||
Visibility="{Binding CurrHardware.VisibilityType}"/>
|
Visibility="{Binding CurrHardware.VisibilityType}"/>
|
||||||
|
<TextBox Grid.Row="2"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding CurrHardware.SelType.Name}"
|
||||||
|
IsEnabled="{Binding CurrHardware.IsEnableType}"
|
||||||
|
Visibility="{Binding CurrHardware.VisibilityType}"
|
||||||
|
Style="{DynamicResource CurrHardwareTxBx}"/>
|
||||||
<!-- Griglia per gestire la disposizione nel General-->
|
<!-- Griglia per gestire la disposizione nel General-->
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
||||||
<!-- Gestione delle liste di parametri dell'hardware -->
|
<!-- Gestione delle liste di parametri dell'hardware -->
|
||||||
<ItemsControl Grid.Row="1" Grid.Column="1"
|
<ItemsControl Grid.Row="1"
|
||||||
Name="HardwareParamsItemsControl"
|
Grid.Column="1"
|
||||||
ItemsSource="{Binding CurrHardware.GroupChapters}"
|
Name="HardwareParamsItemsControl"
|
||||||
Style="{StaticResource DoorParamsItemsControlStyle}">
|
ItemsSource="{Binding CurrHardware.GroupChapters}"
|
||||||
|
Style="{DynamicResource DoorParamsItemsControlStyle}">
|
||||||
|
|
||||||
<ItemsControl.ItemTemplateSelector>
|
<ItemsControl.ItemTemplateSelector>
|
||||||
<local:IsFixedSelector >
|
<local:IsFixedSelector >
|
||||||
@@ -106,80 +118,50 @@
|
|||||||
<DataTemplate >
|
<DataTemplate >
|
||||||
<!--Titolo della lista dei parametri-->
|
<!--Titolo della lista dei parametri-->
|
||||||
<Expander Width="{Binding ActualWidth,ElementName=HardwareParamsItemsControl,
|
<Expander Width="{Binding ActualWidth,ElementName=HardwareParamsItemsControl,
|
||||||
Converter={StaticResource SplitConverter},ConverterParameter=2}"
|
Converter={StaticResource SplitConverter},ConverterParameter=2}"
|
||||||
IsExpanded="{Binding IsActiveChapter}"
|
IsExpanded="{Binding IsActiveChapter}"
|
||||||
Visibility="{Binding GroupVisibilityChapter}"
|
Visibility="{Binding GroupVisibilityChapter}"
|
||||||
IsEnabled="{Binding EnableChapter}"
|
IsEnabled="{Binding EnableChapter}"
|
||||||
Style="{StaticResource HardwareExpander}">
|
Style="{DynamicResource HardwareExpander}">
|
||||||
<Expander.Header>
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<TextBlock Text="{Binding TemplateName}" Width="Auto">
|
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="Black"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding EnableChapter}" Value="False">
|
|
||||||
<Setter Property="FontStyle" Value="Italic"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ErrorColor}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
</StackPanel>
|
|
||||||
</Expander.Header>
|
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<!-- Gestione della lista di parametri dell'hardware -->
|
<!-- Gestione della lista di parametri dell'hardware -->
|
||||||
<ItemsControl ItemsSource="{Binding CompoParamList}">
|
<ItemsControl ItemsSource="{Binding CompoParamList}"
|
||||||
|
Style="{DynamicResource HardwareItemsControlStyle}">
|
||||||
<!-- Gestione degli oggetti da caricare nella lista -->
|
<!-- Gestione degli oggetti da caricare nella lista -->
|
||||||
<ItemsControl.Resources>
|
<ItemsControl.Resources>
|
||||||
|
|
||||||
<!-- Gestione della ComboBoxParam -->
|
<!-- Gestione della ComboBoxParam -->
|
||||||
<DataTemplate DataType="{x:Type local:ComboBoxParam}">
|
<DataTemplate DataType="{x:Type local:ComboBoxParam}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}">-->
|
Style="{DynamicResource HardwarePageTxBl}"/>
|
||||||
<TextBlock.Style>
|
<ComboBox ItemsSource="{Binding ItemList}"
|
||||||
<Style TargetType="TextBlock" >
|
SelectedItem="{Binding SelItem}"
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
IsEnabled="{Binding IsRaedOnly}"
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
Style="{DynamicResource HardwarePageCmBx}"/>
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
|
|
||||||
<ComboBox ItemsSource="{Binding ItemList}" Margin="0,2,0,2"
|
|
||||||
SelectedItem="{Binding SelItem}"
|
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
|
||||||
IsEnabled="{Binding IsRaedOnly}"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<!-- Gestione della ComboBoxParamLua -->
|
<!-- Gestione della ComboBoxParamLua -->
|
||||||
<DataTemplate DataType="{x:Type local:ComboBoxParamLua}">
|
<DataTemplate DataType="{x:Type local:ComboBoxParamLua}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}">-->
|
Style="{DynamicResource HardwarePageTxBl}"/>
|
||||||
<TextBlock.Style>
|
<Grid>
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ComboBox ItemsSource="{Binding ItemList}" Margin="0,2,2,2"
|
<ComboBox ItemsSource="{Binding ItemList}"
|
||||||
Name ="ComboBoxLua"
|
Name="ComboBoxLua"
|
||||||
|
IsEnabled="{Binding IsRaedOnly}"
|
||||||
SelectedItem="{Binding SelItem}"
|
SelectedItem="{Binding SelItem}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
Style="{DynamicResource LuaCmBx}"/>
|
||||||
IsEnabled="{Binding IsRaedOnly}"/>
|
<Button Grid.Column="1"
|
||||||
<Button Grid.Column="1" Margin="0,2,2,2"
|
|
||||||
Visibility="{Binding VisibilityButtonAddGeometry}"
|
Visibility="{Binding VisibilityButtonAddGeometry}"
|
||||||
Command="{Binding DataContext.GeometryConfigCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
Command="{Binding DataContext.GeometryConfigCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding ElementName=ComboBoxLua, Path=SelectedItem}">
|
CommandParameter="{Binding ElementName=ComboBoxLua, Path=SelectedItem}"
|
||||||
|
Style="{DynamicResource LuaBtn}">
|
||||||
<Image Source="/Resources/TopCommandBar/Add.png" Height="16" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/Add.png" Height="16" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -198,51 +180,31 @@
|
|||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<CheckBox Name="ChBxBox" IsChecked="{Binding IsActive}"
|
<CheckBox Name="ChBxBox"
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
IsChecked="{Binding IsActive}"
|
||||||
Margin="0,-2,0,2"/>
|
Style="{DynamicResource ParamOnOffChBx}"/>
|
||||||
<TextBlock Text="{Binding Name}" Grid.Column="1" Margin="2,0,0,2">
|
<TextBlock Grid.Column="1"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}">-->
|
Text="{Binding Name}"
|
||||||
<TextBlock.Style>
|
Style="{DynamicResource ParamOnOffTxBl}"/>
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<ComboBox ItemsSource="{Binding ItemList}" Grid.Column="2"
|
<ComboBox Grid.Column="2"
|
||||||
Margin="0,0,0,2"
|
IsEnabled="{Binding IsChecked, ElementName=ChBxBox}"
|
||||||
SelectedItem="{Binding SelItem}"
|
ItemsSource="{Binding ItemList}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
SelectedItem="{Binding SelItem}"
|
||||||
IsEnabled="{Binding IsChecked, ElementName=ChBxBox}"/>
|
Style="{DynamicResource ParamOnOffCmBx}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<!-- Gestione della TextBoxParam -->
|
<!-- Gestione della TextBoxParam -->
|
||||||
<DataTemplate DataType="{x:Type local:TextBoxParam}">
|
<DataTemplate DataType="{x:Type local:TextBoxParam}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2"
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
MouseEnter="Param_MouseEnter">
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
<TextBlock Text="{Binding Name}"
|
||||||
<TextBlock.Style>
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<Style TargetType="TextBlock" >
|
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
Name="TxTData"
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
ToolTip="{Binding ToolTipValue}"
|
||||||
<Style.Triggers>
|
Style="{DynamicResource TextBoxParamTxBx}"/>
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
|
|
||||||
</TextBlock>
|
|
||||||
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
Name="TxTData"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Margin="0,2,0,2"
|
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
@@ -264,35 +226,19 @@
|
|||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<TextBox Grid.Column="1"
|
<TextBox Grid.Column="1"
|
||||||
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
ToolTip="{Binding ToolTipValue}"
|
||||||
Margin="-3,2,0,2"
|
Style="{DynamicResource TextBoxDGCParamTxBx}"/>
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
|
||||||
<TextBlock Grid.Column="2"
|
<TextBlock Grid.Column="2"
|
||||||
HorizontalAlignment="Center"
|
Text="+"
|
||||||
VerticalAlignment="Center"
|
Style="{DynamicResource TextBoxDGCParamTxBl}"/>
|
||||||
Text="+"
|
<ComboBox Grid.Column="3"
|
||||||
Margin="0,2,0,2"/>
|
ItemsSource="{Binding ConstList}"
|
||||||
<ComboBox ItemsSource="{Binding ConstList}" Grid.Column="3"
|
SelectedItem="{Binding SelConst}"
|
||||||
Margin="0,2,0,2"
|
Style="{DynamicResource HardwarePageCmBx}"/>
|
||||||
SelectedItem="{Binding SelConst}"
|
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
@@ -313,32 +259,18 @@
|
|||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<TextBox Grid.Column="1"
|
<TextBox Grid.Column="1"
|
||||||
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
IsEnabled="{Binding IsEnableMeasure}"
|
IsEnabled="{Binding IsEnableMeasure}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
ToolTip="{Binding ToolTipValue}"
|
||||||
Margin="-5,2,4,2"
|
Style="{DynamicResource MeasureTxBx}"/>
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
<ComboBox Grid.Column="2"
|
||||||
<ComboBox ItemsSource="{Binding ConstList}" Grid.Column="2"
|
DisplayMemberPath="Name"
|
||||||
DisplayMemberPath="Name"
|
ItemsSource="{Binding ConstList}"
|
||||||
Margin="0,2,0,2"
|
SelectedItem="{Binding SelConst}"
|
||||||
SelectedItem="{Binding SelConst}"
|
Style="{DynamicResource HardwarePageCmBx}"/>
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
@@ -346,41 +278,30 @@
|
|||||||
<!-- Gestione della TextBoxNgeParam -->
|
<!-- Gestione della TextBoxNgeParam -->
|
||||||
<DataTemplate DataType="{x:Type local:TextBoxNgeParam}">
|
<DataTemplate DataType="{x:Type local:TextBoxNgeParam}">
|
||||||
|
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2"
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
MouseEnter="Param_MouseEnter">
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
<TextBlock Text="{Binding Name}"
|
||||||
<TextBlock.Style>
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<Style TargetType="TextBlock" >
|
<Grid>
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
IsEnabled="{Binding IsActive}"
|
IsEnabled="{Binding IsActive}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
ToolTip="{Binding ToolTipValue}"
|
||||||
Margin="0,2,2,2"
|
Style="{DynamicResource TextBoxNgeParamTxBx}"/>
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
<Button Grid.Column="1"
|
||||||
<Button Grid.Column="1" Margin="0,2,2,2"
|
|
||||||
Command="{Binding DataContext.ImportGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
Command="{Binding DataContext.ImportGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding DDFName}">
|
CommandParameter="{Binding DDFName}"
|
||||||
|
Style="{DynamicResource LuaBtn}">
|
||||||
<Image Source="/Resources/TopCommandBar/Search.png" Height="16" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/Search.png" Height="16" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Grid.Column="2" Margin="0,2,2,2"
|
<Button Grid.Column="2"
|
||||||
Command="{Binding DataContext.DeleteGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
Command="{Binding DataContext.DeleteGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding DDFName}">
|
CommandParameter="{Binding DDFName}"
|
||||||
|
Style="{DynamicResource LuaBtn}">
|
||||||
<Image Source="/Resources/TopCommandBar/X.png" Height="16" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/X.png" Height="16" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -390,35 +311,23 @@
|
|||||||
<!-- Gestione della TextBoxLuaParam -->
|
<!-- Gestione della TextBoxLuaParam -->
|
||||||
<DataTemplate DataType="{x:Type local:TextBoxLuaParam}">
|
<DataTemplate DataType="{x:Type local:TextBoxLuaParam}">
|
||||||
|
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2"
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
MouseEnter="Param_MouseEnter">
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
<TextBlock Text="{Binding Name}"
|
||||||
<TextBlock.Style>
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<Style TargetType="TextBlock" >
|
<Grid>
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
IsEnabled="{Binding IsActive}"
|
IsEnabled="{Binding IsActive}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
ToolTip="{Binding ToolTipValue}"
|
||||||
Margin="0,2,2,2"
|
Style="{DynamicResource TextBoxNgeParamTxBx}"/>
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
<Button Grid.Column="1"
|
||||||
<Button Grid.Column="1" Margin="0,2,2,2"
|
Command="{Binding DataContext.ImportLuaCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
Command="{Binding DataContext.ImportLuaCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
CommandParameter="{Binding DDFName}"
|
||||||
CommandParameter="{Binding DDFName}">
|
Style="{DynamicResource LuaBtn}">
|
||||||
<Image Source="/Resources/TopCommandBar/Search.png" Height="16" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/Search.png" Height="16" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -427,28 +336,14 @@
|
|||||||
|
|
||||||
<!-- Gestione della CheckBoxParam -->
|
<!-- Gestione della CheckBoxParam -->
|
||||||
<DataTemplate DataType="{x:Type local:CheckBoxParam}">
|
<DataTemplate DataType="{x:Type local:CheckBoxParam}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2"
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
MouseEnter="Param_MouseEnter">
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
<TextBlock Text="{Binding Name}"
|
||||||
<TextBlock.Style>
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<Style TargetType="TextBlock" >
|
<CheckBox Name="TxTData"
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
IsChecked="{Binding IsChecked,UpdateSourceTrigger=PropertyChanged}"
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
ToolTip="{Binding ToolTipValue}"
|
||||||
<Style.Triggers>
|
Style="{DynamicResource CheckBoxParamChBx}"/>
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<CheckBox IsChecked="{Binding IsChecked,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
Name="TxTData"
|
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
|
||||||
HorizontalContentAlignment="Left"
|
|
||||||
Margin="0,2,0,2"
|
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
@@ -473,30 +368,18 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<CheckBox Name="ChBx" IsChecked="{Binding IsActive}"
|
<CheckBox Name="ChBx"
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
IsChecked="{Binding IsActive}"
|
||||||
Margin="0,-2,0,2"/>
|
Style="{DynamicResource TextBoxParamOnOffParamChBx}"/>
|
||||||
<TextBlock Text="{Binding Name}" Margin="2,2,0,2" Grid.Column="1">
|
<TextBlock Grid.Column="1"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Text="{Binding Name}"
|
||||||
<TextBlock.Style>
|
Style="{DynamicResource TextBoxParamOnOffParamTxBl}"/>
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}" Grid.Column="2"
|
<TextBox Grid.Column="2"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
IsEnabled="{Binding IsChecked, ElementName=ChBx}"
|
ToolTip="{Binding ToolTipValue,UpdateSourceTrigger=PropertyChanged}"
|
||||||
Margin="0,2,0,2"
|
IsEnabled="{Binding IsChecked, ElementName=ChBx}"
|
||||||
ToolTip="{Binding ToolTipValue,UpdateSourceTrigger=PropertyChanged}"/>
|
Style="{DynamicResource TextBoxParamTxBx}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
@@ -513,10 +396,13 @@
|
|||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<!-- Titolo della lista dei parametri -->
|
<!-- Titolo della lista dei parametri -->
|
||||||
<GroupBox Width="{Binding ActualWidth,ElementName=HardwareParamsItemsControl,
|
<GroupBox Width="{Binding ActualWidth,ElementName=HardwareParamsItemsControl,
|
||||||
Converter={StaticResource SplitConverter},ConverterParameter=2}">
|
Converter={StaticResource SplitConverter},
|
||||||
|
ConverterParameter=2}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
<GroupBox.Header>
|
<GroupBox.Header>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock Text="{Binding TemplateName}" Width="Auto"/>
|
<TextBlock Text="{Binding TemplateName}"
|
||||||
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</GroupBox.Header>
|
</GroupBox.Header>
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
@@ -524,51 +410,39 @@
|
|||||||
<ItemsControl ItemsSource="{Binding CompoParamList}">
|
<ItemsControl ItemsSource="{Binding CompoParamList}">
|
||||||
<!-- Gestione degli oggetti da caricare nella lista -->
|
<!-- Gestione degli oggetti da caricare nella lista -->
|
||||||
<ItemsControl.Resources>
|
<ItemsControl.Resources>
|
||||||
|
|
||||||
<!-- Gestione della ComboBoxParam -->
|
<!-- Gestione della ComboBoxParam -->
|
||||||
<DataTemplate DataType="{x:Type local:ComboBoxParam}">
|
<DataTemplate DataType="{x:Type local:ComboBoxParam}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}">-->
|
MouseEnter="Param_MouseEnter">
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<!--Style="{StaticResource DoorParamsTxBl}">-->
|
||||||
<TextBlock.Style>
|
<TextBlock Text="{Binding Name}"
|
||||||
<Style TargetType="TextBlock" >
|
Style="{DynamicResource HardwarePageTxBl}"/>
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
<ComboBox ItemsSource="{Binding ItemList}"
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
SelectedItem="{Binding SelItem}"
|
||||||
</Style>
|
IsEnabled="{Binding IsRaedOnly}"
|
||||||
</TextBlock.Style>
|
Style="{DynamicResource HardwarePageCmBx}"/>
|
||||||
</TextBlock>
|
|
||||||
<ComboBox ItemsSource="{Binding ItemList}" Margin="0,2,0,2"
|
|
||||||
SelectedItem="{Binding SelItem}"
|
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
|
||||||
IsEnabled="{Binding IsRaedOnly}"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<!-- Gestione della ComboBoxParamLua -->
|
<!-- Gestione della ComboBoxParamLua -->
|
||||||
<DataTemplate DataType="{x:Type local:ComboBoxParamLua}">
|
<DataTemplate DataType="{x:Type local:ComboBoxParamLua}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}">-->
|
Style="{DynamicResource HardwarePageTxBl}"/>
|
||||||
<TextBlock.Style>
|
<Grid>
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ComboBox ItemsSource="{Binding ItemList}" Margin="0,2,2,2"
|
<ComboBox ItemsSource="{Binding ItemList}"
|
||||||
SelectedItem="{Binding SelItem}"
|
SelectedItem="{Binding SelItem}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
IsEnabled="{Binding IsRaedOnly}"
|
||||||
IsEnabled="{Binding IsRaedOnly}"/>
|
Style="{DynamicResource LuaCmBx}"/>
|
||||||
<Button Grid.Column="1" Margin="0,2,2,2"
|
<Button Grid.Column="1"
|
||||||
Visibility="{Binding VisibilityButtonAddGeometry}"
|
Visibility="{Binding VisibilityButtonAddGeometry}"
|
||||||
Command="{Binding DataContext.GeometryConfigCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
Command="{Binding DataContext.GeometryConfigCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding DDFName}">
|
CommandParameter="{Binding DDFName}"
|
||||||
|
Style="{DynamicResource LuaBtn}">
|
||||||
<Image Source="/Resources/TopCommandBar/Add.png" Height="16" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/Add.png" Height="16" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -587,49 +461,30 @@
|
|||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<CheckBox Name="ChBxBox" IsChecked="{Binding IsActive}"
|
<CheckBox Name="ChBxBox"
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
IsChecked="{Binding IsActive}"
|
||||||
VerticalAlignment="Top"/>
|
Style="{DynamicResource ComboBoxParamOnOffChBx}"/>
|
||||||
<TextBlock Text="{Binding Name}" Grid.Column="1" Margin="2,2,0,2">
|
<TextBlock Grid.Column="1"
|
||||||
<TextBlock.Style>
|
Text="{Binding Name}"
|
||||||
<Style TargetType="TextBlock" >
|
Style="{DynamicResource ComboBoxOnOffParamTxBl}"/>
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<ComboBox ItemsSource="{Binding ItemList}" Grid.Column="2"
|
<ComboBox Grid.Column="2"
|
||||||
Margin="0,2,0,2"
|
ItemsSource="{Binding ItemList}"
|
||||||
SelectedItem="{Binding SelItem}"
|
SelectedItem="{Binding SelItem}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
IsEnabled="{Binding IsChecked, ElementName=ChBxBox}"
|
||||||
IsEnabled="{Binding IsChecked, ElementName=ChBxBox}"/>
|
Style="{DynamicResource HardwarePageCmBx}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<!-- Gestione della TextBoxParam -->
|
<!-- Gestione della TextBoxParam -->
|
||||||
<DataTemplate DataType="{x:Type local:TextBoxParam}">
|
<DataTemplate DataType="{x:Type local:TextBoxParam}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
<TextBox Name="TxTData"
|
||||||
<Style TargetType="TextBlock" >
|
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
ToolTip="{Binding ToolTipValue}"
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
Style="{DynamicResource TextBoxParamTxBx}"/>
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
Name="TxTData"
|
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
|
||||||
Margin="0,2,0,2"
|
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
@@ -651,35 +506,19 @@
|
|||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<TextBox Grid.Column="1"
|
<TextBox Grid.Column="1"
|
||||||
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
ToolTip="{Binding ToolTipValue}"
|
||||||
Margin="-3,2,0,2"
|
Style="{DynamicResource TextBoxDGCParamTxBx}"/>
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
|
||||||
<TextBlock Grid.Column="2"
|
<TextBlock Grid.Column="2"
|
||||||
HorizontalAlignment="Center"
|
Text="+"
|
||||||
VerticalAlignment="Center"
|
Style="{DynamicResource TextBoxDGCParamTxBl}"/>
|
||||||
Text="+"
|
<ComboBox Grid.Column="3"
|
||||||
Margin="0,2,0,2"/>
|
ItemsSource="{Binding ConstList}"
|
||||||
<ComboBox ItemsSource="{Binding ConstList}" Grid.Column="3"
|
SelectedItem="{Binding SelConst}"
|
||||||
Margin="0,2,0,2"
|
Style="{DynamicResource HardwarePageCmBx}"/>
|
||||||
SelectedItem="{Binding SelConst}"
|
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
@@ -700,73 +539,46 @@
|
|||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<TextBox Grid.Column="1"
|
<TextBox Grid.Column="1"
|
||||||
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
IsEnabled="{Binding IsEnableMeasure}"
|
ToolTip="{Binding ToolTipValue}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
IsEnabled="{Binding IsEnableMeasure}"
|
||||||
Margin="-5,2,4,2"
|
Style="{DynamicResource MeasureTxBx}"/>
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
<ComboBox Grid.Column="2"
|
||||||
<ComboBox ItemsSource="{Binding ConstList}" Grid.Column="2"
|
ItemsSource="{Binding ConstList}"
|
||||||
DisplayMemberPath="Name"
|
SelectedItem="{Binding SelConst}"
|
||||||
Margin="0,2,0,2"
|
DisplayMemberPath="Name"
|
||||||
SelectedItem="{Binding SelConst}"
|
Style="{DynamicResource HardwarePageCmBx}"/>
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<!-- Gestione della TextBoxNgeParam -->
|
<!-- Gestione della TextBoxNgeParam -->
|
||||||
<DataTemplate DataType="{x:Type local:TextBoxNgeParam}">
|
<DataTemplate DataType="{x:Type local:TextBoxNgeParam}">
|
||||||
|
<UniformGrid Columns="2"
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
MouseEnter="Param_MouseEnter">
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
IsEnabled="{Binding IsActive}"
|
ToolTip="{Binding ToolTipValue}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
IsEnabled="{Binding IsActive}"
|
||||||
Margin="0,2,2,2"
|
Style="{DynamicResource TextBoxNgeParamTxBx}"/>
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
<Button Grid.Column="1"
|
||||||
<Button Grid.Column="1" Margin="0,2,2,2"
|
|
||||||
Command="{Binding DataContext.ImportGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
Command="{Binding DataContext.ImportGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding DDFName}">
|
CommandParameter="{Binding DDFName}"
|
||||||
|
Style="{DynamicResource LuaBtn}">
|
||||||
<Image Source="/Resources/TopCommandBar/Search.png" Height="16" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/Search.png" Height="16" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Grid.Column="2" Margin="0,2,2,2"
|
<Button Grid.Column="2"
|
||||||
Command="{Binding DataContext.DeleteGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
Command="{Binding DataContext.DeleteGeometryCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
|
||||||
CommandParameter="{Binding DDFName}">
|
CommandParameter="{Binding DDFName}"
|
||||||
|
Style="{DynamicResource LuaBtn}">
|
||||||
<Image Source="/Resources/TopCommandBar/X.png" Height="16" Stretch="Uniform"/>
|
<Image Source="/Resources/TopCommandBar/X.png" Height="16" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -776,27 +588,12 @@
|
|||||||
<!-- Gestione della CheckBoxParam -->
|
<!-- Gestione della CheckBoxParam -->
|
||||||
<DataTemplate DataType="{x:Type local:CheckBoxParam}">
|
<DataTemplate DataType="{x:Type local:CheckBoxParam}">
|
||||||
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
<UniformGrid Columns="2" MouseEnter="Param_MouseEnter">
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
<CheckBox Name="TxTData"
|
||||||
<Style TargetType="TextBlock" >
|
IsChecked="{Binding IsChecked,UpdateSourceTrigger=PropertyChanged}"
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
ToolTip="{Binding ToolTipValue}"
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
Style="{DynamicResource CheckBoxParamChBx}"/>
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
<CheckBox IsChecked="{Binding IsChecked,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
Name="TxTData"
|
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
|
||||||
HorizontalContentAlignment="Left"
|
|
||||||
Margin="0,2,0,2"
|
|
||||||
ToolTip="{Binding ToolTipValue}"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
@@ -816,30 +613,17 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<CheckBox Name="ChBx" IsChecked="{Binding IsActive}"
|
<CheckBox Name="ChBx"
|
||||||
Style="{StaticResource DoorParamsChBx}"
|
IsChecked="{Binding IsActive}"
|
||||||
VerticalAlignment="Center"/>
|
Style="{DynamicResource GeneralCheckBox}"/>
|
||||||
<TextBlock Text="{Binding Name}" Margin="0,2,0,2">
|
<TextBlock Text="{Binding Name}"
|
||||||
<!--Style="{StaticResource DoorParamsTxBl}"-->
|
Style="{DynamicResource TextBoxParamTxBl}"/>
|
||||||
<TextBlock.Style>
|
|
||||||
<Style TargetType="TextBlock" >
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Style.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding ErrorParameter}" Value="True">
|
|
||||||
<Setter Property="FontStyle" Value="{Binding FontStyleParam}"/>
|
|
||||||
<Setter Property="Foreground" Value="{Binding ColorParam}"/>
|
|
||||||
</DataTrigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBlock.Style>
|
|
||||||
</TextBlock>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<TextBox Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}" Grid.Column="2"
|
<TextBox Grid.Column="2"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}"
|
||||||
IsEnabled="{Binding IsChecked, ElementName=ChBx}"
|
ToolTip="{Binding ToolTipValue,UpdateSourceTrigger=PropertyChanged}"
|
||||||
Margin="0,0,0,2"
|
IsEnabled="{Binding IsChecked, ElementName=ChBx}"
|
||||||
ToolTip="{Binding ToolTipValue,UpdateSourceTrigger=PropertyChanged}"/>
|
Style="{DynamicResource TextBoxParamOnOffTxBx}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
@@ -859,9 +643,9 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<!-- Elenco pulsanti Hardware -->
|
<!-- Elenco pulsanti Hardware -->
|
||||||
<ContentControl Grid.Column="{Binding CompoPanelDiposition}" Grid.RowSpan="2" Grid.Row="0" Content="{Binding CompoPanelControl}"/>
|
<ContentControl Grid.Row="0" Grid.RowSpan="2" Grid.Column="{Binding CompoPanelDiposition}" Content="{Binding CompoPanelControl}"/>
|
||||||
|
|
||||||
<EgtDOORCreator:HardwareHelpSceneHostV Grid.Column="{Binding GridGeneralDiposition}" Grid.Row="1" Margin="0,0,2,0" />
|
<EgtDOORCreator:HardwareHelpSceneHostV Grid.Row="1" Grid.Column="{Binding GridGeneralDiposition}" Margin="0,0,2,0"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.ComponentModel
|
||||||
Imports System.ComponentModel
|
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports System.Text.RegularExpressions
|
|
||||||
Imports EgtWPFLib5
|
|
||||||
|
|
||||||
Public Class HardwarePageVM
|
Public Class HardwarePageVM
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
@@ -18,7 +15,7 @@ Public Class HardwarePageVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Part)
|
Set(value As Part)
|
||||||
m_GenericPart = value
|
m_GenericPart = value
|
||||||
NotifyPropertyChanged("GenericPart")
|
NotifyPropertyChanged(NameOf(GenericPart))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -29,7 +26,7 @@ Public Class HardwarePageVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Part)
|
Set(value As Part)
|
||||||
m_Door = value
|
m_Door = value
|
||||||
NotifyPropertyChanged("Door")
|
NotifyPropertyChanged(NameOf(Door))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -40,7 +37,7 @@ Public Class HardwarePageVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Part)
|
Set(value As Part)
|
||||||
m_Jamb = value
|
m_Jamb = value
|
||||||
NotifyPropertyChanged("Jamb")
|
NotifyPropertyChanged(NameOf(Jamb))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -51,7 +48,7 @@ Public Class HardwarePageVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Hardware)
|
Set(value As Hardware)
|
||||||
m_CurrHardware = value
|
m_CurrHardware = value
|
||||||
NotifyPropertyChanged("CurrHardware")
|
NotifyPropertyChanged(NameOf(CurrHardware))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -74,17 +71,17 @@ Public Class HardwarePageVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Visibility)
|
Set(value As Visibility)
|
||||||
m_VisibilityGeneral = value
|
m_VisibilityGeneral = value
|
||||||
NotifyPropertyChanged("VisibilityGeneral")
|
NotifyPropertyChanged(NameOf(VisibilityGeneral))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_EnablePageHardware As Boolean
|
Private m_EnablePageHardware As Boolean
|
||||||
Sub SetStatusPage()
|
Sub SetStatusPage()
|
||||||
NotifyPropertyChanged("EnablePageHardware")
|
NotifyPropertyChanged(NameOf(EnablePageHardware))
|
||||||
End Sub
|
End Sub
|
||||||
Public ReadOnly Property EnablePageHardware As Boolean
|
Public ReadOnly Property EnablePageHardware As Boolean
|
||||||
Get
|
Get
|
||||||
Map.refProjectManagerHardwareVM.NotifyPropertyChanged("EnableProjectManagerHardware")
|
Map.refProjectManagerHardwareVM.NotifyPropertyChanged(NameOf(EnableProjectManagerHardware))
|
||||||
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
||||||
Return Map.refInstrumentPanelVM.EnablePage
|
Return Map.refInstrumentPanelVM.EnablePage
|
||||||
Else
|
Else
|
||||||
@@ -240,11 +237,12 @@ Public Class HardwarePageVM
|
|||||||
Public Sub ImportGeometry()
|
Public Sub ImportGeometry()
|
||||||
Dim sFilePath As String = String.Empty
|
Dim sFilePath As String = String.Empty
|
||||||
|
|
||||||
Dim FolderBrowserDialog As New System.Windows.Forms.OpenFileDialog()
|
|
||||||
' 50559=Open File Dialog
|
' 50559=Open File Dialog
|
||||||
FolderBrowserDialog.Title = EgtMsg(50559)
|
Dim FolderBrowserDialog As New System.Windows.Forms.OpenFileDialog With {
|
||||||
FolderBrowserDialog.InitialDirectory = Path.GetDirectoryName(CurrHardware.CurrPath)
|
.Title = EgtMsg(50559),
|
||||||
FolderBrowserDialog.Filter = "File (*.nge)|*.nge|All (*.*)|*.*"
|
.InitialDirectory = Path.GetDirectoryName(CurrHardware.CurrPath),
|
||||||
|
.Filter = "File (*.nge)|*.nge|All (*.*)|*.*"
|
||||||
|
}
|
||||||
If FolderBrowserDialog.ShowDialog <> Forms.DialogResult.OK Then
|
If FolderBrowserDialog.ShowDialog <> Forms.DialogResult.OK Then
|
||||||
' se la risposta è diversa da OK esce
|
' se la risposta è diversa da OK esce
|
||||||
Return
|
Return
|
||||||
|
|||||||
@@ -1,113 +1,144 @@
|
|||||||
<UserControl x:Class="HardwarePartV"
|
<UserControl x:Class="HardwarePartV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="clr-namespace:EgtDOORCreator"
|
xmlns:local="clr-namespace:EgtDOORCreator"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}">
|
BorderBrush="{DynamicResource EgalwareIndigo}">
|
||||||
|
|
||||||
<GroupBox Header="{Binding General}" Grid.RowSpan="6" Grid.ColumnSpan="4">
|
<GroupBox Grid.RowSpan="6"
|
||||||
<Grid Margin="2">
|
Grid.ColumnSpan="4"
|
||||||
<Grid.ColumnDefinitions>
|
Style="{DynamicResource GeneralDoorParamGrp}">
|
||||||
<ColumnDefinition Width="1*"/>
|
<GroupBox.Header>
|
||||||
<ColumnDefinition Width="0.7*"/>
|
<TextBlock Text="{Binding General}"
|
||||||
<ColumnDefinition Width="1*"/>
|
Style="{DynamicResource GeneralDoorParamGrpTxBx}"/>
|
||||||
<ColumnDefinition Width="0.7*"/>
|
</GroupBox.Header>
|
||||||
</Grid.ColumnDefinitions>
|
<Grid Margin="2">
|
||||||
<Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<ColumnDefinition Width="0.7*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<ColumnDefinition Width="0.7*"/>
|
||||||
<RowDefinition Height="1*"/>
|
</Grid.ColumnDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
|
||||||
<!--<RowDefinition Height="1*"/>-->
|
<!--<RowDefinition Height="1*"/>-->
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Grid.InputBindings>
|
<Grid.InputBindings>
|
||||||
<KeyBinding Key="Enter" Command="{Binding ApplyCommand}"/>
|
<KeyBinding Key="Enter" Command="{Binding ApplyCommand}"/>
|
||||||
</Grid.InputBindings>
|
</Grid.InputBindings>
|
||||||
|
|
||||||
<Border BorderBrush="Gainsboro" BorderThickness="1" Grid.Column="2" Grid.ColumnSpan="4"
|
<Border Grid.Column="2"
|
||||||
Grid.RowSpan="5" Margin="5,0,5,0" CornerRadius="3"/>
|
Grid.ColumnSpan="4"
|
||||||
|
Grid.RowSpan="5"
|
||||||
|
Style="{DynamicResource HardwarePart}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="0" Text="{Binding WidthMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="0"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Grid.Column="0"
|
||||||
<TextBox Grid.Column="1" Grid.Row="0"
|
Text="{Binding WidthMsg}"
|
||||||
Text="{Binding Width,UpdateSourceTrigger=PropertyChanged}"
|
Style="{DynamicResource DoorParamsTxBl}"/>
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
<TextBox Grid.Row="0"
|
||||||
Margin="5,0,30,5"/>
|
Grid.Column="1"
|
||||||
|
Text="{Binding Width,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource HardwarePartTxBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="1" Text="{Binding HeightMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="1"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Grid.Column="0"
|
||||||
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Height,UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding HeightMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{DynamicResource DoorParamsTxBl}"/>
|
||||||
Margin="5,0,30,5"/>
|
<TextBox Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding Height,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource HardwarePartTxBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="2" Text="{Binding ThicknessMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="2"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Grid.Column="0"
|
||||||
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Thickness,UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding ThicknessMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{DynamicResource DoorParamsTxBl}"/>
|
||||||
Margin="5,0,30,5"/>
|
<TextBox Grid.Row="2"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding Thickness,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{DynamicResource HardwarePartTxBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="3" Text="{Binding SwingMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="3"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Grid.Column="0"
|
||||||
<ComboBox ItemsSource="{Binding SwingList}" Margin="5,0,30,5"
|
Text="{Binding SwingMsg}"
|
||||||
Grid.Column="1" Grid.Row="3"
|
Style="{DynamicResource DoorParamsTxBl}"/>
|
||||||
SelectedItem="{Binding SelectedItem}"
|
<ComboBox Grid.Row="3"
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
Grid.Column="1"
|
||||||
|
ItemsSource="{Binding SwingList}"
|
||||||
|
SelectedItem="{Binding SelectedItem}"
|
||||||
|
Style="{DynamicResource SwingListCmBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Grid.Row="4" Text="{Binding MaterialMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="4"
|
||||||
Visibility="{Binding MaterialListIsVisible}"
|
Grid.Column="0"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding MaterialMsg}"
|
||||||
<ComboBox ItemsSource="{Binding MaterialList}" Margin="5,0,30,5"
|
Visibility="{Binding MaterialListIsVisible}"
|
||||||
Grid.Column="1" Grid.Row="4"
|
Style="{DynamicResource DoorParamsTxBl}"/>
|
||||||
SelectedItem="{Binding SelectedMaterial}"
|
<ComboBox Grid.Row="4"
|
||||||
DisplayMemberPath="Name"
|
Grid.Column="1"
|
||||||
Visibility="{Binding MaterialListIsVisible}"
|
DisplayMemberPath="Name"
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
ItemsSource="{Binding MaterialList}"
|
||||||
|
SelectedItem="{Binding SelectedMaterial}"
|
||||||
|
Visibility="{Binding MaterialListIsVisible}"
|
||||||
|
Style="{DynamicResource SwingListCmBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="3" Grid.Row="0" Text="{Binding EdgeTypeMsg}"
|
<TextBlock Grid.Row="0"
|
||||||
Margin="5,0,15,5" VerticalAlignment="Center"
|
Grid.Column="3"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding EdgeTypeMsg}"
|
||||||
|
Style="{DynamicResource EdgeTypeTxBl}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="2" Grid.Row="1" Text="{Binding LockedgeMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="1"
|
||||||
Margin="15,0,0,0"
|
Grid.Column="2"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding LockedgeMsg}"
|
||||||
<ComboBox ItemsSource="{Binding LockEdgeProfile}" Margin="5,0,15,5"
|
Style="{DynamicResource GeometryListConfigTxBl}"/>
|
||||||
Grid.Column="3" Grid.Row="1"
|
<ComboBox Grid.Row="1"
|
||||||
SelectedValue="{Binding SelectedLockEdgeProfile}"
|
Grid.Column="3"
|
||||||
DisplayMemberPath="Name"
|
DisplayMemberPath="Name"
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
ItemsSource="{Binding LockEdgeProfile}"
|
||||||
|
SelectedValue="{Binding SelectedLockEdgeProfile}"
|
||||||
|
Style="{DynamicResource LockEdgeProfileCmBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="2" Grid.Row="2" Text="{Binding HingeedgeMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="2"
|
||||||
Margin="15,0,0,0"
|
Grid.Column="2"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding HingeedgeMsg}"
|
||||||
<ComboBox ItemsSource="{Binding HingeEdgeProfile}" Margin="5,0,15,5"
|
Style="{DynamicResource GeometryListConfigTxBl}"/>
|
||||||
Grid.Column="3" Grid.Row="2"
|
<ComboBox Grid.Row="2"
|
||||||
SelectedValue="{Binding SelectedHingeEdgeProfile}"
|
Grid.Column="3"
|
||||||
DisplayMemberPath="Name"
|
DisplayMemberPath="Name"
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
ItemsSource="{Binding HingeEdgeProfile}"
|
||||||
|
SelectedValue="{Binding SelectedHingeEdgeProfile}"
|
||||||
|
Style="{DynamicResource LockEdgeProfileCmBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="2" Grid.Row="3" Text="{Binding TopedgeMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="3"
|
||||||
Margin="15,0,0,0"
|
Grid.Column="2"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding TopedgeMsg}"
|
||||||
<ComboBox ItemsSource="{Binding TopEdgeProfile}" Margin="5,0,15,5"
|
Style="{DynamicResource GeometryListConfigTxBl}"/>
|
||||||
Grid.Column="3" Grid.Row="3"
|
<ComboBox Grid.Row="3"
|
||||||
SelectedValue="{Binding SelectedTopEdgeProfile}"
|
Grid.Column="3"
|
||||||
DisplayMemberPath="Name"
|
DisplayMemberPath="Name"
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
ItemsSource="{Binding TopEdgeProfile}"
|
||||||
|
SelectedValue="{Binding SelectedTopEdgeProfile}"
|
||||||
|
Style="{DynamicResource LockEdgeProfileCmBx}"/>
|
||||||
|
|
||||||
<TextBlock Grid.Column="2" Grid.Row="4" Text="{Binding BottomedgeMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="4"
|
||||||
Margin="15,0,0,0"
|
Grid.Column="2"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding BottomedgeMsg}"
|
||||||
<ComboBox ItemsSource="{Binding BottomEdgeProfile}" Margin="5,0,15,5"
|
Style="{DynamicResource GeometryListConfigTxBl}"/>
|
||||||
Grid.Column="3" Grid.Row="4"
|
<ComboBox Grid.Row="4"
|
||||||
SelectedValue="{Binding SelectedBottomEdgeProfile}"
|
Grid.Column="3"
|
||||||
DisplayMemberPath="Name"
|
DisplayMemberPath="Name"
|
||||||
Style="{StaticResource DoorParamsCmBx}"/>
|
ItemsSource="{Binding BottomEdgeProfile}"
|
||||||
|
SelectedValue="{Binding SelectedBottomEdgeProfile}"
|
||||||
|
Style="{DynamicResource LockEdgeProfileCmBx}"/>
|
||||||
|
|
||||||
<!--<Grid Grid.ColumnSpan="4" Grid.Row="4">
|
<!--<Grid Grid.ColumnSpan="4" Grid.Row="4">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1.5*"/>
|
<ColumnDefinition Width="1.5*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -116,18 +147,16 @@
|
|||||||
<ColumnDefinition Width="1.5*"/>
|
<ColumnDefinition Width="1.5*"/>
|
||||||
</Grid.ColumnDefinitions>-->
|
</Grid.ColumnDefinitions>-->
|
||||||
|
|
||||||
|
<Button Grid.Row="6"
|
||||||
<Button Grid.Column="3" Grid.Row="6"
|
Grid.Column="3"
|
||||||
Content="{Binding CancelMsg}"
|
Content="{Binding CancelMsg}"
|
||||||
Margin="5, 5, 15, 5"
|
Style="{DynamicResource CancelBtn}"/>
|
||||||
IsCancel="True"/>
|
|
||||||
|
|
||||||
<Button Grid.Column="2" Grid.Row="6"
|
<Button Grid.Row="6"
|
||||||
|
Grid.Column="2"
|
||||||
Content="{Binding ApplyMsg}"
|
Content="{Binding ApplyMsg}"
|
||||||
Command="{Binding ApplyCommand}"
|
Command="{Binding ApplyCommand}"
|
||||||
Margin="15, 5, 50, 5"
|
Style="{DynamicResource ApplyBtn}"/>
|
||||||
IsDefault="True"/>
|
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
Public Class HardwarePartV
|
Public Class HardwarePartV
|
||||||
|
|
||||||
Private WithEvents m_HardwarePartVM As HardwarePartVM
|
Private WithEvents m_HardwarePartVM As HardwarePartVM
|
||||||
|
|
||||||
Sub New(HardwarePart As HardwarePartVM)
|
Sub New(HardwarePart As HardwarePartVM)
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
Imports System.IO
|
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
|
||||||
|
|
||||||
Public Class HardwarePartVM
|
Public Class HardwarePartVM
|
||||||
'Inherits VMBase
|
'Inherits VMBase
|
||||||
@@ -279,7 +277,7 @@ Public Class HardwarePartVM
|
|||||||
Map.refHardwarePageVM.GenericPart.SetTopType(m_SelectedTopEdgeProfile)
|
Map.refHardwarePageVM.GenericPart.SetTopType(m_SelectedTopEdgeProfile)
|
||||||
Map.refHardwarePageVM.GenericPart.SetBottomType(m_SelectedBottomEdgeProfile)
|
Map.refHardwarePageVM.GenericPart.SetBottomType(m_SelectedBottomEdgeProfile)
|
||||||
Map.refHardwarePageVM.GenericPart.SetMaterial(m_SelectedMaterial)
|
Map.refHardwarePageVM.GenericPart.SetMaterial(m_SelectedMaterial)
|
||||||
Map.refHardwarePageVM.GenericPart.NotifyPropertyChanged("GenericPart")
|
Map.refHardwarePageVM.GenericPart.NotifyPropertyChanged(NameOf(Map.refHardwarePageVM.GenericPart))
|
||||||
bIsSettingDoor = True
|
bIsSettingDoor = True
|
||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
If Not IsNothing(Map.refHardwarePageVM.CurrHardware()) Then
|
If Not IsNothing(Map.refHardwarePageVM.CurrHardware()) Then
|
||||||
@@ -333,7 +331,7 @@ Public Class HardwarePartVM
|
|||||||
End Try
|
End Try
|
||||||
If OptionModule.m_MaterialList.Count > 1 Then
|
If OptionModule.m_MaterialList.Count > 1 Then
|
||||||
m_MaterialListIsVisble = Visibility.Visible
|
m_MaterialListIsVisble = Visibility.Visible
|
||||||
NotifyPropertyChanged("MaterialListIsVisible")
|
NotifyPropertyChanged(NameOf(MaterialListIsVisible))
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="HardwarePartWindowV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="HardwarePartWindowV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
||||||
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
||||||
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<ContentControl Content="{Binding HardwarePart}"/>
|
<ContentControl Content="{Binding HardwarePart}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ Imports EgtWPFLib5
|
|||||||
|
|
||||||
Friend Module IniFile
|
Friend Module IniFile
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Public Enum ComboListResult As Integer
|
Public Enum ComboListResult As Integer
|
||||||
MISTAKE = -1
|
MISTAKE = -1
|
||||||
NOTFOUND = 0
|
NOTFOUND = 0
|
||||||
@@ -62,6 +64,10 @@ Friend Module IniFile
|
|||||||
' Path LuaLibs Dir
|
' Path LuaLibs Dir
|
||||||
Friend m_sLuaLibsDir As String = String.Empty
|
Friend m_sLuaLibsDir As String = String.Empty
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' EgtDoorCreator.ini
|
' EgtDoorCreator.ini
|
||||||
Public Function GetPrivateProfileLanguage(ByVal lpAppName As String, ByVal lpKeyName As String) As Language
|
Public Function GetPrivateProfileLanguage(ByVal lpAppName As String, ByVal lpKeyName As String) As Language
|
||||||
Dim sVal As String = String.Empty
|
Dim sVal As String = String.Empty
|
||||||
@@ -485,4 +491,6 @@ Friend Module IniFile
|
|||||||
Return EgtUILib.WritePrivateProfileString(IpAppName, IpKeyName, IpString, m_sDoorsDirPath & "\MTables\GeometryNameList.ini")
|
Return EgtUILib.WritePrivateProfileString(IpAppName, IpKeyName, IpString, m_sDoorsDirPath & "\MTables\GeometryNameList.ini")
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports EgtWPFLib5
|
||||||
Imports EgtUILib
|
|
||||||
Imports EgtWPFLib5
|
|
||||||
|
|
||||||
Module LauncherModule
|
Module LauncherModule
|
||||||
' riferimento
|
' riferimento
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="LauncherV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="LauncherV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding TitleMsg}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding TitleMsg}" Icon="/Resources/EgtDOOR.ico"
|
||||||
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False">
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False">
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
@@ -14,16 +13,17 @@
|
|||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Button Grid.Row="0" Command="{Binding LastProjectCommand}">
|
<Button Grid.Row="0"
|
||||||
|
Command="{Binding LastProjectCommand}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Image Grid.Column="0" Source="/Resources/TopCommandBar/Import.png" Stretch="Uniform"
|
<Image Grid.Column="0" Source="/Resources/TopCommandBar/Import.png" Stretch="Uniform"/>
|
||||||
/>
|
<TextBlock Grid.Column="1"
|
||||||
<TextBlock Grid.Column="1" Text="{Binding OpenLastMsg}" FontSize="15"
|
Text="{Binding OpenLastMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{DynamicResource LauncherTxBl}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
@@ -33,10 +33,10 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Image Grid.Column="0" Source="/Resources/TopCommandBar/New.png" Stretch="Uniform"
|
<Image Grid.Column="0" Source="/Resources/TopCommandBar/New.png" Stretch="Uniform" HorizontalAlignment="Left"/>
|
||||||
HorizontalAlignment="Left"/>
|
<TextBlock Grid.Column="1"
|
||||||
<TextBlock Grid.Column="1" Text="{Binding NewMsg}" FontSize="15"
|
Text="{Binding NewMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{DynamicResource LauncherTxBl}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
@@ -46,10 +46,10 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Image Grid.Column="0" Source="/Resources/TopCommandBar/Open.png" Stretch="Uniform"
|
<Image Grid.Column="0" Source="/Resources/TopCommandBar/Open.png" Stretch="Uniform" HorizontalAlignment="Left"/>
|
||||||
HorizontalAlignment="Left"/>
|
<TextBlock Grid.Column="1"
|
||||||
<TextBlock Grid.Column="1" Text="{Binding OpenMsg}" FontSize="15"
|
Text="{Binding OpenMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{DynamicResource LauncherTxBl}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports System.IO
|
|
||||||
|
|
||||||
Public Class LauncherVM
|
Public Class LauncherVM
|
||||||
' Riferimento al MainWindowVM
|
' Riferimento al MainWindowVM
|
||||||
@@ -131,7 +130,6 @@ Public Class LauncherVM
|
|||||||
|
|
||||||
#End Region ' CloseOptionsCommand
|
#End Region ' CloseOptionsCommand
|
||||||
|
|
||||||
|
|
||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="MainWindowV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="MainWindowV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
DataContext="{StaticResource MainWindowVM}"
|
DataContext="{StaticResource MainWindowVM}"
|
||||||
Title="{Binding ProjectNameMsg}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding ProjectNameMsg}" Icon="/Resources/EgtDOOR.ico"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
MinHeight="600" MinWidth="800"
|
MinHeight="600" MinWidth="800"
|
||||||
AboutBoxCommand="{Binding AboutBoxCommand}" WindowStyle="None" ResizeMode="NoResize"
|
AboutBoxCommand="{Binding AboutBoxCommand}" WindowStyle="None" ResizeMode="NoResize"
|
||||||
CloseCommand="{Binding CloseApplicationCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
CloseCommand="{Binding CloseApplicationCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
||||||
<EgtWPFLib5:EgtCustomWindow.InputBindings>
|
<EgtWPFLib5:EgtCustomWindow.InputBindings>
|
||||||
<KeyBinding Key="Enter" Command="{Binding DataContext.RefreshCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>
|
<KeyBinding Key="Enter" Command="{Binding DataContext.RefreshCmd,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>
|
||||||
<KeyBinding Key="F1" Command="{Binding OptionGuideCmd}"/>
|
<KeyBinding Key="F1" Command="{Binding OptionGuideCmd}"/>
|
||||||
@@ -32,11 +32,11 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!--<EgtDOORCreator:AssemblyManagerV Grid.Column="0" DataContext="{StaticResource AssemblyManagerVM}"/>-->
|
<!--<EgtDOORCreator:AssemblyManagerV Grid.Column="0" DataContext="{StaticResource AssemblyManagerVM}"/>-->
|
||||||
<ContentControl Grid.Column="{Binding AssemblyManagerDisposition}" Grid.Row="0" Content="{Binding AssemblyManagerControl}"/>
|
<ContentControl Grid.Row="0" Grid.Column="{Binding AssemblyManagerDisposition}" Content="{Binding AssemblyManagerControl}"/>
|
||||||
<ContentControl Grid.Column="{Binding PageControlDisposition}" Grid.Row="1" Content="{Binding PageControl}"/>
|
<ContentControl Grid.Row="1" Grid.Column="{Binding PageControlDisposition}" Content="{Binding PageControl}"/>
|
||||||
<!--<EgtDOORCreator:SceneManagerV Grid.Column="{Binding SceneManagerDiposition}" Grid.RowSpan="2" DataContext="{StaticResource SceneManagerVM}"/>-->
|
<!--<EgtDOORCreator:SceneManagerV Grid.Column="{Binding SceneManagerDiposition}" Grid.RowSpan="2" DataContext="{StaticResource SceneManagerVM}"/>-->
|
||||||
<!--<EgtDOORCreator:SceneManagerV Grid.Column="0" Grid.RowSpan="2" DataContext="{StaticResource SceneManagerVM}"/>-->
|
<!--<EgtDOORCreator:SceneManagerV Grid.Column="0" Grid.RowSpan="2" DataContext="{StaticResource SceneManagerVM}"/>-->
|
||||||
<ContentControl Grid.Column="{Binding SceneManagerDiposition}" Grid.RowSpan="2" Content="{Binding SceneManagerControl}"/>
|
<ContentControl Grid.RowSpan="2" Grid.Column="{Binding SceneManagerDiposition}" Content="{Binding SceneManagerControl}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ Class MainWindowV
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub MainWindowV_Init(sender As Object, e As EventArgs) Handles Me.Initialized
|
||||||
|
' Carico il tema del programma
|
||||||
|
Map.refMainWindowVM.Themes_StartUp()
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub MainWindowV_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
|
Private Sub MainWindowV_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
|
||||||
' Carico e imposto posizione finestra
|
' Carico e imposto posizione finestra
|
||||||
WinPosFromIniToWindow(S_GENERAL, K_WINPLACE, Me)
|
WinPosFromIniToWindow(S_GENERAL, K_WINPLACE, Me)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Public Class MainWindowVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Visibility)
|
Set(value As Visibility)
|
||||||
m_VisibilityAssemblyManager = value
|
m_VisibilityAssemblyManager = value
|
||||||
NotifyPropertyChanged("VisibilityAssemblyManager")
|
NotifyPropertyChanged(NameOf(VisibilityAssemblyManager))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ Public Class MainWindowVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_ProjectNameMsg = "EgtDOORCreator - " & value
|
m_ProjectNameMsg = "EgtDOORCreator - " & value
|
||||||
NotifyPropertyChanged("ProjectNameMsg")
|
NotifyPropertyChanged(NameOf(ProjectNameMsg))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -35,8 +35,9 @@ Public Class MainWindowVM
|
|||||||
Public ReadOnly Property Launcher As LauncherV
|
Public ReadOnly Property Launcher As LauncherV
|
||||||
Get
|
Get
|
||||||
If IsNothing(m_Launcher) Then
|
If IsNothing(m_Launcher) Then
|
||||||
m_Launcher = New LauncherV
|
m_Launcher = New LauncherV With {
|
||||||
m_Launcher.DataContext = New LauncherVM(Me)
|
.DataContext = New LauncherVM(Me)
|
||||||
|
}
|
||||||
End If
|
End If
|
||||||
Return m_Launcher
|
Return m_Launcher
|
||||||
End Get
|
End Get
|
||||||
@@ -65,10 +66,13 @@ Public Class MainWindowVM
|
|||||||
Return m_SelectedPage
|
Return m_SelectedPage
|
||||||
End Get
|
End Get
|
||||||
Set(value As ListPageEnum)
|
Set(value As ListPageEnum)
|
||||||
m_SelectedPage = value
|
' Verifico che sia una vera modifica
|
||||||
NotifyPropertyChanged("PageControl")
|
If m_SelectedPage <> value Then
|
||||||
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
m_SelectedPage = value
|
||||||
Map.refInstrumentPanelVM.NotifyPropertyChanged("DimensionVisibility")
|
NotifyPropertyChanged(NameOf(PageControl))
|
||||||
|
If Not IsNothing(Map.refInstrumentPanelVM) Then
|
||||||
|
Map.refInstrumentPanelVM.NotifyPropertyChanged(NameOf(Map.refInstrumentPanelVM.DimensionVisibility))
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
@@ -86,36 +90,36 @@ Public Class MainWindowVM
|
|||||||
Public ReadOnly Property PageControl As ContentControl
|
Public ReadOnly Property PageControl As ContentControl
|
||||||
Get
|
Get
|
||||||
If m_SelectedPage = ListPageEnum.nDDFPage Then
|
If m_SelectedPage = ListPageEnum.nDDFPage Then
|
||||||
If OptionModule.m_SingleDoor then
|
If OptionModule.m_SingleDoor Then
|
||||||
VisibilityAssemblyManager = Visibility.Hidden
|
VisibilityAssemblyManager = Visibility.Hidden
|
||||||
Else
|
Else
|
||||||
VisibilityAssemblyManager = Visibility.Visible
|
VisibilityAssemblyManager = Visibility.Visible
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("AssemblyManagerControl")
|
NotifyPropertyChanged(NameOf(AssemblyManagerControl))
|
||||||
NotifyPropertyChanged("ProjectManagerControl")
|
NotifyPropertyChanged(NameOf(ProjectManagerControl))
|
||||||
Return m_PartPage
|
Return m_PartPage
|
||||||
ElseIf m_SelectedPage = ListPageEnum.nAssemblyPage Then
|
ElseIf m_SelectedPage = ListPageEnum.nAssemblyPage Then
|
||||||
If OptionModule.m_SingleDoor then
|
If OptionModule.m_SingleDoor Then
|
||||||
VisibilityAssemblyManager = Visibility.Hidden
|
VisibilityAssemblyManager = Visibility.Hidden
|
||||||
Else
|
Else
|
||||||
VisibilityAssemblyManager = Visibility.Visible
|
VisibilityAssemblyManager = Visibility.Visible
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("AssemblyManagerControl")
|
NotifyPropertyChanged(NameOf(AssemblyManagerControl))
|
||||||
NotifyPropertyChanged("ProjectManagerControl")
|
NotifyPropertyChanged(NameOf(ProjectManagerControl))
|
||||||
Return m_AssemblyPage
|
Return m_AssemblyPage
|
||||||
ElseIf m_SelectedPage = ListPageEnum.nHardwarePage Then
|
ElseIf m_SelectedPage = ListPageEnum.nHardwarePage Then
|
||||||
VisibilityAssemblyManager = Visibility.Collapsed
|
VisibilityAssemblyManager = Visibility.Collapsed
|
||||||
NotifyPropertyChanged("AssemblyManagerControl")
|
NotifyPropertyChanged(NameOf(AssemblyManagerControl))
|
||||||
NotifyPropertyChanged("ProjectManagerControl")
|
NotifyPropertyChanged(NameOf(ProjectManagerControl))
|
||||||
Return m_HardwarePage
|
Return m_HardwarePage
|
||||||
Else
|
Else
|
||||||
If OptionModule.m_SingleDoor then
|
If OptionModule.m_SingleDoor Then
|
||||||
VisibilityAssemblyManager = Visibility.Hidden
|
VisibilityAssemblyManager = Visibility.Hidden
|
||||||
Else
|
Else
|
||||||
VisibilityAssemblyManager = Visibility.Visible
|
VisibilityAssemblyManager = Visibility.Visible
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("AssemblyManagerControl")
|
NotifyPropertyChanged(NameOf(AssemblyManagerControl))
|
||||||
NotifyPropertyChanged("ProjectManagerControl")
|
NotifyPropertyChanged(NameOf(ProjectManagerControl))
|
||||||
Return Nothing
|
Return Nothing
|
||||||
End If
|
End If
|
||||||
End Get
|
End Get
|
||||||
@@ -139,7 +143,7 @@ Public Class MainWindowVM
|
|||||||
|
|
||||||
Public ReadOnly Property ProjectManagerControl As ContentControl
|
Public ReadOnly Property ProjectManagerControl As ContentControl
|
||||||
Get
|
Get
|
||||||
If m_SelectedPage <> ListPageEnum.nHardwarePage then
|
If m_SelectedPage <> ListPageEnum.nHardwarePage Then
|
||||||
Return m_ProjectManager
|
Return m_ProjectManager
|
||||||
Else
|
Else
|
||||||
ProjectNameMsg = "HardwareManager"
|
ProjectNameMsg = "HardwareManager"
|
||||||
@@ -156,21 +160,28 @@ Public Class MainWindowVM
|
|||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
Map.SetRefMainWindowVM(Me)
|
Map.SetRefMainWindowVM(Me)
|
||||||
m_AssemblyPage = New AssemblyPageV
|
m_AssemblyPage = New AssemblyPageV With {
|
||||||
m_AssemblyPage.DataContext = New AssemblyPageVM
|
.DataContext = New AssemblyPageVM
|
||||||
m_ProjectManagerHardware = New ProjectManagerHardwareV
|
}
|
||||||
m_ProjectManagerHardware.DataContext = New ProjectManagerHardwareVM
|
m_ProjectManagerHardware = New ProjectManagerHardwareV With {
|
||||||
m_ProjectManager = New ProjectManagerV
|
.DataContext = New ProjectManagerHardwareVM
|
||||||
m_ProjectManager.DataContext = New ProjectManagerVM
|
}
|
||||||
m_PartPage = New PartPageV
|
m_ProjectManager = New ProjectManagerV With {
|
||||||
m_PartPage.DataContext = New PartPageVM
|
.DataContext = New ProjectManagerVM
|
||||||
m_HardwarePage = New HardwarePageV
|
}
|
||||||
m_HardwarePage.DataContext = New HardwarePageVM
|
m_PartPage = New PartPageV With {
|
||||||
m_AssemblyManager = New AssemblyManagerV
|
.DataContext = New PartPageVM
|
||||||
m_AssemblyManager.DataContext = New AssemblyManagerVM
|
}
|
||||||
|
m_HardwarePage = New HardwarePageV With {
|
||||||
|
.DataContext = New HardwarePageVM
|
||||||
|
}
|
||||||
|
m_AssemblyManager = New AssemblyManagerV With {
|
||||||
|
.DataContext = New AssemblyManagerVM
|
||||||
|
}
|
||||||
' inserisco la scena
|
' inserisco la scena
|
||||||
m_SceneManager = New SceneManagerV
|
m_SceneManager = New SceneManagerV With {
|
||||||
m_SceneManager.DataContext = New SceneManagerVM
|
.DataContext = New SceneManagerVM
|
||||||
|
}
|
||||||
Dim OptionsPage As OptionsVM = OptionPage
|
Dim OptionsPage As OptionsVM = OptionPage
|
||||||
InitWatcher()
|
InitWatcher()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -239,6 +250,17 @@ Public Class MainWindowVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub Themes_StartUp()
|
||||||
|
Dim app As Application = CType(Application.Current, Application)
|
||||||
|
Dim nIndexTheme As Integer = 0
|
||||||
|
If nIndexTheme = 0 Then
|
||||||
|
app.ChangeTheme(New Uri("/EgtDOORCreator;component/EgtDOORCreatorDictionary.xaml", UriKind.Relative))
|
||||||
|
End If
|
||||||
|
If nIndexTheme = 1 Then
|
||||||
|
app.ChangeTheme(New Uri("/EgtDOORCreator;component/EgtDOORCreatorDarkDictionary.xaml", UriKind.Relative))
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region ' Methods
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "Watcher"
|
#Region "Watcher"
|
||||||
@@ -313,7 +335,7 @@ Public Class MainWindowVM
|
|||||||
If m_SelectedPage = ListPageEnum.nHardwarePage Then Return
|
If m_SelectedPage = ListPageEnum.nHardwarePage Then Return
|
||||||
If StartReload Then Return
|
If StartReload Then Return
|
||||||
' 50545 = It has been deleted file: {0}, {1}.
|
' 50545 = It has been deleted file: {0}, {1}.
|
||||||
Dim Message As String = String.Format(EgtMsg(50545), e.FullPath, e.ChangeType)
|
Dim Message As String = String.Format(EgtMsg(50545), e.FullPath, e.ChangeType)
|
||||||
selectedWatcher = WatcherCalling.OnDeleted
|
selectedWatcher = WatcherCalling.OnDeleted
|
||||||
Application.Current.Dispatcher.BeginInvoke(New Action(Sub()
|
Application.Current.Dispatcher.BeginInvoke(New Action(Sub()
|
||||||
RaiseEvent Er(Message, e.FullPath)
|
RaiseEvent Er(Message, e.FullPath)
|
||||||
@@ -326,7 +348,7 @@ Public Class MainWindowVM
|
|||||||
If m_SelectedPage = ListPageEnum.nHardwarePage Then Return
|
If m_SelectedPage = ListPageEnum.nHardwarePage Then Return
|
||||||
If StartReload Then Return
|
If StartReload Then Return
|
||||||
' 50543 = It has been renamed file: {0}, {1}.
|
' 50543 = It has been renamed file: {0}, {1}.
|
||||||
Dim Message As String = String.Format(EgtMsg(50543), e.FullPath, e.ChangeType)
|
Dim Message As String = String.Format(EgtMsg(50543), e.FullPath, e.ChangeType)
|
||||||
selectedWatcher = WatcherCalling.OnRenamed
|
selectedWatcher = WatcherCalling.OnRenamed
|
||||||
Application.Current.Dispatcher.BeginInvoke(New Action(Sub()
|
Application.Current.Dispatcher.BeginInvoke(New Action(Sub()
|
||||||
RaiseEvent Er(Message, e.FullPath)
|
RaiseEvent Er(Message, e.FullPath)
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Module Map
|
Module Map
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_refMainWindowVM As MainWindowVM
|
Private m_refMainWindowVM As MainWindowVM
|
||||||
Private m_refStatusBarVM As StatusBarVM
|
Private m_refStatusBarVM As StatusBarVM
|
||||||
Private m_refProjectManagerVM As ProjectManagerVM
|
Private m_refProjectManagerVM As ProjectManagerVM
|
||||||
@@ -23,9 +25,12 @@
|
|||||||
|
|
||||||
Private m_refPrintSceneHostV As PrintSceneHostV
|
Private m_refPrintSceneHostV As PrintSceneHostV
|
||||||
Private m_refHardwareHelpSceneHostV As HardwareHelpSceneHostV
|
Private m_refHardwareHelpSceneHostV As HardwareHelpSceneHostV
|
||||||
|
Private m_refJambsAndDoorsSceneHostV As JambsAndDoorsSceneHostV
|
||||||
|
|
||||||
Private m_refOptionsVM As OptionsVM
|
Private m_refOptionsVM As OptionsVM
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
#Region "Get"
|
#Region "Get"
|
||||||
|
|
||||||
Public ReadOnly Property refMainWindowVM As MainWindowVM
|
Public ReadOnly Property refMainWindowVM As MainWindowVM
|
||||||
@@ -148,6 +153,12 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property refJambsAndDoorsSceneHostV As JambsAndDoorsSceneHostV
|
||||||
|
Get
|
||||||
|
Return m_refJambsAndDoorsSceneHostV
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
#End Region ' Get
|
#End Region ' Get
|
||||||
|
|
||||||
#Region "Set"
|
#Region "Set"
|
||||||
@@ -252,6 +263,11 @@
|
|||||||
Return Not IsNothing(m_refHardwareHelpSceneHostV)
|
Return Not IsNothing(m_refHardwareHelpSceneHostV)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Function SetRefJambsAndDoorsSceneHostV(JambsAndDoorsSceneHostV As JambsAndDoorsSceneHostV) As Boolean
|
||||||
|
m_refJambsAndDoorsSceneHostV = JambsAndDoorsSceneHostV
|
||||||
|
Return Not IsNothing(m_refJambsAndDoorsSceneHostV)
|
||||||
|
End Function
|
||||||
|
|
||||||
#End Region ' Set
|
#End Region ' Set
|
||||||
|
|
||||||
#Region "Init"
|
#Region "Init"
|
||||||
|
|||||||
@@ -72,5 +72,5 @@ Imports System.Windows
|
|||||||
' by using the '*' as shown below:
|
' by using the '*' as shown below:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.6.12.1")>
|
<Assembly: AssemblyVersion("2.6.12.2")>
|
||||||
<Assembly: AssemblyFileVersion("2.6.12.1")>
|
<Assembly: AssemblyFileVersion("2.6.12.2")>
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="NewHardwareV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="NewHardwareV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
||||||
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
Height="200" Width="350">
|
||||||
Height="200" Width="350">
|
|
||||||
|
|
||||||
<Grid Margin="2">
|
<Grid Margin="2">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
@@ -22,41 +21,47 @@
|
|||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<!--<RowDefinition Height="1*"/>-->
|
<!--<RowDefinition Height="1*"/>-->
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<ComboBox Grid.Column="1" Grid.Row="0"
|
<ComboBox Grid.Row="0"
|
||||||
ItemsSource="{Binding BrandList}"
|
Grid.Column="1"
|
||||||
SelectedItem="{Binding SelBrand}"
|
ItemsSource="{Binding BrandList}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
SelectedItem="{Binding SelBrand}"
|
||||||
Margin="0,2,15,2"/>
|
Style="{StaticResource BrandListCmBx}"/>
|
||||||
<TextBlock Grid.Column="0" Grid.Row="0"
|
<TextBlock Grid.Row="0"
|
||||||
Text="{Binding BrandMsg}" VerticalAlignment="Center"
|
Grid.Column="0"
|
||||||
Margin="15,2,0,0"
|
Text="{Binding BrandMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{StaticResource BrandTxBl}"/>
|
||||||
<TextBox Grid.Column="1" Grid.Row="1"
|
<TextBox Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
Text="{Binding Template}"
|
Text="{Binding Template}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{StaticResource TemplateTxBx}"/>
|
||||||
Margin="0,2,15,0"/>
|
<TextBlock Grid.Row="1"
|
||||||
<TextBlock Grid.Column="0" Grid.Row="1" Text="{Binding TemplateMsg}" VerticalAlignment="Center"
|
Grid.Column="0"
|
||||||
Margin="15,2,0,0"
|
Text="{Binding TemplateMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{StaticResource BrandTxBl}"/>
|
||||||
<ComboBox Grid.Column="1" Grid.Row="2"
|
<ComboBox Grid.Row="2"
|
||||||
Visibility="{Binding TypeVisibility}"
|
Grid.Column="1"
|
||||||
ItemsSource="{Binding TypeList}"
|
DisplayMemberPath="Name"
|
||||||
SelectedItem="{Binding SelType}"
|
ItemsSource="{Binding TypeList}"
|
||||||
DisplayMemberPath="Name"
|
SelectedItem="{Binding SelType}"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
Visibility="{Binding TypeVisibility}"
|
||||||
Margin="0,2,15,2" VerticalAlignment="Center"/>
|
Style="{StaticResource TypeListCmBx}"/>
|
||||||
<TextBlock Grid.Column="0" Grid.Row="2"
|
<TextBlock Grid.Row="2"
|
||||||
|
Grid.Column="0"
|
||||||
Visibility="{Binding TypeVisibility}"
|
Visibility="{Binding TypeVisibility}"
|
||||||
Text="{Binding TypeMsg}" VerticalAlignment="Center"
|
Text="{Binding TypeMsg}"
|
||||||
Margin="15,2,0,0"
|
Style="{StaticResource BrandTxBl}"/>
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
<UniformGrid Grid.Row="3"
|
||||||
<UniformGrid Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2" Columns="2">
|
Grid.Column="0"
|
||||||
<Button Grid.Column="0" Content="Save"
|
Grid.ColumnSpan="2"
|
||||||
Margin="55,5,55,3"
|
Columns="2">
|
||||||
Command="{Binding SaveCmd}"/>
|
<Button Grid.Column="0"
|
||||||
<Button Grid.Column="1" Content="Cancel"
|
Content="Save"
|
||||||
Margin="55,5,55,3"
|
Command="{Binding SaveCmd}"
|
||||||
Command="{Binding CancelCmd}"/>
|
Style="{DynamicResource TmpCmdBtn}"/>
|
||||||
|
<Button Grid.Column="1"
|
||||||
|
Content="Cancel"
|
||||||
|
Command="{Binding CancelCmd}"
|
||||||
|
Style="{DynamicResource TmpCmdBtn}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.IO
|
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
|
|
||||||
@@ -8,11 +7,86 @@ Imports EgtUILib
|
|||||||
Public Class NewHardwareVM
|
Public Class NewHardwareVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELD & PROPERTIES"
|
||||||
|
|
||||||
Friend Enum CommandList As Integer
|
Friend Enum CommandList As Integer
|
||||||
nDuplicate
|
nDuplicate
|
||||||
nNew
|
nNew
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
|
Private m_HardwareGeneral As CompoType
|
||||||
|
|
||||||
|
Private m_ForceToQuit As Boolean = False
|
||||||
|
Public Property ForceToQuit As Boolean
|
||||||
|
Get
|
||||||
|
Return m_ForceToQuit
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_ForceToQuit = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_BrandList As New ObservableCollection(Of String)
|
||||||
|
Public ReadOnly Property BrandList As ObservableCollection(Of String)
|
||||||
|
Get
|
||||||
|
Return m_BrandList
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_SelBrand As String
|
||||||
|
Public Property SelBrand As String
|
||||||
|
Get
|
||||||
|
Return m_SelBrand
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_SelBrand = value
|
||||||
|
NotifyPropertyChanged(NameOf(SelBrand))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_Template As String
|
||||||
|
Public Property Template As String
|
||||||
|
Get
|
||||||
|
Return m_Template
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_Template = value
|
||||||
|
NotifyPropertyChanged(NameOf(Template))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_TypeList As New List(Of TypeHardware)
|
||||||
|
Public ReadOnly Property TypeList As List(Of TypeHardware)
|
||||||
|
Get
|
||||||
|
Return m_TypeList
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_Type As New TypeHardware(TYPE_STD_TEMPLATE, TYPE_STD_TEMPLATE_INI)
|
||||||
|
Public Property SelType As TypeHardware
|
||||||
|
Get
|
||||||
|
Return m_Type
|
||||||
|
End Get
|
||||||
|
Set(value As TypeHardware)
|
||||||
|
m_Type = value
|
||||||
|
NotifyPropertyChanged(NameOf(SelType))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_TypeVisibility As Visibility = Visibility.Collapsed
|
||||||
|
Public Property TypeVisibility As Visibility
|
||||||
|
Get
|
||||||
|
Return m_TypeVisibility
|
||||||
|
End Get
|
||||||
|
Set(value As Visibility)
|
||||||
|
m_TypeVisibility = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "MESSAGES"
|
||||||
|
|
||||||
Private m_Command As Integer
|
Private m_Command As Integer
|
||||||
Public ReadOnly Property Command As Integer
|
Public ReadOnly Property Command As Integer
|
||||||
Get
|
Get
|
||||||
@@ -44,79 +118,14 @@ Public Class NewHardwareVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Messages
|
||||||
|
|
||||||
' Comandi
|
' Comandi
|
||||||
Private m_cmdSave As ICommand
|
Private m_cmdSave As ICommand
|
||||||
Private m_cmdCancel As ICommand
|
Private m_cmdCancel As ICommand
|
||||||
Private m_CmdCloseNewHardware As ICommand
|
Private m_CmdCloseNewHardware As ICommand
|
||||||
|
|
||||||
Private m_HardwareGeneral As CompoType
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Private m_ForceToQuit As Boolean = False
|
|
||||||
Public Property ForceToQuit As Boolean
|
|
||||||
Get
|
|
||||||
Return m_ForceToQuit
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_ForceToQuit = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_BrandList As New ObservableCollection(Of String)
|
|
||||||
Public ReadOnly Property BrandList As ObservableCollection(Of String)
|
|
||||||
Get
|
|
||||||
Return m_BrandList
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_SelBrand As String
|
|
||||||
Public Property SelBrand As String
|
|
||||||
Get
|
|
||||||
Return m_SelBrand
|
|
||||||
End Get
|
|
||||||
Set(value As String)
|
|
||||||
m_SelBrand = value
|
|
||||||
NotifyPropertyChanged("SelBrand")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_Template As String
|
|
||||||
Public Property Template As String
|
|
||||||
Get
|
|
||||||
Return m_Template
|
|
||||||
End Get
|
|
||||||
Set(value As String)
|
|
||||||
m_Template = value
|
|
||||||
NotifyPropertyChanged("Template")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_TypeList As New List(Of TypeHardware)
|
|
||||||
Public ReadOnly Property TypeList As List(Of TypeHardware)
|
|
||||||
Get
|
|
||||||
Return m_TypeList
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_Type As New TypeHardware(TYPE_STD_TEMPLATE, TYPE_STD_TEMPLATE_INI)
|
|
||||||
Public Property SelType As TypeHardware
|
|
||||||
Get
|
|
||||||
Return m_Type
|
|
||||||
End Get
|
|
||||||
Set(value As TypeHardware)
|
|
||||||
m_Type = value
|
|
||||||
NotifyPropertyChanged("SelType")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_TypeVisibility As Visibility = Visibility.Collapsed
|
|
||||||
Public Property TypeVisibility As Visibility
|
|
||||||
Get
|
|
||||||
Return m_TypeVisibility
|
|
||||||
End Get
|
|
||||||
Set(value As Visibility)
|
|
||||||
m_TypeVisibility = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Sub New(HardwareGeneral As CompoType, nCommand As Integer)
|
Sub New(HardwareGeneral As CompoType, nCommand As Integer)
|
||||||
m_Command = nCommand
|
m_Command = nCommand
|
||||||
@@ -127,7 +136,7 @@ Public Class NewHardwareVM
|
|||||||
For Each Folder In m_HardwareGeneral.HardwareFolderList
|
For Each Folder In m_HardwareGeneral.HardwareFolderList
|
||||||
m_BrandList.Add(Folder.ModelDirGraphic)
|
m_BrandList.Add(Folder.ModelDirGraphic)
|
||||||
Next
|
Next
|
||||||
NotifyPropertyChanged("BrandList")
|
NotifyPropertyChanged(NameOf(BrandList))
|
||||||
Dim SelItemindex As Integer = 0
|
Dim SelItemindex As Integer = 0
|
||||||
While m_BrandList(SelItemindex) <> Map.refHardwarePageVM.CurrHardware.SelBrand.ModelDirGraphic And SelItemindex < m_BrandList.Count - 1
|
While m_BrandList(SelItemindex) <> Map.refHardwarePageVM.CurrHardware.SelBrand.ModelDirGraphic And SelItemindex < m_BrandList.Count - 1
|
||||||
SelItemindex += 1
|
SelItemindex += 1
|
||||||
@@ -137,13 +146,19 @@ Public Class NewHardwareVM
|
|||||||
If Map.refHardwarePageVM.CurrHardware.TypeList.Count > 1 Then
|
If Map.refHardwarePageVM.CurrHardware.TypeList.Count > 1 Then
|
||||||
TypeVisibility = Visibility.Visible
|
TypeVisibility = Visibility.Visible
|
||||||
m_TypeList = Map.refHardwarePageVM.CurrHardware.TypeList
|
m_TypeList = Map.refHardwarePageVM.CurrHardware.TypeList
|
||||||
NotifyPropertyChanged("TypeList")
|
NotifyPropertyChanged(NameOf(TypeList))
|
||||||
SelType = TypeList(0)
|
SelType = TypeList(0)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "SaveCommand"
|
||||||
|
|
||||||
' Returns a command that manage the MainWindow_Unloaded command
|
' Returns a command that manage the MainWindow_Unloaded command
|
||||||
Public ReadOnly Property SaveCmd() As ICommand
|
Public ReadOnly Property SaveCmd() As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -168,6 +183,10 @@ Public Class NewHardwareVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' SaveCommand
|
||||||
|
|
||||||
|
#Region "CancelCommand"
|
||||||
|
|
||||||
' Returns a command that manage the MainWindow_Unloaded command
|
' Returns a command that manage the MainWindow_Unloaded command
|
||||||
Public ReadOnly Property CancelCmd() As ICommand
|
Public ReadOnly Property CancelCmd() As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -184,6 +203,8 @@ Public Class NewHardwareVM
|
|||||||
CloseNewHardware()
|
CloseNewHardware()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CancelCommand
|
||||||
|
|
||||||
#Region "CloseNewHardwareCommand"
|
#Region "CloseNewHardwareCommand"
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
@@ -214,4 +235,6 @@ Public Class NewHardwareVM
|
|||||||
|
|
||||||
#End Region ' CloseOptionsCommand
|
#End Region ' CloseOptionsCommand
|
||||||
|
|
||||||
|
#End Region ' Commands
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -4,9 +4,15 @@ Imports EgtUILib
|
|||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Friend Module OptionModule
|
Friend Module OptionModule
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' flag per modalità di visualizzazione file (solo lettura)
|
' flag per modalità di visualizzazione file (solo lettura)
|
||||||
Friend ReadOnlyDDF As Boolean = False
|
Friend ReadOnlyDDF As Boolean = False
|
||||||
|
|
||||||
|
' selezione tema (default=0)
|
||||||
|
Friend m_SelectedThema As Integer = 0
|
||||||
|
|
||||||
' flag per forzare l'aggiornamento delle dimensioni anta dei file DDT
|
' flag per forzare l'aggiornamento delle dimensioni anta dei file DDT
|
||||||
Friend AdjustDDT As Boolean = False
|
Friend AdjustDDT As Boolean = False
|
||||||
Friend FileNameFromArgs As String = String.Empty
|
Friend FileNameFromArgs As String = String.Empty
|
||||||
@@ -196,6 +202,10 @@ Friend Module OptionModule
|
|||||||
Friend m_DimensionHardware As Visibility
|
Friend m_DimensionHardware As Visibility
|
||||||
Friend m_DimensionDoor As Visibility
|
Friend m_DimensionDoor As Visibility
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' iniziliazzo il la lettura dei messaggi
|
' iniziliazzo il la lettura dei messaggi
|
||||||
Friend Sub ReadMessages()
|
Friend Sub ReadMessages()
|
||||||
' Leggo elenco lingue disponibili da file ini
|
' Leggo elenco lingue disponibili da file ini
|
||||||
@@ -378,6 +388,8 @@ Friend Module OptionModule
|
|||||||
|
|
||||||
m_AskMeAgainConfirm = If(GetMainPrivateProfileInt(S_GENERAL, K_ASKMEAGAINCONFIRM, 1) = 1, True, False)
|
m_AskMeAgainConfirm = If(GetMainPrivateProfileInt(S_GENERAL, K_ASKMEAGAINCONFIRM, 1) = 1, True, False)
|
||||||
|
|
||||||
|
m_SelectedThema = GetMainPrivateProfileInt(S_GENERAL, K_THEMA, 0)
|
||||||
|
|
||||||
' leggo il tipo di Bevel selezionato
|
' leggo il tipo di Bevel selezionato
|
||||||
DefaultGetPrivateProfilesBevel(S_EDGE, K_BEVELU_INI, m_bBevelUp)
|
DefaultGetPrivateProfilesBevel(S_EDGE, K_BEVELU_INI, m_bBevelUp)
|
||||||
DefaultGetPrivateProfilesBevel(S_EDGE, K_BEVELD_INI, m_bBevelDown)
|
DefaultGetPrivateProfilesBevel(S_EDGE, K_BEVELD_INI, m_bBevelDown)
|
||||||
@@ -407,8 +419,8 @@ Friend Module OptionModule
|
|||||||
DefaultGetPrivateProfileObservableCollection("Material", "MaterialList", MaterialList)
|
DefaultGetPrivateProfileObservableCollection("Material", "MaterialList", MaterialList)
|
||||||
LoadMaterialList(MaterialList)
|
LoadMaterialList(MaterialList)
|
||||||
' se eiste un solo materiale allora non mostro a vodeo
|
' se eiste un solo materiale allora non mostro a vodeo
|
||||||
If MaterialList.Count < 2 then
|
If MaterialList.Count < 2 Then
|
||||||
m_MaterialIsVisible = Visibility.Collapsed
|
m_MaterialIsVisible = Visibility.Collapsed
|
||||||
End If
|
End If
|
||||||
Dim PropertyList As New ObservableCollection(Of String)
|
Dim PropertyList As New ObservableCollection(Of String)
|
||||||
' se non trovo l'elenco dei materiali allora eseguo le vecchie istruzioni
|
' se non trovo l'elenco dei materiali allora eseguo le vecchie istruzioni
|
||||||
@@ -785,14 +797,14 @@ Friend Module OptionModule
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend sub LoadMaterialList (ByVal List As ObservableCollection(Of string))
|
Friend Sub LoadMaterialList(ByVal List As ObservableCollection(Of String))
|
||||||
If IsNothing(List) then Return
|
If IsNothing(List) Then Return
|
||||||
For Each Material In List
|
For Each Material In List
|
||||||
Dim Item As String() = Material.Split("/"c)
|
Dim Item As String() = Material.Split("/"c)
|
||||||
If Item.Count < 2 then
|
If Item.Count < 2 Then
|
||||||
m_MaterialList.Add(New MaterialType(Item(0),Item(0)))
|
m_MaterialList.Add(New MaterialType(Item(0), Item(0)))
|
||||||
else
|
Else
|
||||||
m_MaterialList.Add(New MaterialType(Item(0),Item(1)))
|
m_MaterialList.Add(New MaterialType(Item(0), Item(1)))
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
@@ -829,14 +841,14 @@ Friend Module OptionModule
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
Dim bNoneExists As Boolean = false
|
Dim bNoneExists As Boolean = False
|
||||||
For Each Item in ListToBeLoaded
|
For Each Item In ListToBeLoaded
|
||||||
If Item.Name = NONE_DDF then
|
If Item.Name = NONE_DDF Then
|
||||||
bNoneExists = true
|
bNoneExists = True
|
||||||
Exit for
|
Exit For
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
If Not bNoneExists then
|
If Not bNoneExists Then
|
||||||
ListToBeLoaded.Add(New PropertyItem(NONE_DDF, EgtMsg(50703), False))
|
ListToBeLoaded.Add(New PropertyItem(NONE_DDF, EgtMsg(50703), False))
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -881,8 +893,8 @@ Friend Module OptionModule
|
|||||||
LocalPart.SetPropertiesList(OptionModule.m_MaterialList(0).PropertiesList)
|
LocalPart.SetPropertiesList(OptionModule.m_MaterialList(0).PropertiesList)
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
' configurazione senza materiali
|
' configurazione senza materiali
|
||||||
If LocalPart.PropertiesList.Count > 0 Then LocalPart.PropertiesList.Clear()
|
If LocalPart.PropertiesList.Count > 0 Then LocalPart.PropertiesList.Clear()
|
||||||
For Each Item In OptionModule.m_PropertList
|
For Each Item In OptionModule.m_PropertList
|
||||||
LocalPart.PropertiesList.Add(New PropertyItem(Item.Name, Item.GraphicName, Item.IsChecked))
|
LocalPart.PropertiesList.Add(New PropertyItem(Item.Name, Item.GraphicName, Item.IsChecked))
|
||||||
Next
|
Next
|
||||||
@@ -1123,11 +1135,15 @@ Friend Module OptionModule
|
|||||||
EgtLuaResetGlobVar("CCD")
|
EgtLuaResetGlobVar("CCD")
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|
||||||
' Classe che identifica una lingua del programma con nome e path del file dei messaggi
|
' Classe che identifica una lingua del programma con nome e path del file dei messaggi
|
||||||
Public Class Language
|
Public Class Language
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_sName As String
|
Private m_sName As String
|
||||||
Private m_sFilePath As String
|
Private m_sFilePath As String
|
||||||
|
|
||||||
@@ -1149,15 +1165,23 @@ Public Class Language
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sName As String, sFilePath As String)
|
Sub New(sName As String, sFilePath As String)
|
||||||
Me.Name = sName
|
Me.Name = sName
|
||||||
Me.FilePath = sFilePath
|
Me.FilePath = sFilePath
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class MTable
|
Public Class MTable
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_sName As String
|
Private m_sName As String
|
||||||
Private m_sFilePath As String
|
Private m_sFilePath As String
|
||||||
|
|
||||||
@@ -1179,9 +1203,15 @@ Public Class MTable
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sName As String, sFilePath As String)
|
Sub New(sName As String, sFilePath As String)
|
||||||
Me.Name = sName
|
Me.Name = sName
|
||||||
Me.FilePath = sFilePath
|
Me.FilePath = sFilePath
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -11,7 +11,60 @@ Public Class OptionsVM
|
|||||||
' serve per definire l'indirizzo per la guida (senza aggiungere l'estenzione!)
|
' serve per definire l'indirizzo per la guida (senza aggiungere l'estenzione!)
|
||||||
Dim m_Chapter As String
|
Dim m_Chapter As String
|
||||||
|
|
||||||
#Region "HARDWARE PART"
|
#Region "THEMES"
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private m_ThemesDataService As New ThemesDataService()
|
||||||
|
|
||||||
|
Private m_Themes As New ObservableCollection(Of ThemeM)
|
||||||
|
Public Property Themes As ObservableCollection(Of ThemeM)
|
||||||
|
Get
|
||||||
|
Return m_Themes
|
||||||
|
End Get
|
||||||
|
Set(value As ObservableCollection(Of ThemeM))
|
||||||
|
|
||||||
|
If Not m_Themes.Equals(value) Then
|
||||||
|
m_Themes = value
|
||||||
|
End If
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_SelectedTheme As ThemeM
|
||||||
|
Public Property SelectedTheme As ThemeM
|
||||||
|
Get
|
||||||
|
Return m_SelectedTheme
|
||||||
|
End Get
|
||||||
|
Set(value As ThemeM)
|
||||||
|
m_ThemesDataService.SetTheme(value)
|
||||||
|
m_SelectedTheme = value
|
||||||
|
' salvo in file ini la scelta del tema corrente
|
||||||
|
Dim IndexThema As Integer = Themes.IndexOf(m_SelectedTheme)
|
||||||
|
If IndexThema < 0 Then
|
||||||
|
IndexThema = 0
|
||||||
|
End If
|
||||||
|
WriteMainPrivateProfileString(S_GENERALINI, K_THEMA, IndexThema.ToString)
|
||||||
|
m_SelectedThema = IndexThema
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Public Sub SetThema(IndexThema As Integer)
|
||||||
|
If m_Themes.Count > 0 Then
|
||||||
|
m_ThemesDataService.SetTheme(m_Themes(IndexThema))
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
|
#End Region ' Themes
|
||||||
|
|
||||||
|
#Region "HARDWARE PART"
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_HardwarePartV As HardwarePartV
|
Private m_HardwarePartV As HardwarePartV
|
||||||
Private m_HardwarePartVM As HardwarePartVM
|
Private m_HardwarePartVM As HardwarePartVM
|
||||||
@@ -82,7 +135,7 @@ Public Class OptionsVM
|
|||||||
m_SelectedTabGeneral = value
|
m_SelectedTabGeneral = value
|
||||||
If m_SelectedTabGeneral = 2 Then
|
If m_SelectedTabGeneral = 2 Then
|
||||||
OptionModule.GetCurrentMachineInMTable()
|
OptionModule.GetCurrentMachineInMTable()
|
||||||
NotifyPropertyChanged("CurrentMachine")
|
NotifyPropertyChanged(NameOf(CurrentMachine))
|
||||||
m_OrigBaseDir = IniFile.m_sDoorsDirPath
|
m_OrigBaseDir = IniFile.m_sDoorsDirPath
|
||||||
m_OrigMTable = OptionModule.m_SelectedMTable.Name
|
m_OrigMTable = OptionModule.m_SelectedMTable.Name
|
||||||
End If
|
End If
|
||||||
@@ -99,8 +152,11 @@ Public Class OptionsVM
|
|||||||
Private m_OrigBaseDir As String = String.Empty
|
Private m_OrigBaseDir As String = String.Empty
|
||||||
Private m_OrigMTable As String = String.Empty
|
Private m_OrigMTable As String = String.Empty
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
#End Region ' Hardware_part
|
#End Region ' Hardware Part
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Public ReadOnly Property LanguageList As ObservableCollection(Of Language)
|
Public ReadOnly Property LanguageList As ObservableCollection(Of Language)
|
||||||
Get
|
Get
|
||||||
@@ -144,9 +200,9 @@ Public Class OptionsVM
|
|||||||
If Not IsNothing(value) AndAlso value IsNot OptionModule.m_SelectedMTable Then
|
If Not IsNothing(value) AndAlso value IsNot OptionModule.m_SelectedMTable Then
|
||||||
OptionModule.m_SelectedMTable = value
|
OptionModule.m_SelectedMTable = value
|
||||||
WriteMainPrivateProfileString(S_DOORS, K_MTABLE, OptionModule.m_SelectedMTable.FilePath)
|
WriteMainPrivateProfileString(S_DOORS, K_MTABLE, OptionModule.m_SelectedMTable.FilePath)
|
||||||
NotifyPropertyChanged("SelectedMTable")
|
NotifyPropertyChanged(NameOf(SelectedMTable))
|
||||||
OptionModule.GetCurrentMachineInMTable()
|
OptionModule.GetCurrentMachineInMTable()
|
||||||
NotifyPropertyChanged("CurrentMachine")
|
NotifyPropertyChanged(NameOf(CurrentMachine))
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
@@ -166,13 +222,13 @@ Public Class OptionsVM
|
|||||||
End If
|
End If
|
||||||
WriteMainPrivateProfileString(S_DOORS, K_BASEDIR, IniFile.m_sDoorsDirPath)
|
WriteMainPrivateProfileString(S_DOORS, K_BASEDIR, IniFile.m_sDoorsDirPath)
|
||||||
m_IsChangedConfig = True
|
m_IsChangedConfig = True
|
||||||
NotifyPropertyChanged("SelectedMTable")
|
NotifyPropertyChanged(NameOf(SelectedMTable))
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("MTableList")
|
NotifyPropertyChanged(NameOf(MTableList))
|
||||||
NotifyPropertyChanged("ConfigDir")
|
NotifyPropertyChanged(NameOf(ConfigDir))
|
||||||
OptionModule.GetCurrentMachineInMTable()
|
OptionModule.GetCurrentMachineInMTable()
|
||||||
NotifyPropertyChanged("CurrentMachine")
|
NotifyPropertyChanged(NameOf(CurrentMachine))
|
||||||
NotifyPropertyChanged("BaseDir")
|
NotifyPropertyChanged(NameOf(BaseDir))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -555,7 +611,6 @@ Public Class OptionsVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|
||||||
Public Property LockEdgeType As EdgeType
|
Public Property LockEdgeType As EdgeType
|
||||||
Get
|
Get
|
||||||
If m_LockEdgeType.IsActive = Visibility.Collapsed Then
|
If m_LockEdgeType.IsActive = Visibility.Collapsed Then
|
||||||
@@ -731,7 +786,7 @@ Public Class OptionsVM
|
|||||||
IniFile.m_MyProjectDir = value
|
IniFile.m_MyProjectDir = value
|
||||||
WriteMainPrivateProfileString(S_DOORS, K_MYPROJECTDIR, value)
|
WriteMainPrivateProfileString(S_DOORS, K_MYPROJECTDIR, value)
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("MyProjectDir")
|
NotifyPropertyChanged(NameOf(MyProjectDir))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -744,7 +799,7 @@ Public Class OptionsVM
|
|||||||
IniFile.m_MachinProject = value
|
IniFile.m_MachinProject = value
|
||||||
WriteMainPrivateProfileString(S_DOORS, K_MACHINDIR, value)
|
WriteMainPrivateProfileString(S_DOORS, K_MACHINDIR, value)
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("MachinDir")
|
NotifyPropertyChanged(NameOf(MachinDir))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -757,7 +812,7 @@ Public Class OptionsVM
|
|||||||
IniFile.m_TemplateDir = value
|
IniFile.m_TemplateDir = value
|
||||||
WriteMainPrivateProfileString(S_DOORS, K_TEMPLATEDIR, value)
|
WriteMainPrivateProfileString(S_DOORS, K_TEMPLATEDIR, value)
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged("TemplateDir")
|
NotifyPropertyChanged(NameOf(TemplateDir))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -895,7 +950,7 @@ Public Class OptionsVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
OptionModule.m_TotalDimension = value
|
OptionModule.m_TotalDimension = value
|
||||||
NotifyPropertyChanged("TotalDimension")
|
NotifyPropertyChanged(NameOf(TotalDimension))
|
||||||
' aggiorno la grafica
|
' aggiorno la grafica
|
||||||
If Not IsNothing(Map.refAssemblyPageVM) AndAlso Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) Then
|
If Not IsNothing(Map.refAssemblyPageVM) AndAlso Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) Then
|
||||||
Map.refAssemblyPageVM.CurrAssembly.Dimension = OptionModule.m_TotalDimension
|
Map.refAssemblyPageVM.CurrAssembly.Dimension = OptionModule.m_TotalDimension
|
||||||
@@ -917,7 +972,7 @@ Public Class OptionsVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
OptionModule.m_TotalHeight = value
|
OptionModule.m_TotalHeight = value
|
||||||
NotifyPropertyChanged("TotalHeight")
|
NotifyPropertyChanged(NameOf(TotalHeight))
|
||||||
'If Not IsNothing(Map.refAssemblyPageVM) AndAlso Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) Then
|
'If Not IsNothing(Map.refAssemblyPageVM) AndAlso Not IsNothing(Map.refAssemblyPageVM.CurrAssembly) Then
|
||||||
' Map.refAssemblyPageVM.CurrAssembly.SetDimension("Height")
|
' Map.refAssemblyPageVM.CurrAssembly.SetDimension("Height")
|
||||||
' Map.refSceneManagerVM.RefreshBtn()
|
' Map.refSceneManagerVM.RefreshBtn()
|
||||||
@@ -958,7 +1013,7 @@ Public Class OptionsVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
OptionModule.m_TotalWidth = value
|
OptionModule.m_TotalWidth = value
|
||||||
NotifyPropertyChanged("TotalWidth")
|
NotifyPropertyChanged(NameOf(TotalWidth))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -1098,6 +1153,7 @@ Public Class OptionsVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
#Region "Machining Assembly"
|
#Region "Machining Assembly"
|
||||||
|
|
||||||
Public Property LockEdgeMachiningAssembly As Boolean
|
Public Property LockEdgeMachiningAssembly As Boolean
|
||||||
Get
|
Get
|
||||||
Return OptionModule.m_LockEdgeMachiningAssembly
|
Return OptionModule.m_LockEdgeMachiningAssembly
|
||||||
@@ -1200,14 +1256,113 @@ Public Class OptionsVM
|
|||||||
|
|
||||||
#End Region ' Machining Assembly
|
#End Region ' Machining Assembly
|
||||||
|
|
||||||
'-------------------------------------------------------------------------------------------------------------------------------------------------------
|
Private m_BevelConfiguration As Visibility
|
||||||
|
Public ReadOnly Property BevelConfiguration As Visibility
|
||||||
|
Get
|
||||||
|
Return m_BevelConfiguration
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_EnableTemplate As Boolean = Not OptionModule.m_DisableTemplate
|
||||||
|
Public Property EnableTemplate As Boolean
|
||||||
|
Get
|
||||||
|
Return m_EnableTemplate
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_EnableTemplate = value
|
||||||
|
If Not value Then
|
||||||
|
WriteMainPrivateProfileString(S_GENERAL, "DisableTemplate", "1")
|
||||||
|
Else
|
||||||
|
WriteMainPrivateProfileString(S_GENERAL, "DisableTemplate", "0")
|
||||||
|
End If
|
||||||
|
OptionModule.m_DisableTemplate = Not value
|
||||||
|
NotifyPropertyChanged(NameOf(EnableTemplate))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_EnableOrder As Boolean = Not OptionModule.m_DisableWindowOrder
|
||||||
|
Public Property EnableOrder As Boolean
|
||||||
|
Get
|
||||||
|
Return m_EnableOrder
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_EnableOrder = value
|
||||||
|
If Not value Then
|
||||||
|
WriteMainPrivateProfileString(S_GENERAL, "DisableOrder", "1")
|
||||||
|
Else
|
||||||
|
WriteMainPrivateProfileString(S_GENERAL, "DisableOrder", "0")
|
||||||
|
End If
|
||||||
|
OptionModule.m_DisableWindowOrder = Not value
|
||||||
|
NotifyPropertyChanged(NameOf(EnableOrder))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_EnableSingleDoor As Boolean = OptionModule.m_SingleDoor
|
||||||
|
Public Property EnableSingleDoor As Boolean
|
||||||
|
Get
|
||||||
|
Return m_EnableSingleDoor
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_EnableSingleDoor = value
|
||||||
|
If Not value Then
|
||||||
|
WriteMainPrivateProfileString(S_GENERAL, K_SINGLEDOOR, "0")
|
||||||
|
Else
|
||||||
|
WriteMainPrivateProfileString(S_GENERAL, K_SINGLEDOOR, "1")
|
||||||
|
End If
|
||||||
|
NotifyPropertyChanged(NameOf(EnableSingleDoor))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_VisibilityConfiguration As Visibility = Visibility.Collapsed
|
||||||
|
Public ReadOnly Property VisibilityConfiguration As Visibility
|
||||||
|
Get
|
||||||
|
If (GetMainPrivateProfileInt(S_GENERAL, "EnableSettingAsOpt", 0) = 1) Then
|
||||||
|
m_VisibilityConfiguration = Visibility.Visible
|
||||||
|
End If
|
||||||
|
Return m_VisibilityConfiguration
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_EnableAssembly As Boolean = If(OptionModule.m_ConfigurationSoftware = ConfigType.Assembly, True, False)
|
||||||
|
Public Property EnableAssembly As Boolean
|
||||||
|
Get
|
||||||
|
Return m_EnableAssembly
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
Dim sMessage As String = "The program will be shut down, do you want to proced?"
|
||||||
|
Dim bRestartProgram As Boolean = EnableConfig
|
||||||
|
If bRestartProgram Then
|
||||||
|
sMessage = "The program will be restart, do you want to proced?"
|
||||||
|
End If
|
||||||
|
|
||||||
|
' chiedo se desidera procedere con lo spegnimento del programma
|
||||||
|
If MessageBox.Show(sMessage, "Warning", MessageBoxButton.OKCancel, MessageBoxImage.Exclamation, MessageBoxResult.Cancel) = MessageBoxResult.OK Then
|
||||||
|
' procedo alla chiusura del programma
|
||||||
|
Map.refMainWindowVM.CloseApplication()
|
||||||
|
If bRestartProgram Then Process.Start(Application.ResourceAssembly.Location)
|
||||||
|
Else
|
||||||
|
' esco senza salvare la selezione
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
' sa la chiusura del porgramma è stata interotta
|
||||||
|
If Map.refMainWindowVM.StopClosingApplication Then
|
||||||
|
' esco senza salvare la selezione
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
m_EnableAssembly = value
|
||||||
|
WriteMainPrivateProfileString(S_GENERAL, K_RUNAS, If(m_EnableAssembly, "1", "0"))
|
||||||
|
NotifyPropertyChanged(NameOf(EnableAssembly))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdCloseOptions As ICommand
|
Private m_cmdCloseOptions As ICommand
|
||||||
Private m_cmdBrowse As ICommand
|
Private m_cmdBrowse As ICommand
|
||||||
Private m_F1GuideCmd As ICommand
|
Private m_F1GuideCmd As ICommand
|
||||||
|
|
||||||
#Region "Messages"
|
#Region "MESSAGES"
|
||||||
|
|
||||||
Public ReadOnly Property Title As String
|
Public ReadOnly Property Title As String
|
||||||
Get
|
Get
|
||||||
@@ -1791,106 +1946,9 @@ Public Class OptionsVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region
|
#End Region ' Messages
|
||||||
|
|
||||||
Private m_BevelConfiguration As Visibility
|
#Region "METHODS"
|
||||||
Public ReadOnly Property BevelConfiguration As Visibility
|
|
||||||
Get
|
|
||||||
Return m_BevelConfiguration
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_EnableTemplate As Boolean = Not OptionModule.m_DisableTemplate
|
|
||||||
Public Property EnableTemplate As Boolean
|
|
||||||
Get
|
|
||||||
Return m_EnableTemplate
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_EnableTemplate = value
|
|
||||||
If Not value Then
|
|
||||||
WriteMainPrivateProfileString(S_GENERAL, "DisableTemplate", "1")
|
|
||||||
Else
|
|
||||||
WriteMainPrivateProfileString(S_GENERAL, "DisableTemplate", "0")
|
|
||||||
End If
|
|
||||||
OptionModule.m_DisableTemplate = Not value
|
|
||||||
NotifyPropertyChanged("EnableTemplate")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_EnableOrder As Boolean = Not OptionModule.m_DisableWindowOrder
|
|
||||||
Public Property EnableOrder As Boolean
|
|
||||||
Get
|
|
||||||
Return m_EnableOrder
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_EnableOrder = value
|
|
||||||
If Not value Then
|
|
||||||
WriteMainPrivateProfileString(S_GENERAL, "DisableOrder", "1")
|
|
||||||
Else
|
|
||||||
WriteMainPrivateProfileString(S_GENERAL, "DisableOrder", "0")
|
|
||||||
End If
|
|
||||||
OptionModule.m_DisableWindowOrder = Not value
|
|
||||||
NotifyPropertyChanged("EnableOrder")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_EnableSingleDoor As Boolean = OptionModule.m_SingleDoor
|
|
||||||
Public Property EnableSingleDoor As Boolean
|
|
||||||
Get
|
|
||||||
Return m_EnableSingleDoor
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_EnableSingleDoor = value
|
|
||||||
If Not value Then
|
|
||||||
WriteMainPrivateProfileString(S_GENERAL, K_SINGLEDOOR, "0")
|
|
||||||
Else
|
|
||||||
WriteMainPrivateProfileString(S_GENERAL, K_SINGLEDOOR, "1")
|
|
||||||
End If
|
|
||||||
NotifyPropertyChanged("EnableSingleDoor")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_VisibilityConfiguration As Visibility = Visibility.Collapsed
|
|
||||||
Public ReadOnly Property VisibilityConfiguration As Visibility
|
|
||||||
Get
|
|
||||||
If (GetMainPrivateProfileInt(S_GENERAL, "EnableSettingAsOpt", 0) = 1) Then
|
|
||||||
m_VisibilityConfiguration = Visibility.Visible
|
|
||||||
End If
|
|
||||||
Return m_VisibilityConfiguration
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_EnableAssembly As Boolean = If(OptionModule.m_ConfigurationSoftware = ConfigType.Assembly, True, False)
|
|
||||||
Public Property EnableAssembly As Boolean
|
|
||||||
Get
|
|
||||||
Return m_EnableAssembly
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
Dim sMessage As String = "The program will be shut down, do you want to proced?"
|
|
||||||
Dim bRestartProgram As Boolean = EnableConfig
|
|
||||||
If bRestartProgram Then
|
|
||||||
sMessage = "The program will be restart, do you want to proced?"
|
|
||||||
End If
|
|
||||||
|
|
||||||
' chiedo se desidera procedere con lo spegnimento del programma
|
|
||||||
If MessageBox.Show(sMessage, "Warning", MessageBoxButton.OKCancel, MessageBoxImage.Exclamation, MessageBoxResult.Cancel) = MessageBoxResult.OK Then
|
|
||||||
' procedo alla chiusura del programma
|
|
||||||
Map.refMainWindowVM.CloseApplication()
|
|
||||||
If bRestartProgram Then Process.Start(Application.ResourceAssembly.Location)
|
|
||||||
Else
|
|
||||||
' esco senza salvare la selezione
|
|
||||||
Return
|
|
||||||
End If
|
|
||||||
' sa la chiusura del porgramma è stata interotta
|
|
||||||
If Map.refMainWindowVM.StopClosingApplication Then
|
|
||||||
' esco senza salvare la selezione
|
|
||||||
Return
|
|
||||||
End If
|
|
||||||
m_EnableAssembly = value
|
|
||||||
WriteMainPrivateProfileString(S_GENERAL, K_RUNAS, If(m_EnableAssembly, "1", "0"))
|
|
||||||
NotifyPropertyChanged("EnableAssembly")
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
' Controllo di eliminare un bevel dalla lista: 1 se accendo un bevel, 2 se spengo un bevel, -1 tutti i casi che non sono questi
|
' Controllo di eliminare un bevel dalla lista: 1 se accendo un bevel, 2 se spengo un bevel, -1 tutti i casi che non sono questi
|
||||||
Private Function CheckBevel(VisibilityBevel As Visibility, bValue As Boolean) As Integer
|
Private Function CheckBevel(VisibilityBevel As Visibility, bValue As Boolean) As Integer
|
||||||
@@ -1958,7 +2016,7 @@ Public Class OptionsVM
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
' aggiorno la lista
|
' aggiorno la lista
|
||||||
Map.refPartPageVM.CurrPart.NotifyPropertyChanged("DispositionList")
|
Map.refPartPageVM.CurrPart.NotifyPropertyChanged(NameOf(Part.DispositionList))
|
||||||
' verifico che l'elemento selezionato nella option page non sia stato disattivato
|
' verifico che l'elemento selezionato nella option page non sia stato disattivato
|
||||||
If Not IsNothing(Map.refPartPageVM.CurrPart) Then
|
If Not IsNothing(Map.refPartPageVM.CurrPart) Then
|
||||||
If Map.refPartPageVM.CurrPart.DispositionItem.IsActive = Visibility.Collapsed Then Map.refPartPageVM.CurrPart.DispositionItem = Part.m_DispositionList(2)
|
If Map.refPartPageVM.CurrPart.DispositionItem.IsActive = Visibility.Collapsed Then Map.refPartPageVM.CurrPart.DispositionItem = Part.m_DispositionList(2)
|
||||||
@@ -2036,8 +2094,26 @@ Public Class OptionsVM
|
|||||||
m_HardwarePartVM = New HardwarePartVM
|
m_HardwarePartVM = New HardwarePartVM
|
||||||
m_HardwarePartV = New HardwarePartV(m_HardwarePartVM)
|
m_HardwarePartV = New HardwarePartV(m_HardwarePartVM)
|
||||||
End If
|
End If
|
||||||
|
m_Themes.Add(New ThemeM() With {
|
||||||
|
.Name = "Default",
|
||||||
|
.Path = "EgtDOORCreatorDictionary.xaml"
|
||||||
|
})
|
||||||
|
m_Themes.Add(New ThemeM() With {
|
||||||
|
.Name = "Dark",
|
||||||
|
.Path = "EgtDOORCreatorDarkDictionary.xaml"
|
||||||
|
})
|
||||||
|
m_Themes.Add(New ThemeM() With {
|
||||||
|
.Name = "Summer",
|
||||||
|
.Path = "EgtDOORCreatorSummerDictonary.xaml"
|
||||||
|
})
|
||||||
|
' seleziono elemento in ComboBox
|
||||||
|
m_SelectedTheme = m_Themes(OptionModule.m_SelectedThema)
|
||||||
|
' attivo il tema letto sopra
|
||||||
|
SetThema(OptionModule.m_SelectedThema)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
|
|
||||||
#Region "CloseOptionsCommand"
|
#Region "CloseOptionsCommand"
|
||||||
@@ -2059,8 +2135,8 @@ Public Class OptionsVM
|
|||||||
' se eseguo una modifica prima di avere una porta...controllo bene!!
|
' se eseguo una modifica prima di avere una porta...controllo bene!!
|
||||||
If Not IsNothing(Map.refPartPageVM.CurrPart) Then
|
If Not IsNothing(Map.refPartPageVM.CurrPart) Then
|
||||||
Map.refPartPageVM.CurrPart.VisibilityWeight = Part.IsCheckedWeight
|
Map.refPartPageVM.CurrPart.VisibilityWeight = Part.IsCheckedWeight
|
||||||
Map.refPartPageVM.CurrPart.NotifyPropertyChanged("Weight")
|
Map.refPartPageVM.CurrPart.NotifyPropertyChanged(NameOf(Map.refPartPageVM.CurrPart.Weight))
|
||||||
Map.refPartPageVM.CurrPart.NotifyPropertyChanged("VisibilityWeight")
|
Map.refPartPageVM.CurrPart.NotifyPropertyChanged(NameOf(Map.refPartPageVM.CurrPart.VisibilityWeight))
|
||||||
End If
|
End If
|
||||||
OptionsWindow.Close()
|
OptionsWindow.Close()
|
||||||
End If
|
End If
|
||||||
@@ -2167,17 +2243,23 @@ Public Class OptionsVM
|
|||||||
|
|
||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class EdgeType
|
Public Class EdgeType
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_Name As String
|
Private m_Name As String
|
||||||
Public Property Name As String
|
Public Property Name As String
|
||||||
Get
|
Get
|
||||||
@@ -2195,7 +2277,7 @@ Public Class EdgeType
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Visibility)
|
Set(value As Visibility)
|
||||||
m_IsActive = value
|
m_IsActive = value
|
||||||
NotifyPropertyChanged("IsActive")
|
NotifyPropertyChanged(NameOf(IsActive))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -2209,20 +2291,33 @@ Public Class EdgeType
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sName As String, bIsActive As Visibility)
|
Sub New(sName As String, bIsActive As Visibility)
|
||||||
m_Name = sName
|
m_Name = sName
|
||||||
m_IsActive = bIsActive
|
m_IsActive = bIsActive
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class SwingItemTypeList
|
Public Class SwingItemTypeList
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_Name As String
|
Private m_Name As String
|
||||||
Public Property Name As String
|
Public Property Name As String
|
||||||
Get
|
Get
|
||||||
@@ -2263,7 +2358,14 @@ Public Class SwingItemTypeList
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sNameSwing As String)
|
Sub New(sNameSwing As String)
|
||||||
m_Name = sNameSwing
|
m_Name = sNameSwing
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -1,21 +1,20 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="OrderV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="OrderV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
||||||
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
CloseCommand="{Binding CloseOptionsCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
Height="250" Width="350">
|
||||||
Height="250" Width="350">
|
|
||||||
|
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<EgtDOORCreator:TrueToFalse x:Key="TrueToFalse"/>
|
<EgtDOORCreator:TrueToFalse x:Key="TrueToFalse"/>
|
||||||
</Window.Resources>
|
</Window.Resources>
|
||||||
|
|
||||||
<Grid Margin="2">
|
<Grid Margin="2">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="0.6*"/>
|
<ColumnDefinition Width="0.6*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -29,52 +28,62 @@
|
|||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<!--<RowDefinition Height="1*"/>-->
|
<!--<RowDefinition Height="1*"/>-->
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Customer}"
|
<TextBox Grid.Row="0"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Grid.Column="1"
|
||||||
Margin="5,0,15,5"
|
Text="{Binding Customer}"
|
||||||
IsReadOnly="{Binding IsReadOnly}"/>
|
IsReadOnly="{Binding IsReadOnly}"
|
||||||
<TextBlock Grid.Column="0" Grid.Row="0" Text="{Binding CustomerMsg}" VerticalAlignment="Center"
|
Style="{StaticResource CustomerTxBx}"/>
|
||||||
Margin="15,0,0,0"
|
<TextBlock Grid.Row="0"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Grid.Column="0"
|
||||||
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Elevation}"
|
Text="{Binding CustomerMsg}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{StaticResource GeometryListConfigTxBl}"/>
|
||||||
Margin="5,0,15,5"
|
<TextBox Grid.Row="1"
|
||||||
IsReadOnly="{Binding IsReadOnly}"/>
|
Grid.Column="1"
|
||||||
<TextBlock Grid.Column="0" Grid.Row="1" Text="{Binding ElevationMsg}" VerticalAlignment="Center"
|
Text="{Binding Elevation}"
|
||||||
Margin="15,0,0,0"
|
IsReadOnly="{Binding IsReadOnly}"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{StaticResource CustomerTxBx}"/>
|
||||||
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Project}"
|
<TextBlock Grid.Row="1"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Grid.Column="0"
|
||||||
Margin="5,0,15,5"
|
Text="{Binding ElevationMsg}"
|
||||||
IsReadOnly="{Binding IsReadOnly}"/>
|
Style="{StaticResource GeometryListConfigTxBl}"/>
|
||||||
<TextBlock Grid.Column="0" Grid.Row="2" Text="{Binding ProjectMsg}" VerticalAlignment="Center"
|
<TextBox Grid.Row="2"
|
||||||
Margin="15,0,0,0"
|
Grid.Column="1"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding Project}"
|
||||||
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding PO}"
|
IsReadOnly="{Binding IsReadOnly}"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Style="{StaticResource CustomerTxBx}"/>
|
||||||
Margin="5,0,15,5"
|
<TextBlock Grid.Row="2"
|
||||||
IsReadOnly="{Binding IsReadOnly}"/>
|
Grid.Column="0"
|
||||||
<TextBlock Grid.Column="0" Grid.Row="3" Text="{Binding POMsg}" VerticalAlignment="Center"
|
Text="{Binding ProjectMsg}"
|
||||||
Margin="15,0,0,0"
|
Style="{StaticResource GeometryListConfigTxBl}"/>
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
<TextBox Grid.Row="3"
|
||||||
<TextBox Grid.Column="1" Grid.Row="4" Text="{Binding Line}"
|
Grid.Column="1"
|
||||||
Style="{StaticResource DoorParamsTxBx}"
|
Text="{Binding PO}"
|
||||||
Margin="5,0,15,5"
|
IsReadOnly="{Binding IsReadOnly}"
|
||||||
IsReadOnly="{Binding IsReadOnly}"/>
|
Style="{StaticResource CustomerTxBx}"/>
|
||||||
<TextBlock Grid.Column="0" Grid.Row="4" Text="{Binding LineMsg}" VerticalAlignment="Center"
|
<TextBlock Grid.Row="3"
|
||||||
Margin="15,0,0,0"
|
Grid.Column="0"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Text="{Binding POMsg}"
|
||||||
|
Style="{StaticResource GeometryListConfigTxBl}"/>
|
||||||
|
<TextBox Grid.Row="4"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding Line}"
|
||||||
|
IsReadOnly="{Binding IsReadOnly}"
|
||||||
|
Style="{StaticResource CustomerTxBx}"/>
|
||||||
|
<TextBlock Grid.Row="4"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding LineMsg}"
|
||||||
|
Style="{StaticResource GeometryListConfigTxBl}"/>
|
||||||
<!--<TextBlock Grid.Column="0" Grid.Row="5" Text="{Binding ConfigurationPageMsg}" VerticalAlignment="Center"
|
<!--<TextBlock Grid.Column="0" Grid.Row="5" Text="{Binding ConfigurationPageMsg}" VerticalAlignment="Center"
|
||||||
Style="{StaticResource DoorParamsTxBl}"/>
|
Style="{StaticResource DoorParamsTxBl}"/>
|
||||||
<ComboBox Grid.Column="1" Grid.Row="5" Margin="5,0,30,5"
|
<ComboBox Grid.Column="1" Grid.Row="5" Margin="5,0,30,5"
|
||||||
Style="{StaticResource DoorParamsCmBx}"
|
Style="{StaticResource DoorParamsCmBx}"
|
||||||
ItemsSource="{Binding ConfigurationList}"
|
ItemsSource="{Binding ConfigurationList}"
|
||||||
SelectedItem="{Binding Configuration}"/>-->
|
SelectedItem="{Binding Configuration}"/>-->
|
||||||
<Button Grid.Column="1" Grid.Row="5" Margin="70,2,30,2"
|
<Button Grid.Row="5"
|
||||||
Content="{Binding SaveMsg}"
|
Grid.Column="1"
|
||||||
IsEnabled="{Binding IsReadOnly, Converter={StaticResource TrueToFalse}}"
|
Content="{Binding SaveMsg}"
|
||||||
IsDefault="True"
|
IsEnabled="{Binding IsReadOnly, Converter={StaticResource TrueToFalse}}"
|
||||||
IsCancel="True"/>
|
Style="{DynamicResource SaveOrderBtn}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
Public Class OrderV
|
Public Class OrderV
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_OrederVM As OrderVM
|
Private m_OrederVM As OrderVM
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(Owner As Window, OrderVM As OrderVM)
|
Sub New(Owner As Window, OrderVM As OrderVM)
|
||||||
MyBase.New(Owner)
|
MyBase.New(Owner)
|
||||||
' This call is required by the designer.
|
' This call is required by the designer.
|
||||||
@@ -9,4 +16,7 @@
|
|||||||
Me.DataContext = OrderVM
|
Me.DataContext = OrderVM
|
||||||
m_OrderVM = OrderVM
|
m_OrderVM = OrderVM
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -4,61 +4,7 @@ Imports EgtUILib
|
|||||||
Public Class OrderVM
|
Public Class OrderVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
#Region "Messages"
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Public ReadOnly Property Title As String
|
|
||||||
Get
|
|
||||||
' Order
|
|
||||||
Return EgtMsg(50068)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public ReadOnly Property CustomerMsg As String
|
|
||||||
Get
|
|
||||||
' Customer
|
|
||||||
Return EgtMsg(50070)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Public ReadOnly Property ElevationMsg As String
|
|
||||||
Get
|
|
||||||
' Elevation
|
|
||||||
Return EgtMsg(50406)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Public ReadOnly Property ProjectMsg As String
|
|
||||||
Get
|
|
||||||
' Project
|
|
||||||
Return EgtMsg(50407)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Public ReadOnly Property POMsg As String
|
|
||||||
Get
|
|
||||||
' PO
|
|
||||||
Return EgtMsg(50408)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Public ReadOnly Property LineMsg As String
|
|
||||||
Get
|
|
||||||
' Line
|
|
||||||
Return EgtMsg(50409)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public ReadOnly Property WeightMsg As String
|
|
||||||
Get
|
|
||||||
' Weight
|
|
||||||
Return EgtMsg(50047)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public ReadOnly Property SaveMsg As String
|
|
||||||
Get
|
|
||||||
' Save
|
|
||||||
Return EgtMsg(50410)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region ' Messages
|
|
||||||
|
|
||||||
Public ReadOnly Property IsReadOnly As Boolean
|
Public ReadOnly Property IsReadOnly As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -66,15 +12,6 @@ Public Class OrderVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Function VerifyNotIsNothing() As Boolean
|
|
||||||
If IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName) OrElse
|
|
||||||
IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.SelAssembly) OrElse
|
|
||||||
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.SelAssembly.ListPartDoor.Count > 0 Then
|
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
Return True
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Public Property Customer As String
|
Public Property Customer As String
|
||||||
Get
|
Get
|
||||||
If Not VerifyNotIsNothing() Then Return Nothing
|
If Not VerifyNotIsNothing() Then Return Nothing
|
||||||
@@ -145,8 +82,83 @@ Public Class OrderVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "MESSAGES"
|
||||||
|
|
||||||
|
Public ReadOnly Property Title As String
|
||||||
|
Get
|
||||||
|
' Order
|
||||||
|
Return EgtMsg(50068)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property CustomerMsg As String
|
||||||
|
Get
|
||||||
|
' Customer
|
||||||
|
Return EgtMsg(50070)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property ElevationMsg As String
|
||||||
|
Get
|
||||||
|
' Elevation
|
||||||
|
Return EgtMsg(50406)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property ProjectMsg As String
|
||||||
|
Get
|
||||||
|
' Project
|
||||||
|
Return EgtMsg(50407)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property POMsg As String
|
||||||
|
Get
|
||||||
|
' PO
|
||||||
|
Return EgtMsg(50408)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property LineMsg As String
|
||||||
|
Get
|
||||||
|
' Line
|
||||||
|
Return EgtMsg(50409)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property WeightMsg As String
|
||||||
|
Get
|
||||||
|
' Weight
|
||||||
|
Return EgtMsg(50047)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property SaveMsg As String
|
||||||
|
Get
|
||||||
|
' Save
|
||||||
|
Return EgtMsg(50410)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Messages
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
Map.SetRefOrderVM(Me)
|
Map.SetRefOrderVM(Me)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Private Function VerifyNotIsNothing() As Boolean
|
||||||
|
If IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName) OrElse
|
||||||
|
IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.SelAssembly) OrElse
|
||||||
|
Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.SelAssembly.ListPartDoor.Count < 1 Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="PrintWndV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="PrintWndV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
xmlns:EgtDOORCreator="clr-namespace:EgtDOORCreator"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
xmlns:ListLabel25="clr-namespace:combit.ListLabel25.Wpf;assembly=combit.ListLabel25.Wpf"
|
xmlns:ListLabel25="clr-namespace:combit.ListLabel25.Wpf;assembly=combit.ListLabel25.Wpf"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
Title="{Binding Title}" Icon="/Resources/EgtDOOR.ico"
|
||||||
TitleBarBrush="{StaticResource EgaltechBlue1}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
BorderBrush="{StaticResource EgaltechBlue1}"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="false"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="false"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
CloseCommand="{Binding CancelCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" SizeToContent="WidthAndHeight">
|
||||||
CloseCommand="{Binding CancelCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" SizeToContent="WidthAndHeight">
|
|
||||||
|
|
||||||
<Grid >
|
<Grid >
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -21,32 +20,24 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!--<EgtDOORCreator:PrintSceneHostV Height="600" Width="450"/>-->
|
<!--<EgtDOORCreator:PrintSceneHostV Height="600" Width="450"/>-->
|
||||||
<ListLabel25:EnhancedViewerControl Name="enhancedPreviewControl" Height="650" Width="900" />
|
<ListLabel25:EnhancedViewerControl Name="enhancedPreviewControl" Height="650" Width="900"/>
|
||||||
|
|
||||||
<UniformGrid Columns="3"
|
<UniformGrid Grid.Row="1"
|
||||||
Grid.Row="1"
|
Columns="3"
|
||||||
Margin="115,30,0,10">
|
Margin="115,30,0,10">
|
||||||
<Button VerticalAlignment="Center"
|
<Button Content="{Binding DesignMsg}"
|
||||||
Height="30" Margin="50,0,50,0"
|
|
||||||
Content="{Binding DesignMsg}"
|
|
||||||
Command="{Binding DesignCommand}"
|
Command="{Binding DesignCommand}"
|
||||||
Visibility="{Binding DesignVisibility}"
|
|
||||||
ToolTip="{Binding DeisgnToolTip}"
|
ToolTip="{Binding DeisgnToolTip}"
|
||||||
IsDefault="True"
|
Visibility="{Binding DesignVisibility}"
|
||||||
Focusable="False"/>
|
Style="{DynamicResource DesignBtn}"/>
|
||||||
<Button VerticalAlignment="Center"
|
<Button Content="{Binding SavePDFMsg}"
|
||||||
Visibility="Collapsed"
|
Command="{Binding SavePDFCommand}"
|
||||||
Height="30" Margin="50,0,50,0"
|
ToolTip="{Binding SavePDFToolTip}"
|
||||||
Content="{Binding SavePDFMsg}"
|
Style="{DynamicResource SavePDFBtn}"/>
|
||||||
Command="{Binding SavePDFCommand}"
|
<Button Content="{Binding CancelMsg}"
|
||||||
ToolTip="{Binding SavePDFToolTip}"
|
Command="{Binding CancelCommand}"
|
||||||
Focusable="False"/>
|
ToolTip="{Binding CancelToolTip}"
|
||||||
<Button VerticalAlignment="Center"
|
Style="{DynamicResource CancelPDFBtn}"/>
|
||||||
Height="30" Margin="50,0,50,0"
|
|
||||||
Content="{Binding CancelMsg}"
|
|
||||||
Command="{Binding CancelCommand}"
|
|
||||||
ToolTip="{Binding CancelToolTip}"
|
|
||||||
Focusable="False"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,32 +1,13 @@
|
|||||||
Imports EgtUILib
|
Public Class PrintWndV
|
||||||
Imports combit.ListLabel25
|
|
||||||
Imports combit.ListLabel25.DataProviders
|
|
||||||
Imports Microsoft.Win32
|
|
||||||
Imports System.Collections
|
|
||||||
Imports System.Collections.Generic
|
|
||||||
Imports System.Data
|
|
||||||
Imports System.Data.OleDb
|
|
||||||
Imports System.Data.SqlClient
|
|
||||||
Imports System.Globalization
|
|
||||||
Imports System.IO
|
|
||||||
Imports System.Linq
|
|
||||||
Imports System.Text
|
|
||||||
Imports System.Windows
|
|
||||||
Imports System.Windows.Controls
|
|
||||||
Imports System.Windows.Data
|
|
||||||
Imports System.Windows.Documents
|
|
||||||
Imports System.Windows.Input
|
|
||||||
Imports System.Windows.Media
|
|
||||||
Imports System.Windows.Media.Imaging
|
|
||||||
Imports System.Windows.Shapes
|
|
||||||
Imports System.Xml
|
|
||||||
Imports System.ComponentModel
|
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
|
|
||||||
Public Class PrintWndV
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_PrintWndVM As PrintWndVM
|
Private m_PrintWndVM As PrintWndVM
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(Owner As Window, PrintWndVM As PrintWndVM)
|
Sub New(Owner As Window, PrintWndVM As PrintWndVM)
|
||||||
MyBase.New(Owner)
|
MyBase.New(Owner)
|
||||||
AddHandler Closed, AddressOf PrintWndV_Closed
|
AddHandler Closed, AddressOf PrintWndV_Closed
|
||||||
@@ -40,6 +21,10 @@ Public Class PrintWndV
|
|||||||
m_PrintWndVM.Preview()
|
m_PrintWndVM.Preview()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Private Sub PrintWndV_Closed(sender As Object, e As System.EventArgs) Handles Me.Closed
|
Private Sub PrintWndV_Closed(sender As Object, e As System.EventArgs) Handles Me.Closed
|
||||||
enhancedPreviewControl.FileName = String.Empty
|
enhancedPreviewControl.FileName = String.Empty
|
||||||
m_PrintWndVM.MyLL.Dispose()
|
m_PrintWndVM.MyLL.Dispose()
|
||||||
@@ -50,6 +35,7 @@ Public Class PrintWndV
|
|||||||
'EgtDeleteContext(Map.refPrintSceneHostV.PrintScene.GetCtx())
|
'EgtDeleteContext(Map.refPrintSceneHostV.PrintScene.GetCtx())
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,53 @@
|
|||||||
Imports combit.ListLabel25
|
Imports combit.ListLabel25
|
||||||
Imports combit.ListLabel25.DataProviders
|
|
||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.ComponentModel
|
|
||||||
Imports System.IO
|
|
||||||
Imports System.Windows
|
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports Ionic.Zip
|
|
||||||
Imports System.Collections.Generic
|
|
||||||
|
|
||||||
|
|
||||||
Public Class PrintWndVM
|
Public Class PrintWndVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Shared m_Door As Part
|
Shared m_Door As Part
|
||||||
Friend MyLL As ListLabel
|
Friend MyLL As ListLabel
|
||||||
Private sPathImage As String
|
Private sPathImage As String
|
||||||
|
|
||||||
|
' abilita la selezione delle quote degli hardware
|
||||||
|
Private m_IsEnableCompoList As Boolean = True
|
||||||
|
Public ReadOnly Property IsEnableCompoList As Boolean
|
||||||
|
Get
|
||||||
|
Return m_IsEnableCompoList
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' abilita la visualizzazione del bottone Design per definire i report
|
||||||
|
Private m_DesignVisibility As Visibility = OptionModule.m_VisibilityBtnDesign
|
||||||
|
Public Property DesignVisibility As Visibility
|
||||||
|
Get
|
||||||
|
Return m_DesignVisibility
|
||||||
|
End Get
|
||||||
|
Set(value As Visibility)
|
||||||
|
m_DesignVisibility = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' lista degli hardware presenti nella porta corrente
|
||||||
|
Private m_CompoList As New ObservableCollection(Of HardwareDimension)
|
||||||
|
Public Property CompoList As ObservableCollection(Of HardwareDimension)
|
||||||
|
Get
|
||||||
|
Return m_CompoList
|
||||||
|
End Get
|
||||||
|
Set(value As ObservableCollection(Of HardwareDimension))
|
||||||
|
m_CompoList = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_cmdDesign As ICommand
|
||||||
|
Private m_cmdCancel As ICommand
|
||||||
|
Private m_cmdSavePDF As ICommand
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
#Region "MESSAGES"
|
#Region "MESSAGES"
|
||||||
|
|
||||||
Public ReadOnly Property Title As String
|
Public ReadOnly Property Title As String
|
||||||
@@ -70,35 +101,41 @@ Public Class PrintWndVM
|
|||||||
|
|
||||||
#End Region ' Messages
|
#End Region ' Messages
|
||||||
|
|
||||||
' abilita la selezione delle quote degli hardware
|
#Region "CONSTRUCTOR"
|
||||||
Private m_IsEnableCompoList As Boolean = True
|
|
||||||
Public ReadOnly Property IsEnableCompoList As Boolean
|
|
||||||
Get
|
|
||||||
Return m_IsEnableCompoList
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
' abilita la visualizzazione del bottone Design per definire i report
|
Sub New()
|
||||||
Private m_DesignVisibility As Visibility = OptionModule.m_VisibilityBtnDesign
|
MyLL = New ListLabel With {
|
||||||
Public Property DesignVisibility As Visibility
|
.LicensingInfo = "4pODHQ"
|
||||||
Get
|
}
|
||||||
Return m_DesignVisibility
|
' copio il riferimento della porta corrente
|
||||||
End Get
|
m_Door = Map.refPartPageVM.CurrPart
|
||||||
Set(value As Visibility)
|
Dim IndexCompoDoor As Integer = 1
|
||||||
m_DesignVisibility = value
|
Dim IndexCompoPrint As Integer = 0
|
||||||
End Set
|
' carico la lista di hardware presenti nella porta
|
||||||
End Property
|
Dim LocalHardware As New HardwareDimension
|
||||||
|
If m_Door.CompoList.Count >= 1 Then
|
||||||
|
LocalHardware.NameHardware = m_Door.CompoList(0).CompoType.Name
|
||||||
|
GetPrivateProfileCompoName(ConstCompo.S_LAYER, ConstCompo.K_LAYER_NAME, "", LocalHardware.NameLayer, m_Door.CompoList(0).CompoType.Path & "\" & CONFIGINI_FILE_NAME)
|
||||||
|
LocalHardware.SetSelectedLayer(True)
|
||||||
|
End If
|
||||||
|
CompoList.Add(LocalHardware)
|
||||||
|
While IndexCompoDoor < m_Door.CompoList.Count
|
||||||
|
If m_CompoList(IndexCompoPrint).NameHardware <> m_Door.CompoList(IndexCompoDoor).CompoType.Name Then
|
||||||
|
LocalHardware = New HardwareDimension
|
||||||
|
LocalHardware.NameHardware = m_Door.CompoList(IndexCompoDoor).CompoType.Name
|
||||||
|
GetPrivateProfileLayerName(ConstCompo.S_LAYER, ConstCompo.K_LAYER_NAME, LocalHardware.NameLayer, m_Door.CompoList(IndexCompoPrint).CompoType.Path & "\" & CONFIGINI_FILE_NAME)
|
||||||
|
LocalHardware.SetSelectedLayer(True)
|
||||||
|
m_CompoList.Add(LocalHardware)
|
||||||
|
IndexCompoPrint += 1
|
||||||
|
End If
|
||||||
|
IndexCompoDoor += 1
|
||||||
|
End While
|
||||||
|
NotifyPropertyChanged(NameOf(CompoList))
|
||||||
|
End Sub
|
||||||
|
|
||||||
' lista degli hardware presenti nella porta corrente
|
#End Region ' Constructor
|
||||||
Private m_CompoList As New ObservableCollection(Of HardwareDimension)
|
|
||||||
Public Property CompoList As ObservableCollection(Of HardwareDimension)
|
#Region "METHODS"
|
||||||
Get
|
|
||||||
Return m_CompoList
|
|
||||||
End Get
|
|
||||||
Set(value As ObservableCollection(Of HardwareDimension))
|
|
||||||
m_CompoList = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Shared Function TurnDimensioningLayer(sLayerName As String, bSelect As Boolean) As Boolean
|
Shared Function TurnDimensioningLayer(sLayerName As String, bSelect As Boolean) As Boolean
|
||||||
Dim nFirstPart As Integer = EgtGetFirstPart()
|
Dim nFirstPart As Integer = EgtGetFirstPart()
|
||||||
@@ -110,10 +147,6 @@ Public Class PrintWndVM
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private m_cmdDesign As ICommand
|
|
||||||
Private m_cmdCancel As ICommand
|
|
||||||
Private m_cmdSavePDF As ICommand
|
|
||||||
|
|
||||||
#Region "Preview"
|
#Region "Preview"
|
||||||
|
|
||||||
Public Sub Preview()
|
Public Sub Preview()
|
||||||
@@ -165,9 +198,13 @@ Public Class PrintWndVM
|
|||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region ' Preview
|
||||||
|
|
||||||
#Region "SAvePDFCommand"
|
#End Region ' Methods
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "SavePDFCommand"
|
||||||
|
|
||||||
Public ReadOnly Property SavePDFCommand As ICommand
|
Public ReadOnly Property SavePDFCommand As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -204,7 +241,6 @@ Public Class PrintWndVM
|
|||||||
|
|
||||||
#End Region ' SAvePDFCommand
|
#End Region ' SAvePDFCommand
|
||||||
|
|
||||||
|
|
||||||
#Region "PrintCommand"
|
#Region "PrintCommand"
|
||||||
|
|
||||||
Public ReadOnly Property DesignCommand As ICommand
|
Public ReadOnly Property DesignCommand As ICommand
|
||||||
@@ -315,40 +351,15 @@ Public Class PrintWndVM
|
|||||||
|
|
||||||
#End Region ' CancelCommand
|
#End Region ' CancelCommand
|
||||||
|
|
||||||
Sub New()
|
#End Region ' Commands
|
||||||
MyLL = New ListLabel
|
|
||||||
MyLL.LicensingInfo = "4pODHQ"
|
|
||||||
' copio il riferimento della porta corrente
|
|
||||||
m_Door = Map.refPartPageVM.CurrPart
|
|
||||||
Dim IndexCompoDoor As Integer = 1
|
|
||||||
Dim IndexCompoPrint As Integer = 0
|
|
||||||
' carico la lista di hardware presenti nella porta
|
|
||||||
Dim LocalHardware As New HardwareDimension
|
|
||||||
If m_Door.CompoList.Count >= 1 Then
|
|
||||||
LocalHardware.NameHardware = m_Door.CompoList(0).CompoType.Name
|
|
||||||
GetPrivateProfileCompoName(ConstCompo.S_LAYER, ConstCompo.K_LAYER_NAME, "", LocalHardware.NameLayer, m_Door.CompoList(0).CompoType.Path & "\" & CONFIGINI_FILE_NAME)
|
|
||||||
LocalHardware.SetSelectedLayer(True)
|
|
||||||
End If
|
|
||||||
CompoList.Add(LocalHardware)
|
|
||||||
While IndexCompoDoor < m_Door.CompoList.Count
|
|
||||||
If m_CompoList(IndexCompoPrint).NameHardware <> m_Door.CompoList(IndexCompoDoor).CompoType.Name Then
|
|
||||||
LocalHardware = New HardwareDimension
|
|
||||||
LocalHardware.NameHardware = m_Door.CompoList(IndexCompoDoor).CompoType.Name
|
|
||||||
GetPrivateProfileLayerName(ConstCompo.S_LAYER, ConstCompo.K_LAYER_NAME, LocalHardware.NameLayer, m_Door.CompoList(IndexCompoPrint).CompoType.Path & "\" & CONFIGINI_FILE_NAME)
|
|
||||||
LocalHardware.SetSelectedLayer(True)
|
|
||||||
m_CompoList.Add(LocalHardware)
|
|
||||||
IndexCompoPrint += 1
|
|
||||||
End If
|
|
||||||
IndexCompoDoor += 1
|
|
||||||
End While
|
|
||||||
NotifyPropertyChanged("CompoList")
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class HardwareDimension
|
Public Class HardwareDimension
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' il nome del Layer viene letto dal file Config.ini
|
' il nome del Layer viene letto dal file Config.ini
|
||||||
Private m_NameLayer As String = String.Empty
|
Private m_NameLayer As String = String.Empty
|
||||||
Public Property NameLayer As String
|
Public Property NameLayer As String
|
||||||
@@ -368,7 +379,7 @@ Public Class HardwareDimension
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_NameHardware = value
|
m_NameHardware = value
|
||||||
NotifyPropertyChanged("NameHardware")
|
NotifyPropertyChanged(NameOf(NameHardware))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -379,7 +390,7 @@ Public Class HardwareDimension
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_NameHardwareDDF = value
|
m_NameHardwareDDF = value
|
||||||
NotifyPropertyChanged("NameHardware")
|
NotifyPropertyChanged(NameOf(NameHardware))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -391,8 +402,8 @@ Public Class HardwareDimension
|
|||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_IsActive = value
|
m_IsActive = value
|
||||||
m_HardwareDimension_Visibility = If(m_IsActive, Visibility.Visible, Visibility.Collapsed)
|
m_HardwareDimension_Visibility = If(m_IsActive, Visibility.Visible, Visibility.Collapsed)
|
||||||
NotifyPropertyChanged("HardwareDimension_Visibility")
|
NotifyPropertyChanged(NameOf(HardwareDimension_Visibility))
|
||||||
NotifyPropertyChanged("IsActive")
|
NotifyPropertyChanged(NameOf(IsActive))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -415,15 +426,21 @@ Public Class HardwareDimension
|
|||||||
WriteMainPrivateProfileString("Dimensions", NameHardware, If(m_SelectedLayer, "1", "0"))
|
WriteMainPrivateProfileString("Dimensions", NameHardware, If(m_SelectedLayer, "1", "0"))
|
||||||
Map.refSceneManagerVM.RefreshBtn()
|
Map.refSceneManagerVM.RefreshBtn()
|
||||||
EgtZoom(ZM.ALL)
|
EgtZoom(ZM.ALL)
|
||||||
NotifyPropertyChanged("SelectedLayer")
|
NotifyPropertyChanged(NameOf(SelectedLayer))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Public Sub SetSelectedLayer(value As Boolean)
|
Public Sub SetSelectedLayer(value As Boolean)
|
||||||
m_SelectedLayer = value
|
m_SelectedLayer = value
|
||||||
PrintWndVM.TurnDimensioningLayer(m_NameLayer, m_SelectedLayer)
|
PrintWndVM.TurnDimensioningLayer(m_NameLayer, m_SelectedLayer)
|
||||||
WriteMainPrivateProfileString("Dimensions", NameHardware, If(m_SelectedLayer, "1", "0"))
|
WriteMainPrivateProfileString("Dimensions", NameHardware, If(m_SelectedLayer, "1", "0"))
|
||||||
NotifyPropertyChanged("SelectedLayer")
|
NotifyPropertyChanged(NameOf(SelectedLayer))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<WindowsFormsHost x:Class="PrintSceneHostV"
|
<WindowsFormsHost x:Class="PrintSceneHostV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtUILib="clr-namespace:EgtUILib;assembly=EgtUILib">
|
xmlns:EgtUILib="clr-namespace:EgtUILib;assembly=EgtUILib">
|
||||||
|
|
||||||
<EgtUILib:Scene x:Name="PrintScene"/>
|
<EgtUILib:Scene x:Name="PrintScene"/>
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ Imports System.IO
|
|||||||
|
|
||||||
Public Class PrintSceneHostV
|
Public Class PrintSceneHostV
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_SelFromScene As Boolean = False
|
Private m_SelFromScene As Boolean = False
|
||||||
Friend ReadOnly Property SelFromScene As Boolean
|
Friend ReadOnly Property SelFromScene As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -11,16 +13,9 @@ Public Class PrintSceneHostV
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub RefreshPrint()
|
#End Region ' Fields & Properties
|
||||||
Dim FileNameNge = Path.GetFileNameWithoutExtension(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.Name)
|
|
||||||
' Path.ChangeExtension("Test3", ".nge")
|
#Region "CONSTRUCTOR"
|
||||||
EgtOpenFile(IniFile.m_sTempDir & "\" & FileNameNge & ".nge" )
|
|
||||||
' mantengo i layer accesi
|
|
||||||
For Each Compo In Map.refDimensioningPanelVM.HardwareDimensionList
|
|
||||||
PrintWndVM.TurnDimensioningLayer(Compo.NameLayer, Compo.SelectedLayer)
|
|
||||||
Next
|
|
||||||
EgtZoom(ZM.ALL)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
' This call is required by the designer.
|
' This call is required by the designer.
|
||||||
@@ -37,6 +32,21 @@ Public Class PrintSceneHostV
|
|||||||
RefreshPrint()
|
RefreshPrint()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Public Sub RefreshPrint()
|
||||||
|
Dim FileNameNge = Path.GetFileNameWithoutExtension(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.Name)
|
||||||
|
' Path.ChangeExtension("Test3", ".nge")
|
||||||
|
EgtOpenFile(IniFile.m_sTempDir & "\" & FileNameNge & ".nge")
|
||||||
|
' mantengo i layer accesi
|
||||||
|
For Each Compo In Map.refDimensioningPanelVM.HardwareDimensionList
|
||||||
|
PrintWndVM.TurnDimensioningLayer(Compo.NameLayer, Compo.SelectedLayer)
|
||||||
|
Next
|
||||||
|
EgtZoom(ZM.ALL)
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub PreInitializeScene()
|
Private Sub PreInitializeScene()
|
||||||
' imposto colore di default
|
' imposto colore di default
|
||||||
Dim DefColor As New Color3d(0, 0, 0)
|
Dim DefColor As New Color3d(0, 0, 0)
|
||||||
@@ -103,4 +113,6 @@ Public Class PrintSceneHostV
|
|||||||
'EgtSetGridShow(bShowGrid, False)
|
'EgtSetGridShow(bShowGrid, False)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="MySaveFileDialogV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="MySaveFileDialogV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding Title}"
|
Title="{Binding Title}"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
Height="160" Width="300" Topmost="True"
|
Height="160" Width="300" Topmost="True"
|
||||||
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
||||||
|
|
||||||
<!--<EgtWPFLib5:EgtCustomWindow.Resources>
|
<!--<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
||||||
@@ -24,21 +24,27 @@
|
|||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBox x:Name="FilePath"
|
||||||
<TextBox Margin="5" Height="24" x:Name="FilePath" Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Text="{Binding WriteFileName, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding WriteFileName, UpdateSourceTrigger=PropertyChanged}"
|
||||||
VerticalAlignment="Center" VerticalContentAlignment="Center"/>
|
Style="{DynamicResource FilePathTxBx}"/>
|
||||||
<TextBlock Margin="5" Height="24" Grid.Column="1" Grid.Row="1"
|
<TextBlock Grid.Row="1"
|
||||||
Text="{Binding IsFrameMsg}"
|
Grid.Column="1"
|
||||||
VerticalAlignment="Center"/>
|
Text="{Binding IsFrameMsg}"
|
||||||
<CheckBox Grid.Column="0" Grid.Row="1"
|
Style="{DynamicResource IsFrameTxBl}"/>
|
||||||
VerticalAlignment="Center" Margin="5,0,0,5"
|
<CheckBox Grid.Row="1"
|
||||||
IsChecked="{Binding IsFrame}"/>
|
Grid.Column="0"
|
||||||
<UniformGrid Columns="2" Grid.Row="2" Grid.ColumnSpan="2" Margin="0,0,0,5">
|
IsChecked="{Binding IsFrame}"
|
||||||
<Button IsDefault="True" Name="SaveBtn"
|
Style="{DynamicResource IsFrameChBx}"/>
|
||||||
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
<UniformGrid Grid.Row="2"
|
||||||
<Button IsCancel="True"
|
Columns="2"
|
||||||
Content="{Binding CancelMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<Button Name="SaveBtn"
|
||||||
|
Content="{Binding SaveMsg}"
|
||||||
|
Style="{DynamicResource EgtWPFLib5_SaveButton}"/>
|
||||||
|
<Button Content="{Binding CancelMsg}"
|
||||||
|
Style="{DynamicResource EgtWPFLib5_CancelButton}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
Public Class MySaveFileDialogV
|
Public Class MySaveFileDialogV
|
||||||
'Implements INotifyPropertyChanged
|
'Implements INotifyPropertyChanged
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_SaveFileDialogVM As MySaveFileDialogVM
|
Private m_SaveFileDialogVM As MySaveFileDialogVM
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
#Region "CONSTRUCTOR"
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(Owner As Window, SaveFileDialogVM As MySaveFileDialogVM)
|
Sub New(Owner As Window, SaveFileDialogVM As MySaveFileDialogVM)
|
||||||
@@ -14,7 +18,9 @@
|
|||||||
m_SaveFileDialogVM = SaveFileDialogVM
|
m_SaveFileDialogVM = SaveFileDialogVM
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' CONSTRUCTOR
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Private Sub SaveBtn_Click(sender As Object, e As RoutedEventArgs) Handles SaveBtn.Click
|
Private Sub SaveBtn_Click(sender As Object, e As RoutedEventArgs) Handles SaveBtn.Click
|
||||||
If m_SaveFileDialogVM.MySave() Then
|
If m_SaveFileDialogVM.MySave() Then
|
||||||
@@ -31,4 +37,6 @@
|
|||||||
Return MyBase.ShowDialog()
|
Return MyBase.ShowDialog()
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,17 +1,10 @@
|
|||||||
Imports System.ComponentModel
|
Imports System.IO
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.IO
|
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
|
|
||||||
Public Class MySaveFileDialogVM
|
Public Class MySaveFileDialogVM
|
||||||
Inherits EgtWPFLib5.SaveFileDialogVM
|
Inherits EgtWPFLib5.SaveFileDialogVM
|
||||||
|
|
||||||
Public ReadOnly Property IsFrameMsg As String
|
#Region "FIELDS & PROPERTIES"
|
||||||
Get
|
|
||||||
' 50727=Frame
|
|
||||||
Return EgtMsg(50727)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public ReadOnly Property VisibilityCreateFrameDir As Visibility
|
Public ReadOnly Property VisibilityCreateFrameDir As Visibility
|
||||||
Get
|
Get
|
||||||
@@ -33,6 +26,29 @@ Public Class MySaveFileDialogVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#Region "Messages"
|
||||||
|
|
||||||
|
Public ReadOnly Property IsFrameMsg As String
|
||||||
|
Get
|
||||||
|
' 50727=Frame
|
||||||
|
Return EgtMsg(50727)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Messages
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Friend Function MySave() As Boolean
|
Friend Function MySave() As Boolean
|
||||||
If IsFolder And IsFrame Then
|
If IsFolder And IsFrame Then
|
||||||
WriteFileName &= FRAME_FOLDER
|
WriteFileName &= FRAME_FOLDER
|
||||||
@@ -59,8 +75,6 @@ Public Class MySaveFileDialogVM
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Sub New()
|
#End Region ' Methods
|
||||||
MyBase.New()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.ComponentModel
|
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Public Class Project
|
Public Class Project
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_Name As String
|
Private m_Name As String
|
||||||
Public Property Name As String
|
Public Property Name As String
|
||||||
Get
|
Get
|
||||||
@@ -13,7 +14,7 @@ Public Class Project
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_Name = value
|
m_Name = value
|
||||||
NotifyPropertyChanged("Name")
|
NotifyPropertyChanged(NameOf(Name))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -33,37 +34,43 @@ Public Class Project
|
|||||||
Return m_SelAssemblyName
|
Return m_SelAssemblyName
|
||||||
End Get
|
End Get
|
||||||
Set(value As AssemblyName)
|
Set(value As AssemblyName)
|
||||||
If IsNothing(value) then
|
If IsNothing(value) Then
|
||||||
m_SelAssemblyName = value
|
m_SelAssemblyName = value
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
m_SelAssemblyName = value
|
m_SelAssemblyName = value
|
||||||
Map.refAssemblyManagerVM.Open(m_SelAssemblyName)
|
Map.refAssemblyManagerVM.Open(m_SelAssemblyName)
|
||||||
NotifyPropertyChanged("Name")
|
NotifyPropertyChanged(NameOf(Name))
|
||||||
NotifyPropertyChanged("SelAssemblyName")
|
NotifyPropertyChanged(NameOf(SelAssemblyName))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Friend Function IsBlockedSelAssemblyName(value As AssemblyName) As Boolean
|
Friend Function IsBlockedSelAssemblyName(value As AssemblyName) As Boolean
|
||||||
If IsNothing(value) then Return false
|
If IsNothing(value) Then Return False
|
||||||
If Not File.Exists(value.Name) AndAlso Not IsNothing(Map.refAssemblyManagerVM) AndAlso Not IsNothing(Map.refAssemblyManagerVM.CurrProject) then
|
If Not File.Exists(value.Name) AndAlso Not IsNothing(Map.refAssemblyManagerVM) AndAlso Not IsNothing(Map.refAssemblyManagerVM.CurrProject) Then
|
||||||
Map.refAssemblyManagerVM.RefreshAssembly()
|
Map.refAssemblyManagerVM.RefreshAssembly()
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
If value.Name = m_SelAssemblyName.Name then
|
If value.Name = m_SelAssemblyName.Name Then
|
||||||
Map.refAssemblyManagerVM.Open(m_SelAssemblyName)
|
Map.refAssemblyManagerVM.Open(m_SelAssemblyName)
|
||||||
Return false
|
Return False
|
||||||
End If
|
End If
|
||||||
If Not Utility.IsFileLocked(Path.GetDirectoryName(value.Name), value.GraphicName) then
|
If Not Utility.IsFileLocked(Path.GetDirectoryName(value.Name), value.GraphicName) Then
|
||||||
m_SelAssemblyName = value
|
m_SelAssemblyName = value
|
||||||
Utility.OutLog("Chiudo progetto : " & m_SelAssemblyName.Name)
|
Utility.OutLog("Chiudo progetto : " & m_SelAssemblyName.Name)
|
||||||
Utility.UnLockDir()
|
Utility.UnLockDir()
|
||||||
'Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nNothingSelected
|
'Map.refMainWindowVM.SelectedPage = MainWindowVM.ListPageEnum.nNothingSelected
|
||||||
Utility.LockDir(Path.GetDirectoryName(m_SelAssemblyName.Name),m_SelAssemblyName.GraphicName)
|
Utility.LockDir(Path.GetDirectoryName(m_SelAssemblyName.Name), m_SelAssemblyName.GraphicName)
|
||||||
Return false
|
Return False
|
||||||
End If
|
End If
|
||||||
Map.refAssemblyManagerVM.Open(m_SelAssemblyName)
|
Map.refAssemblyManagerVM.Open(m_SelAssemblyName)
|
||||||
Return true
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -1,40 +1,70 @@
|
|||||||
<UserControl x:Class="ProjectManagerHardwareV"
|
<UserControl x:Class="ProjectManagerHardwareV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<StackPanel Orientation="Horizontal" IsEnabled="{Binding EnableProjectManagerHardware}" Height="32">
|
|
||||||
|
<StackPanel Orientation="Horizontal"
|
||||||
|
IsEnabled="{Binding EnableProjectManagerHardware}"
|
||||||
|
Height="32">
|
||||||
|
|
||||||
<!--Barra superiore dei comandi-->
|
<!--Barra superiore dei comandi-->
|
||||||
<!--nuovo brand-->
|
<!--nuovo brand-->
|
||||||
<Button Command="{Binding NewDirCommand}" ToolTip="{Binding NewDirToolTip}" Focusable="False">
|
<Button Command="{Binding NewDirCommand}"
|
||||||
<Image Source="/Resources/TopCommandBar/NewDir.png" Stretch="Uniform"/>
|
ToolTip="{Binding NewDirToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource NewFolder}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--nuovo template-->
|
<!--nuovo template-->
|
||||||
<Button Command="{Binding NewCommand}" ToolTip="{Binding NewToolTip}" Focusable="False">
|
<Button Command="{Binding NewCommand}"
|
||||||
<Image Source="/Resources/TopCommandBar/NewFile.png" Stretch="Uniform"/>
|
ToolTip="{Binding NewToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource NewFile}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--salva-->
|
<!--salva-->
|
||||||
<Button Command="{Binding SaveCommand}" ToolTip="{Binding SaveToolTip}" Focusable="False">
|
<Button Command="{Binding SaveCommand}"
|
||||||
<!--<Image Source="{Binding IsModifiedImage}" Stretch="Uniform"/>-->
|
ToolTip="{Binding SaveToolTip}"
|
||||||
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
Focusable="False"
|
||||||
</Button>
|
Style="{DynamicResource DoorsBtn}">
|
||||||
<!--duplica-->
|
<!--<Image Source="{Binding IsModifiedImage}" Stretch="Uniform"/>-->
|
||||||
<Button Command="{Binding DuplicaCommand}" ToolTip="{Binding DuplicaToolTip}" Focusable="False">
|
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<Image Source="/Resources/TopCommandBar/DuplicaFile.png" Stretch="Uniform" />
|
<Image Source="{DynamicResource Save}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
|
</Button>
|
||||||
|
<!--duplica-->
|
||||||
|
<Button Command="{Binding DuplicaCommand}"
|
||||||
|
ToolTip="{Binding DuplicaToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource CopyFile}" Stretch="Uniform"/>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--elimina-->
|
<!--elimina-->
|
||||||
<Button Command="{Binding DeleteCommand}" ToolTip="{Binding DeleteToolTip}" Focusable="False"
|
<Button Command="{Binding DeleteCommand}"
|
||||||
Visibility="{Binding DisableDeleteCommandHM}">
|
ToolTip="{Binding DeleteToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Visibility="{Binding DisableDeleteCommandHM}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<Image Source="/Resources/TopCommandBar/Delete.png" Stretch="Uniform" />
|
<Image Source="{DynamicResource DeleteFile}" Stretch="Uniform"/>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--Aaggiorna-->
|
<!--Aaggiorna-->
|
||||||
<Button Command="{Binding RefreshDirCommand}" ToolTip="{Binding RefreshDirToolTip}" Focusable="False">
|
<Button Command="{Binding RefreshDirCommand}"
|
||||||
<Image Source="/Resources/Refresh/RefreshDir.png" Stretch="Uniform"/>
|
ToolTip="{Binding RefreshDirToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource Refresh}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--go back door--><!--
|
<!--go back door-->
|
||||||
|
<!--
|
||||||
<Button Command="{Binding DoorCommand}" ToolTip="{Binding DoorToolTip}" Focusable="False">
|
<Button Command="{Binding DoorCommand}" ToolTip="{Binding DoorToolTip}" Focusable="False">
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<Image Source="/Resources/TopCommandBar/Door.png" Stretch="Uniform" />
|
<Image Source="/Resources/TopCommandBar/Door.png" Stretch="Uniform" />
|
||||||
@@ -47,30 +77,44 @@
|
|||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>-->
|
</Button>-->
|
||||||
<!--Opzioni-->
|
<!--Opzioni-->
|
||||||
<Button Command="{Binding OptionsCommand}" ToolTip="{Binding OptionsToolTip}" Focusable="False"
|
<Button Command="{Binding OptionsCommand}"
|
||||||
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}">
|
ToolTip="{Binding OptionsToolTip}"
|
||||||
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
Focusable="False"
|
||||||
|
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource Option}" Height="22" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--feed back-->
|
<!--feed back-->
|
||||||
<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}" Focusable="False">
|
<Button Command="{Binding SendFeedbackCommand}"
|
||||||
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
ToolTip="{Binding SendFeedbackToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource FeedBack}" Height="22" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--help-->
|
<!--help-->
|
||||||
<Button Command="{Binding GuideCommand}" ToolTip="{Binding GuideToolTip}" Focusable="False">
|
<Button Command="{Binding GuideCommand}"
|
||||||
<ContentControl>
|
ToolTip="{Binding GuideToolTip}"
|
||||||
<Image Source="/Resources/TopCommandBar/Help.png" Stretch="Uniform" />
|
Focusable="False"
|
||||||
</ContentControl>
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource Help}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--Door-->
|
<!--Door-->
|
||||||
<RadioButton Style="{StaticResource ModeButton}"
|
<RadioButton Command="{Binding DoorCommand}"
|
||||||
Command="{Binding DoorCommand}" ToolTip="{Binding DoorToolTip}"
|
Content="{Binding DoorToolTip}"
|
||||||
Content="{Binding DoorToolTip}">
|
ToolTip="{Binding DoorToolTip}"
|
||||||
|
Style="{DynamicResource ModeButton}">
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
<!--Hardware-->
|
<!--Hardware-->
|
||||||
<RadioButton Style="{StaticResource ModeButton}"
|
<RadioButton Content="{Binding HardwareToolTip}"
|
||||||
ToolTip="{Binding HardwareToolTip}"
|
ToolTip="{Binding HardwareToolTip}"
|
||||||
IsChecked="{Binding HardwareIsChecked}"
|
IsChecked="{Binding HardwareIsChecked}"
|
||||||
Content="{Binding HardwareToolTip}">
|
Style="{DynamicResource ModeButton}">
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.ComponentModel
|
||||||
Imports System.ComponentModel
|
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports Ionic.zip
|
|
||||||
|
|
||||||
Public Class ProjectManagerHardwareVM
|
Public Class ProjectManagerHardwareVM
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
@@ -37,7 +35,7 @@ Public Class ProjectManagerHardwareVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_IsModifiedImage = value
|
m_IsModifiedImage = value
|
||||||
NotifyPropertyChanged("IsModifiedImage")
|
NotifyPropertyChanged(NameOf(IsModifiedImage))
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -61,6 +59,17 @@ Public Class ProjectManagerHardwareVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
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(NameOf(HardwareIsChecked))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
' Definizione comandi
|
' Definizione comandi
|
||||||
Private m_cmdNewDir As ICommand
|
Private m_cmdNewDir As ICommand
|
||||||
Private m_cmdRefreshDir As ICommand
|
Private m_cmdRefreshDir As ICommand
|
||||||
@@ -291,11 +300,12 @@ Public Class ProjectManagerHardwareVM
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Sub Options(ByVal param As Object)
|
Public Sub Options(ByVal param As Object)
|
||||||
Dim OptionsWindow As New OptionsV
|
Dim OptionsWindow As New OptionsV With {
|
||||||
OptionsWindow.Height = 750
|
.Height = 750,
|
||||||
OptionsWindow.Width = 650
|
.Width = 650,
|
||||||
OptionsWindow.DataContext = New OptionsVM()
|
.DataContext = New OptionsVM(),
|
||||||
OptionsWindow.Owner = Application.Current.MainWindow
|
.Owner = Application.Current.MainWindow
|
||||||
|
}
|
||||||
OptionsWindow.ShowDialog()
|
OptionsWindow.ShowDialog()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -410,7 +420,8 @@ Public Class ProjectManagerHardwareVM
|
|||||||
|
|
||||||
#End Region ' SendFeedbackCommand
|
#End Region ' SendFeedbackCommand
|
||||||
|
|
||||||
#Region "Guide"
|
#Region "GuideCommand"
|
||||||
|
|
||||||
Public ReadOnly Property GuideCommand As ICommand
|
Public ReadOnly Property GuideCommand As ICommand
|
||||||
Get
|
Get
|
||||||
If m_cmdGuide Is Nothing Then
|
If m_cmdGuide Is Nothing Then
|
||||||
@@ -425,9 +436,9 @@ Public Class ProjectManagerHardwareVM
|
|||||||
GuideWindow.Show()
|
GuideWindow.Show()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Guide
|
#End Region ' GuideCommand
|
||||||
|
|
||||||
#Region "Duplica"
|
#Region "DuplicaCommand"
|
||||||
|
|
||||||
Public ReadOnly Property DuplicaCommand As ICommand
|
Public ReadOnly Property DuplicaCommand As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -468,8 +479,8 @@ Public Class ProjectManagerHardwareVM
|
|||||||
Map.refHardwarePageVM.CurrHardware.ReadChapterTemplate()
|
Map.refHardwarePageVM.CurrHardware.ReadChapterTemplate()
|
||||||
Map.refHardwarePageVM.CurrHardware.ReadTemplate()
|
Map.refHardwarePageVM.CurrHardware.ReadTemplate()
|
||||||
Map.refHardwarePageVM.CurrHardware.SetLayerName(refNewhardwareVM.Template)
|
Map.refHardwarePageVM.CurrHardware.SetLayerName(refNewhardwareVM.Template)
|
||||||
Map.refHardwarePageVM.CurrHardware.NotifyPropertyChanged("SelTemplate")
|
Map.refHardwarePageVM.CurrHardware.NotifyPropertyChanged(NameOf(Map.refHardwarePageVM.CurrHardware.SelTemplate))
|
||||||
Map.refHardwarePageVM.NotifyPropertyChanged("CurrHardware")
|
Map.refHardwarePageVM.NotifyPropertyChanged(NameOf(Map.refHardwarePageVM.CurrHardware))
|
||||||
Map.refHardwarePageVM.CurrHardware.DuplicateGeometryName(OldHardwareName)
|
Map.refHardwarePageVM.CurrHardware.DuplicateGeometryName(OldHardwareName)
|
||||||
Map.refHardwarePageVM.CurrHardware.DuplicateFileLuaInAggreagate(OldHardwareName)
|
Map.refHardwarePageVM.CurrHardware.DuplicateFileLuaInAggreagate(OldHardwareName)
|
||||||
Map.refHardwarePageVM.CurrHardware.Save()
|
Map.refHardwarePageVM.CurrHardware.Save()
|
||||||
@@ -481,9 +492,9 @@ Public Class ProjectManagerHardwareVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region ' Duplica
|
#End Region ' DuplicaCommand
|
||||||
|
|
||||||
#Region "Delete"
|
#Region "DeleteCommand"
|
||||||
|
|
||||||
Public ReadOnly Property DeleteCommand As ICommand
|
Public ReadOnly Property DeleteCommand As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -514,9 +525,9 @@ Public Class ProjectManagerHardwareVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' DeleteCommand
|
||||||
|
|
||||||
#Region "Door"
|
#Region "DoorCommand"
|
||||||
|
|
||||||
Public ReadOnly Property DoorCommand As ICommand
|
Public ReadOnly Property DoorCommand As ICommand
|
||||||
Get
|
Get
|
||||||
@@ -577,50 +588,43 @@ Public Class ProjectManagerHardwareVM
|
|||||||
End If
|
End If
|
||||||
Map.refInstrumentPanelVM.DimensionVisibility = OptionModule.m_DimensionDoor
|
Map.refInstrumentPanelVM.DimensionVisibility = OptionModule.m_DimensionDoor
|
||||||
Map.refInstrumentPanelVM.SaveImgHardware = OptionModule.m_DimensionDoor
|
Map.refInstrumentPanelVM.SaveImgHardware = OptionModule.m_DimensionDoor
|
||||||
Map.refProjectManagerVM.NotifyPropertyChanged("VisibilityCreateAssembly")
|
Map.refProjectManagerVM.NotifyPropertyChanged(NameOf(Map.refProjectManagerVM.VisibilityCreateAssembly))
|
||||||
Map.refRefreshPanelVM.DimensionVisibility = Visibility.Collapsed
|
Map.refRefreshPanelVM.DimensionVisibility = Visibility.Collapsed
|
||||||
CompoMatch.ResetSTU()
|
CompoMatch.ResetSTU()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private m_HardwareIsChecked As Boolean =True
|
#End Region ' DoorCommand
|
||||||
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
|
'#Region "Dimension Part"
|
||||||
|
|
||||||
'#Region "Dimension Part"
|
' Public ReadOnly Property DimensionCommand As ICommand
|
||||||
|
' Get
|
||||||
|
' If m_cmdDimensionPart Is Nothing Then
|
||||||
|
' m_cmdDimensionPart = New Command(AddressOf Dimension)
|
||||||
|
' End If
|
||||||
|
' Return m_cmdDimensionPart
|
||||||
|
' End Get
|
||||||
|
' End Property
|
||||||
|
|
||||||
' Public ReadOnly Property DimensionCommand As ICommand
|
' Public Sub Dimension()
|
||||||
' Get
|
' Dim ref_HardwarePartVM As New HardwarePartVM()
|
||||||
' If m_cmdDimensionPart Is Nothing Then
|
' Dim HardwarePartWnd As New HardwarePartV(Application.Current.MainWindow, ref_HardwarePartVM)
|
||||||
' m_cmdDimensionPart = New Command(AddressOf Dimension)
|
' HardwarePartWnd.ShowDialog()
|
||||||
' End If
|
' ref_GeometryListConfigVM = Nothing
|
||||||
' Return m_cmdDimensionPart
|
' End Sub
|
||||||
' End Get
|
|
||||||
' End Property
|
|
||||||
|
|
||||||
' Public Sub Dimension()
|
'#End Region ' Dimension Part
|
||||||
' Dim ref_HardwarePartVM As New HardwarePartVM()
|
|
||||||
' Dim HardwarePartWnd As New HardwarePartV(Application.Current.MainWindow, ref_HardwarePartVM)
|
|
||||||
' HardwarePartWnd.ShowDialog()
|
|
||||||
' ref_GeometryListConfigVM = Nothing
|
|
||||||
' End Sub
|
|
||||||
|
|
||||||
'#End Region ' Dimension Part
|
|
||||||
|
|
||||||
#End Region ' Commands
|
#End Region ' Commands
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public Sub NotifyPropertyChanged(propName As String)
|
Public Sub NotifyPropertyChanged(propName As String)
|
||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -1,23 +1,35 @@
|
|||||||
<UserControl x:Class="ProjectManagerV"
|
<UserControl x:Class="ProjectManagerV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" IsEnabled="{Binding EnableProjectManager}" Height="32">
|
<StackPanel Orientation="Horizontal" IsEnabled="{Binding EnableProjectManager}" Height="32">
|
||||||
|
|
||||||
<!--Barra superiore dei comandi-->
|
<!--Barra superiore dei comandi-->
|
||||||
<Button Command="{Binding NewCommand}" ToolTip="{Binding NewToolTip}" Focusable="False"
|
<Button Command="{Binding NewCommand}"
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding NewToolTip}"
|
||||||
<Image Source="{Binding NewProjectImg}" Stretch="Uniform"/>
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource NewFile}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--Visibility="{Binding VisibilityDeleteDDF}"-->
|
<!--Visibility="{Binding VisibilityDeleteDDF}"-->
|
||||||
<Button Command="{Binding DeleteCommand}" ToolTip="{Binding DeleteToolTip}" Focusable="False"
|
<Button Command="{Binding DeleteCommand}"
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding DeleteToolTip}"
|
||||||
<Image Source="{Binding DeleteProjectImg}" Stretch="Uniform"/>
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource DeleteFile}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding OpenCommand}" ToolTip="{Binding OpenToolTip}"
|
<Button Command="{Binding OpenCommand}"
|
||||||
|
ToolTip="{Binding OpenToolTip}"
|
||||||
Focusable="False"
|
Focusable="False"
|
||||||
ContextMenuService.Placement="Bottom"
|
ContextMenuService.Placement="Bottom"
|
||||||
Tag="{Binding}">
|
Tag="{Binding}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
<Button.ContextMenu>
|
<Button.ContextMenu>
|
||||||
<ContextMenu ItemsSource="{Binding MruFileNames}">
|
<ContextMenu ItemsSource="{Binding MruFileNames}">
|
||||||
<ContextMenu.Resources>
|
<ContextMenu.Resources>
|
||||||
@@ -26,49 +38,78 @@
|
|||||||
Value="{Binding PlacementTarget.Tag.OpenMruFileCommand,
|
Value="{Binding PlacementTarget.Tag.OpenMruFileCommand,
|
||||||
RelativeSource={RelativeSource Mode=FindAncestor,
|
RelativeSource={RelativeSource Mode=FindAncestor,
|
||||||
AncestorType=ContextMenu}}"/>
|
AncestorType=ContextMenu}}"/>
|
||||||
<Setter Property="CommandParameter" Value="{Binding}" />
|
<Setter Property="CommandParameter" Value="{Binding}"/>
|
||||||
</Style>
|
</Style>
|
||||||
</ContextMenu.Resources>
|
</ContextMenu.Resources>
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
</Button.ContextMenu>
|
</Button.ContextMenu>
|
||||||
<Image Source="/Resources/TopCommandBar/Open.png" Stretch="Uniform"/>
|
|
||||||
</Button>
|
|
||||||
<Button Command="{Binding ReloadCommand}" ToolTip="{Binding ReloadToolTip}" Focusable="False"
|
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
|
||||||
<Image Source="/Resources/Refresh/RefreshDir.png" Stretch="Uniform"/>
|
|
||||||
</Button>
|
|
||||||
<Button Command="{Binding SaveCommand}" ToolTip="{Binding SaveToolTip}" Focusable="False"
|
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
|
||||||
<Image Source="/Resources/TopCommandBar/Save.png" Stretch="Uniform"/>
|
|
||||||
<!--<Image Source="{Binding IsModifiedImage}" Stretch="Uniform"/>-->
|
|
||||||
</Button>
|
|
||||||
<Button Command="{Binding DuplicaCommand}" ToolTip="{Binding DuplicaToolTip}" Focusable="False"
|
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<Image Source="/Resources/TopCommandBar/SaveAs.png" Stretch="Uniform" />
|
<Image Source="{DynamicResource OpenFolder}" Stretch="Uniform"/>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding CreateTemplateCommand}" ToolTip="{Binding TemplateDoorToolTip}" Focusable="False"
|
<Button Command="{Binding ReloadCommand}"
|
||||||
Visibility="{Binding VisibilityTemplate}" IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding ReloadToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<Image Source="/Resources/TopCommandBar/SaveAsTemplate.png" Stretch="Uniform" />
|
<Image Source="{DynamicResource Refresh}" Stretch="Uniform"/>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding CopyCommand}" ToolTip="{Binding CopyToolTip}" Focusable="False"
|
<Button Command="{Binding SaveCommand}"
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding SaveToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<Image Source="/Resources/TopCommandBar/Export.png" Stretch="Uniform" />
|
<Image Source="{DynamicResource Save}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
|
<!--<Image Source="{Binding IsModifiedImage}" Stretch="Uniform"/>-->
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding DuplicaCommand}"
|
||||||
|
ToolTip="{Binding DuplicaToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource SaveAs}" Stretch="Uniform"/>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding OpenCamCommand}" ToolTip="{Binding OpenCamToolTip}" Focusable="False"
|
<Button Command="{Binding CreateTemplateCommand}"
|
||||||
Visibility="{Binding VisibilityEgtCAM}" IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding TemplateDoorToolTip}"
|
||||||
<ContentControl>
|
Focusable="False"
|
||||||
<Image Source="/Resources/EgtCAM5.png" Stretch="Uniform" />
|
Visibility="{Binding VisibilityTemplate}"
|
||||||
</ContentControl>
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
</Button>
|
Style="{DynamicResource DoorsBtn}">
|
||||||
<Button Command="{Binding PrintCommand}" ToolTip="{Binding PrintToolTip}" Focusable="False">
|
|
||||||
<ContentControl>
|
<ContentControl>
|
||||||
<Image Source="/Resources/InstrumentPanel/Print.png" Stretch="Uniform" />
|
<Image Source="{DynamicResource SaveAsTemplate}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding CopyCommand}"
|
||||||
|
ToolTip="{Binding CopyToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource ExportToMachine}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding OpenCamCommand}"
|
||||||
|
ToolTip="{Binding OpenCamToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Visibility="{Binding VisibilityEgtCAM}"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="/Resources/EgtCAM5.png" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding PrintCommand}"
|
||||||
|
ToolTip="{Binding PrintToolTip}"
|
||||||
|
Focusable="False"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource Print}" Stretch="Uniform"/>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--<Button Command="{Binding RefreshDirCommand}" ToolTip="{Binding RefreshDirToolTip}" Focusable="False">
|
<!--<Button Command="{Binding RefreshDirCommand}" ToolTip="{Binding RefreshDirToolTip}" Focusable="False">
|
||||||
@@ -81,37 +122,57 @@
|
|||||||
<Image Source="/Resources/InstrumentPanel/Hardware.png" Stretch="Uniform" />
|
<Image Source="/Resources/InstrumentPanel/Hardware.png" Stretch="Uniform" />
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Button>-->
|
</Button>-->
|
||||||
<Button Command="{Binding CreateAssemblyCommand}" ToolTip="{Binding CreateAssemblyToolTip}" Focusable="False"
|
<Button Command="{Binding CreateAssemblyCommand}"
|
||||||
Visibility="{Binding VisibilityCreateAssembly}" IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding CreateAssemblyToolTip}"
|
||||||
<ContentControl>
|
Focusable="False"
|
||||||
<Image Source="/Resources/TopCommandBar/Create Assembly.png" Stretch="Uniform" />
|
Visibility="{Binding VisibilityCreateAssembly}"
|
||||||
</ContentControl>
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource CreateAssembly}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding OptionsCommand}" ToolTip="{Binding OptionsToolTip}" Focusable="False"
|
<Button Command="{Binding OptionsCommand}"
|
||||||
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}" IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding OptionsToolTip}"
|
||||||
<Image Source="/Resources/TopCommandBar/Options.png" Height="22" />
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource Option}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding SendFeedbackCommand}" ToolTip="{Binding SendFeedbackToolTip}" Focusable="False"
|
<Button Command="{Binding SendFeedbackCommand}"
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
ToolTip="{Binding SendFeedbackToolTip}"
|
||||||
<Image Source="/Resources/TopCommandBar/Send.png" Height="22" Margin="3,0,3,0" />
|
Focusable="False"
|
||||||
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource FeedBack}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding GuideCommand}" ToolTip="{Binding GuideToolTip}" Focusable="False">
|
<Button Command="{Binding GuideCommand}"
|
||||||
<ContentControl>
|
ToolTip="{Binding GuideToolTip}"
|
||||||
<Image Source="/Resources/TopCommandBar/Help.png" Stretch="Uniform" />
|
Focusable="False"
|
||||||
</ContentControl>
|
Style="{DynamicResource DoorsBtn}">
|
||||||
|
<ContentControl>
|
||||||
|
<Image Source="{DynamicResource Help}" Stretch="Uniform"/>
|
||||||
|
</ContentControl>
|
||||||
</Button>
|
</Button>
|
||||||
<!--Door-->
|
<!--Door-->
|
||||||
<RadioButton Style="{StaticResource ModeButton}" Visibility="{Binding DisableHM}"
|
<RadioButton Content="{Binding DoorToolTip}"
|
||||||
ToolTip="{Binding DoorToolTip}"
|
|
||||||
IsChecked="{Binding DoorIsChecked}"
|
IsChecked="{Binding DoorIsChecked}"
|
||||||
Content="{Binding DoorToolTip}"
|
ToolTip="{Binding DoorToolTip}"
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Visibility="{Binding DisableHM}"
|
||||||
|
Style="{DynamicResource ModeButton}">
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
<!--Hardware-->
|
<!--Hardware-->
|
||||||
<RadioButton Style="{StaticResource ModeButton}" Visibility="{Binding DisableHM}"
|
<RadioButton Content="{Binding HardwareToolTip}"
|
||||||
Command="{Binding HardwareCommand}" ToolTip="{Binding HardwareToolTip}"
|
Command="{Binding HardwareCommand}"
|
||||||
Content="{Binding HardwareToolTip}"
|
ToolTip="{Binding HardwareToolTip}"
|
||||||
IsEnabled="{Binding EnableModifyDDF}">
|
IsEnabled="{Binding EnableModifyDDF}"
|
||||||
|
Visibility="{Binding DisableHM}"
|
||||||
|
Style="{DynamicResource ModeButton}">
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
Imports combit.ListLabel25
|
Imports System.Collections.ObjectModel
|
||||||
Imports combit.ListLabel25.DataProviders
|
|
||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.Collections.Generic
|
|
||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports Ionic.Zip
|
|
||||||
|
|
||||||
Public Class ProjectManagerVM
|
Public Class ProjectManagerVM
|
||||||
Implements INotifyPropertyChanged
|
Implements INotifyPropertyChanged
|
||||||
@@ -79,7 +75,8 @@ Public Class ProjectManagerVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_IsModifiedImage As String = "/Resources/TopCommandBar/Save.png"
|
'Private m_IsModifiedImage As String = "/Resources/TopCommandBar/Save.png"
|
||||||
|
Private m_IsModifiedImage As String = "/Resources/TopCommandBar/NewIco/save.png"
|
||||||
Public Property IsModifiedImage As String
|
Public Property IsModifiedImage As String
|
||||||
Get
|
Get
|
||||||
Return m_IsModifiedImage
|
Return m_IsModifiedImage
|
||||||
@@ -90,7 +87,8 @@ Public Class ProjectManagerVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_DeleteProjectImg As String = "/Resources/TopCommandBar/Delete.png"
|
'Private m_DeleteProjectImg As String = "/Resources/TopCommandBar/Delete.png"
|
||||||
|
Private m_DeleteProjectImg As String = "/Resources/NewIco/deletefile.png"
|
||||||
Public ReadOnly Property DeleteProjectImg As String
|
Public ReadOnly Property DeleteProjectImg As String
|
||||||
Get
|
Get
|
||||||
If Not OptionModule.m_SingleDoor Then
|
If Not OptionModule.m_SingleDoor Then
|
||||||
@@ -100,7 +98,8 @@ Public Class ProjectManagerVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_NewProjectImg As String = "/Resources/TopCommandBar/NewFile.png"
|
' Private m_NewProjectImg As String = "/Resources/TopCommandBar/NewFile.png"
|
||||||
|
Private m_NewProjectImg As String = "/Resources/NewIco/newfile.png"
|
||||||
Public ReadOnly Property NewProjectImg As String
|
Public ReadOnly Property NewProjectImg As String
|
||||||
Get
|
Get
|
||||||
If Not OptionModule.m_SingleDoor Then
|
If Not OptionModule.m_SingleDoor Then
|
||||||
@@ -285,6 +284,62 @@ Public Class ProjectManagerVM
|
|||||||
|
|
||||||
#End Region ' Constructor
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
'questo metodo restituisce l'errore letto nel file CurrDoor.txt
|
||||||
|
Public Sub ShowGraphicError(ByRef ErrorMessages As String, ByRef Type As Integer)
|
||||||
|
' se non c'è nessuna porta aperta allora esco
|
||||||
|
If IsNothing(Map.refAssemblyManagerVM.CurrProject) OrElse
|
||||||
|
IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName) Then
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
Dim FileLog As String = Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.Name
|
||||||
|
FileLog = FileLog.Replace(DDF_EXTENSION, ".txt")
|
||||||
|
Dim FileContent() As String
|
||||||
|
' controllo se esite il file CurrDoor.txt
|
||||||
|
If Not File.Exists(FileLog) Then Return
|
||||||
|
FileContent = File.ReadAllLines(FileLog)
|
||||||
|
' se il file esiste ma è vuoto
|
||||||
|
If FileContent.Count = 0 Then
|
||||||
|
MessageBox.Show(EgtMsg(50107), EgtMsg(50101), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
End If
|
||||||
|
Dim IndexLine As Integer = 0
|
||||||
|
Dim nMsgErr As Integer = 0
|
||||||
|
' leggo il valore numerico (se il valore non è numerico è passato di default il valore 0)
|
||||||
|
nMsgErr = RegexFunction.ErrDraw(FileContent(IndexLine))
|
||||||
|
Type = nMsgErr
|
||||||
|
' passo alla riga succesiva
|
||||||
|
IndexLine += 1
|
||||||
|
' se il valore è maggiore di zero allora è un errore
|
||||||
|
If nMsgErr > 0 Then
|
||||||
|
' salto tutte le righe vuote
|
||||||
|
While String.IsNullOrEmpty(FileContent(IndexLine)) AndAlso IndexLine < FileContent.Count
|
||||||
|
IndexLine += 1
|
||||||
|
End While
|
||||||
|
ErrorMessages = FileContent(IndexLine)
|
||||||
|
IndexLine += 1
|
||||||
|
While IndexLine < FileContent.Count
|
||||||
|
ErrorMessages &= vbNewLine & FileContent(IndexLine)
|
||||||
|
IndexLine += 1
|
||||||
|
End While
|
||||||
|
' altrimenti un avvertimento
|
||||||
|
ElseIf nMsgErr < 0 Then
|
||||||
|
While String.IsNullOrEmpty(FileContent(IndexLine)) AndAlso IndexLine < FileContent.Count
|
||||||
|
IndexLine += 1
|
||||||
|
End While
|
||||||
|
ErrorMessages = FileContent(IndexLine)
|
||||||
|
IndexLine += 1
|
||||||
|
While IndexLine < FileContent.Count
|
||||||
|
ErrorMessages &= vbNewLine & FileContent(IndexLine)
|
||||||
|
IndexLine += 1
|
||||||
|
End While
|
||||||
|
Else
|
||||||
|
ErrorMessages = String.Empty
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
|
|
||||||
#Region "NewCommand"
|
#Region "NewCommand"
|
||||||
@@ -1737,63 +1792,10 @@ Public Class ProjectManagerVM
|
|||||||
|
|
||||||
#End Region ' CreateAssemblyCommand
|
#End Region ' CreateAssemblyCommand
|
||||||
|
|
||||||
#Region "METHODS"
|
|
||||||
|
|
||||||
#End Region ' Methos
|
|
||||||
'questo metodo restituisce l'errore letto nel file CurrDoor.txt
|
|
||||||
Public Sub ShowGraphicError(ByRef ErrorMessages As String, ByRef Type As Integer)
|
|
||||||
' se non c'è nessuna porta aperta allora esco
|
|
||||||
If IsNothing(Map.refAssemblyManagerVM.CurrProject) OrElse
|
|
||||||
IsNothing(Map.refAssemblyManagerVM.CurrProject.SelAssemblyName) Then
|
|
||||||
Return
|
|
||||||
End If
|
|
||||||
Dim FileLog As String = Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.Name
|
|
||||||
FileLog = FileLog.Replace(DDF_EXTENSION, ".txt")
|
|
||||||
Dim FileContent() As String
|
|
||||||
' controllo se esite il file CurrDoor.txt
|
|
||||||
If Not File.Exists(FileLog) Then Return
|
|
||||||
FileContent = File.ReadAllLines(FileLog)
|
|
||||||
' se il file esiste ma è vuoto
|
|
||||||
If FileContent.Count = 0 Then
|
|
||||||
MessageBox.Show(EgtMsg(50107), EgtMsg(50101), MessageBoxButton.OK, MessageBoxImage.Error)
|
|
||||||
End If
|
|
||||||
Dim IndexLine As Integer = 0
|
|
||||||
Dim nMsgErr As Integer = 0
|
|
||||||
' leggo il valore numerico (se il valore non è numerico è passato di default il valore 0)
|
|
||||||
nMsgErr = RegexFunction.ErrDraw(FileContent(IndexLine))
|
|
||||||
Type = nMsgErr
|
|
||||||
' passo alla riga succesiva
|
|
||||||
IndexLine += 1
|
|
||||||
' se il valore è maggiore di zero allora è un errore
|
|
||||||
If nMsgErr > 0 Then
|
|
||||||
' salto tutte le righe vuote
|
|
||||||
While String.IsNullOrEmpty(FileContent(IndexLine)) AndAlso IndexLine < FileContent.Count
|
|
||||||
IndexLine += 1
|
|
||||||
End While
|
|
||||||
ErrorMessages = FileContent(IndexLine)
|
|
||||||
IndexLine += 1
|
|
||||||
While IndexLine < FileContent.Count
|
|
||||||
ErrorMessages &= vbNewLine & FileContent(IndexLine)
|
|
||||||
IndexLine += 1
|
|
||||||
End While
|
|
||||||
' altrimenti un avvertimento
|
|
||||||
ElseIf nMsgErr < 0 Then
|
|
||||||
While String.IsNullOrEmpty(FileContent(IndexLine)) AndAlso IndexLine < FileContent.Count
|
|
||||||
IndexLine += 1
|
|
||||||
End While
|
|
||||||
ErrorMessages = FileContent(IndexLine)
|
|
||||||
IndexLine += 1
|
|
||||||
While IndexLine < FileContent.Count
|
|
||||||
ErrorMessages &= vbNewLine & FileContent(IndexLine)
|
|
||||||
IndexLine += 1
|
|
||||||
End While
|
|
||||||
Else
|
|
||||||
ErrorMessages = String.Empty
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' Commands
|
#End Region ' Commands
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
|
||||||
|
|
||||||
Public NotInheritable Class ObjectDataProvider
|
Public NotInheritable Class ObjectDataProvider
|
||||||
@@ -1804,11 +1806,23 @@ Public Class ProjectManagerVM
|
|||||||
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public NotInheritable Class ObjectDataProvider
|
Public NotInheritable Class ObjectDataProvider
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private order As ReportOrder
|
Private order As ReportOrder
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Public Sub New(order As ReportOrder)
|
Public Sub New(order As ReportOrder)
|
||||||
Me.order = order
|
Me.order = order
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
End Class
|
End Class
|
||||||
@@ -1,37 +1,43 @@
|
|||||||
<EgtWPFLib5:EgtCustomWindow x:Class="SelectPartV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="SelectPartV"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
Title="{Binding Title}"
|
Title="{Binding Title}"
|
||||||
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
Height="100" Width="300" Topmost="True"
|
Height="110" Width="300" Topmost="True"
|
||||||
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
||||||
|
|
||||||
<!--<EgtWPFLib5:EgtCustomWindow.Resources>
|
<!--<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
||||||
</EgtWPFLib5:EgtCustomWindow.Resources>-->
|
</EgtWPFLib5:EgtCustomWindow.Resources>-->
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<UniformGrid Columns="2" Grid.Row="0" Grid.ColumnSpan="2">
|
<UniformGrid Grid.Row="0"
|
||||||
<TextBlock Margin="5" Height="24" Text="{Binding PartDoorMsg}" VerticalAlignment="Center"/>
|
Columns="2"
|
||||||
<ComboBox Margin="5,0,5,0" Height="24" VerticalAlignment="Center"
|
Grid.ColumnSpan="2">
|
||||||
ItemsSource="{Binding PartDoorList}" SelectedItem="{Binding Selection}"/>
|
<TextBlock Text="{Binding PartDoorMsg}"
|
||||||
</UniformGrid>
|
Style="{DynamicResource SelectTxBl}"/>
|
||||||
|
<ComboBox ItemsSource="{Binding PartDoorList}"
|
||||||
|
SelectedItem="{Binding Selection}"
|
||||||
|
Style="{DynamicResource SelectCmBx}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
<Button Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Name="OkBtn"
|
||||||
|
Content="{Binding SaveMsg}"
|
||||||
|
Style="{DynamicResource EgtWPFLib5_SelectButton}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Button IsDefault="True" Name="OkBtn" Grid.Row="2" Grid.ColumnSpan="2"
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
Content="{Binding SaveMsg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
Public Class SelectPartV
|
Public Class SelectPartV
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
|
|
||||||
' La chiamata è richiesta dalla finestra di progettazione.
|
' La chiamata è richiesta dalla finestra di progettazione.
|
||||||
@@ -9,7 +11,13 @@
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
Private Sub OkBtn_Click() Handles OkBtn.Click
|
Private Sub OkBtn_Click() Handles OkBtn.Click
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Public Class SelectPartVM
|
Public Class SelectPartVM
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_Title As String = "Selection of door"
|
Private m_Title As String = "Selection of door"
|
||||||
Public ReadOnly Property Title As String
|
Public ReadOnly Property Title As String
|
||||||
Get
|
Get
|
||||||
@@ -7,6 +9,13 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_SaveMsg As String = "Ok"
|
||||||
|
Public ReadOnly Property SaveMsg As String
|
||||||
|
Get
|
||||||
|
Return m_SaveMsg
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Private m_PartDoorMsg As String = "Select part"
|
Private m_PartDoorMsg As String = "Select part"
|
||||||
Public ReadOnly Property PartDoorMsg As String
|
Public ReadOnly Property PartDoorMsg As String
|
||||||
Get
|
Get
|
||||||
@@ -31,16 +40,36 @@
|
|||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
m_Selection = value
|
m_Selection = value
|
||||||
|
m_nSelectedIndex = m_PartDoorList.IndexOf(m_Selection)
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_nSelectedIndex As Integer = 0
|
||||||
|
Public ReadOnly Property nSelectedIndex As Integer
|
||||||
|
Get
|
||||||
|
Return m_nSelectedIndex
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(TitleWd As String, MsgWd As String, nParts As Integer, nIndex As Integer)
|
Sub New(TitleWd As String, MsgWd As String, nParts As Integer, nIndex As Integer)
|
||||||
m_Title = TitleWd
|
m_Title = TitleWd
|
||||||
m_PartDoorMsg = MsgWd
|
m_PartDoorMsg = MsgWd
|
||||||
For Index As Integer = 0 To nParts - 1
|
For Each ItemDoor As PartDoor In Map.refAssemblyManagerVM.CurrProject.SelAssemblyName.SelAssembly.ListPartDoor
|
||||||
m_PartDoorList.Add("Door " & nParts.ToString)
|
m_PartDoorList.Add(ItemDoor.Type)
|
||||||
Next
|
Next
|
||||||
m_Selection = "Door " & nIndex.ToString
|
If Not IsNothing(Map.refPartPageVM) AndAlso Not IsNothing(Map.refPartPageVM.CurrPart) AndAlso
|
||||||
|
Not IsNothing(Map.refPartPageVM.CurrPart.TypePart) Then
|
||||||
|
m_nSelectedIndex = m_PartDoorList.IndexOf(Map.refPartPageVM.CurrPart.TypePart)
|
||||||
|
Else
|
||||||
|
m_nSelectedIndex = 0
|
||||||
|
End If
|
||||||
|
m_Selection = m_PartDoorList(m_nSelectedIndex)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -4,8 +4,15 @@ Imports EgtUILib
|
|||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Module RegexFunction
|
Module RegexFunction
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Friend sCurrVersionDoor As String = "1"
|
Friend sCurrVersionDoor As String = "1"
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
' restituisce vero se trova il capitoletto [Graphic parameters]
|
' restituisce vero se trova il capitoletto [Graphic parameters]
|
||||||
Friend Function IsGraphicParametersTitle(sLine As String) As Boolean
|
Friend Function IsGraphicParametersTitle(sLine As String) As Boolean
|
||||||
Return Regex.Match(sLine, "\s*--\s*(\[Graphic parameters\])\s*$").Groups(1).Value = "[Graphic parameters]"
|
Return Regex.Match(sLine, "\s*--\s*(\[Graphic parameters\])\s*$").Groups(1).Value = "[Graphic parameters]"
|
||||||
@@ -254,5 +261,6 @@ Module RegexFunction
|
|||||||
Return String.Empty
|
Return String.Empty
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Public Class ReportOrder
|
Public Class ReportOrder
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_Order As String
|
Private m_Order As String
|
||||||
Public Property Order As String
|
Public Property Order As String
|
||||||
Get
|
Get
|
||||||
@@ -24,14 +26,13 @@
|
|||||||
|
|
||||||
Public Property ReportCompoList As New List(Of ReportCompo)
|
Public Property ReportCompoList As New List(Of ReportCompo)
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class ReportCompo
|
Public Class ReportCompo
|
||||||
Public Sub New(Name__1 As String, Brand__2 As String, Template__3 As String)
|
|
||||||
m_Name = Name__1
|
#Region "FIELDS & PROPERTIES"
|
||||||
m_Brand = Brand__2
|
|
||||||
m_Template = Template__3
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private m_Name As String
|
Private m_Name As String
|
||||||
Public Property Name As String
|
Public Property Name As String
|
||||||
@@ -65,11 +66,25 @@ Public Class ReportCompo
|
|||||||
|
|
||||||
Public Property CompoParameterList As New List(Of ReportParameter)
|
Public Property CompoParameterList As New List(Of ReportParameter)
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Public Sub New(Name__1 As String, Brand__2 As String, Template__3 As String)
|
||||||
|
m_Name = Name__1
|
||||||
|
m_Brand = Brand__2
|
||||||
|
m_Template = Template__3
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
' Nuova versione tabella
|
' Nuova versione tabella
|
||||||
Public Class TableDoor
|
Public Class TableDoor
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Public Property Order As New List(Of TableOrder)
|
Public Property Order As New List(Of TableOrder)
|
||||||
Public Property Dimension As New List(Of TableDimension)
|
Public Property Dimension As New List(Of TableDimension)
|
||||||
Public Property Proflie As New List(Of TableProfile)
|
Public Property Proflie As New List(Of TableProfile)
|
||||||
@@ -78,10 +93,14 @@ Public Class TableDoor
|
|||||||
Public Property MachList As New List(Of TableMach)
|
Public Property MachList As New List(Of TableMach)
|
||||||
Public Property AttachmentsList As New List(Of ReportAttachments)
|
Public Property AttachmentsList As New List(Of ReportAttachments)
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class TableOrder
|
Public Class TableOrder
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' immagine porta
|
' immagine porta
|
||||||
Private m_Image As String
|
Private m_Image As String
|
||||||
Public Property Image As String
|
Public Property Image As String
|
||||||
@@ -104,14 +123,22 @@ Public Class TableOrder
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
m_Order_ParametersList = New List(Of ReportParameter)
|
m_Order_ParametersList = New List(Of ReportParameter)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class TableDimension
|
Public Class TableDimension
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' lista dei parametri
|
' lista dei parametri
|
||||||
Private m_Dimension_ParametersList As List(Of ReportParameter)
|
Private m_Dimension_ParametersList As List(Of ReportParameter)
|
||||||
Public Property Dimension_ParametersList As List(Of ReportParameter)
|
Public Property Dimension_ParametersList As List(Of ReportParameter)
|
||||||
@@ -123,14 +150,22 @@ Public Class TableDimension
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
m_Dimension_ParametersList = New List(Of ReportParameter)
|
m_Dimension_ParametersList = New List(Of ReportParameter)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class TableProfile
|
Public Class TableProfile
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' lista dei parametri
|
' lista dei parametri
|
||||||
Private m_Profile_ParametersList As List(Of ReportParameter)
|
Private m_Profile_ParametersList As List(Of ReportParameter)
|
||||||
Public Property Profile_ParametersList As List(Of ReportParameter)
|
Public Property Profile_ParametersList As List(Of ReportParameter)
|
||||||
@@ -142,14 +177,22 @@ Public Class TableProfile
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
m_Profile_ParametersList = New List(Of ReportParameter)
|
m_Profile_ParametersList = New List(Of ReportParameter)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class TableOtherInfo
|
Public Class TableOtherInfo
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' lista dei parametri
|
' lista dei parametri
|
||||||
Private m_OtherInfo_ParametersList As List(Of ReportParameter)
|
Private m_OtherInfo_ParametersList As List(Of ReportParameter)
|
||||||
Public Property OtherInfo_ParametersList As List(Of ReportParameter)
|
Public Property OtherInfo_ParametersList As List(Of ReportParameter)
|
||||||
@@ -161,14 +204,22 @@ Public Class TableOtherInfo
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
m_OtherInfo_ParametersList = New List(Of ReportParameter)
|
m_OtherInfo_ParametersList = New List(Of ReportParameter)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class TableHardaware
|
Public Class TableHardaware
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' disegno quotato Hardware
|
' disegno quotato Hardware
|
||||||
Private m_HardwareImg As String = "Empty"
|
Private m_HardwareImg As String = "Empty"
|
||||||
Public Property HardwareImg As String
|
Public Property HardwareImg As String
|
||||||
@@ -224,6 +275,10 @@ Public Class TableHardaware
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Public Sub New(Name__1 As String, Brand__2 As String, Template__3 As String, Image__4 As String)
|
Public Sub New(Name__1 As String, Brand__2 As String, Template__3 As String, Image__4 As String)
|
||||||
m_Name = Name__1
|
m_Name = Name__1
|
||||||
m_Brand = Brand__2
|
m_Brand = Brand__2
|
||||||
@@ -232,10 +287,14 @@ Public Class TableHardaware
|
|||||||
m_Hardware_ParametersList = New List(Of ReportParameter)
|
m_Hardware_ParametersList = New List(Of ReportParameter)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class TableMach
|
Public Class TableMach
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
' disegno quotato Hardware
|
' disegno quotato Hardware
|
||||||
Private m_HardwareImg As String = "Empty"
|
Private m_HardwareImg As String = "Empty"
|
||||||
Public Property HardwareImg As String
|
Public Property HardwareImg As String
|
||||||
@@ -280,6 +339,10 @@ Public Class TableMach
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Public Sub New(Name__1 As String, Template__2 As String, Image__3 As String)
|
Public Sub New(Name__1 As String, Template__2 As String, Image__3 As String)
|
||||||
m_Name = Name__1
|
m_Name = Name__1
|
||||||
m_Template = Template__2
|
m_Template = Template__2
|
||||||
@@ -287,13 +350,13 @@ Public Class TableMach
|
|||||||
m_Mach_ParametersList = New List(Of ReportParameter)
|
m_Mach_ParametersList = New List(Of ReportParameter)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class ReportParameter
|
Public Class ReportParameter
|
||||||
Public Sub New(Name__1 As String, Value__2 As String)
|
|
||||||
m_Name = Name__1
|
#Region "FIELDS & PROPERTIES"
|
||||||
m_sValue = Value__2
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private m_Name As String
|
Private m_Name As String
|
||||||
Public Property Name As String
|
Public Property Name As String
|
||||||
@@ -315,10 +378,23 @@ Public Class ReportParameter
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Public Sub New(Name__1 As String, Value__2 As String)
|
||||||
|
m_Name = Name__1
|
||||||
|
m_sValue = Value__2
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class ReportAttachments
|
Public Class ReportAttachments
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
Private m_PDFFile As String
|
Private m_PDFFile As String
|
||||||
Public Property PDFFile As String
|
Public Property PDFFile As String
|
||||||
Get
|
Get
|
||||||
@@ -329,8 +405,14 @@ Public Class ReportAttachments
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New(sPDFPath As String)
|
Sub New(sPDFPath As String)
|
||||||
m_PDFFile = sPDFPath
|
m_PDFFile = sPDFPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructor
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 6.2 KiB |