Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 25af98b6e8 |
@@ -1,6 +1,7 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.Windows
|
Imports System.Windows
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Public Class BTLFeatureM
|
Public Class BTLFeatureM
|
||||||
|
|
||||||
@@ -219,6 +220,17 @@ Public Class BTLFeatureM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
' lista dei parametri della feature
|
||||||
|
Protected m_QBTLParamMList As List(Of BTLParamM)
|
||||||
|
Public Property QBTLParamMList As List(Of BTLParamM)
|
||||||
|
Get
|
||||||
|
Return m_QBTLParamMList
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of BTLParamM))
|
||||||
|
m_QBTLParamMList = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
#Region "MESSAGES"
|
#Region "MESSAGES"
|
||||||
|
|
||||||
Public ReadOnly Property Name_Msg As String
|
Public ReadOnly Property Name_Msg As String
|
||||||
@@ -360,10 +372,20 @@ Public Class BTLFeatureM
|
|||||||
RaiseEvent PBTLParamAdded(Me, New BTLParamAddedEventArgs(BTLparamM))
|
RaiseEvent PBTLParamAdded(Me, New BTLParamAddedEventArgs(BTLparamM))
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
Public Sub AddQBTLParam(BTLparamM As BTLParamM)
|
||||||
|
If IsNothing(BTLparamM) Then Return
|
||||||
|
If Not m_QBTLParamMList.Contains(BTLparamM) Then
|
||||||
|
m_QBTLParamMList.Add(BTLparamM)
|
||||||
|
RaiseEvent QBTLParamAdded(Me, New BTLParamAddedEventArgs(BTLparamM))
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
Public Function GetPBTLParams() As List(Of BTLParamM)
|
Public Function GetPBTLParams() As List(Of BTLParamM)
|
||||||
Return New List(Of BTLParamM)(m_PBTLParamMList)
|
Return New List(Of BTLParamM)(m_PBTLParamMList)
|
||||||
End Function
|
End Function
|
||||||
|
Public Function GetQBTLParams() As List(Of BTLParamM)
|
||||||
|
Return New List(Of BTLParamM)(m_QBTLParamMList)
|
||||||
|
End Function
|
||||||
|
|
||||||
' funzione che crea l'elenco dei parametri
|
' funzione che crea l'elenco dei parametri
|
||||||
Public Sub CreateFeatureParams(NewBTLFeature As BTLFeatureM)
|
Public Sub CreateFeatureParams(NewBTLFeature As BTLFeatureM)
|
||||||
@@ -389,11 +411,12 @@ Public Class BTLFeatureM
|
|||||||
TempList.Add(NewBTLParam)
|
TempList.Add(NewBTLParam)
|
||||||
ParamIndex += 1
|
ParamIndex += 1
|
||||||
End While
|
End While
|
||||||
|
NewBTLFeature.QBTLParamMList = TempList
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' funzione che legge il valore corrente del parametro
|
' funzione che legge il valore corrente del parametro
|
||||||
Public Function ReadFeatureParams() As Boolean
|
Public Function ReadFeatureParams() As Boolean
|
||||||
Return ReadFeatureParams(m_PBTLParamMList)
|
Return ReadFeatureParams(m_PBTLParamMList) And ReadFeatureParams(m_QBTLParamMList)
|
||||||
End Function
|
End Function
|
||||||
Private Function ReadFeatureParams(ParamList As List(Of BTLParamM)) As Boolean
|
Private Function ReadFeatureParams(ParamList As List(Of BTLParamM)) As Boolean
|
||||||
Dim bToRecalc As Boolean = False
|
Dim bToRecalc As Boolean = False
|
||||||
@@ -478,9 +501,13 @@ Public Class BTLFeatureM
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
' funzione che rilegge i parametri Q
|
||||||
|
Public Function ReadQValues()
|
||||||
|
Return ReadFeatureParams(m_QBTLParamMList)
|
||||||
|
End Function
|
||||||
' funzione che setta i valori di default a tutti i parametri
|
' funzione che setta i valori di default a tutti i parametri
|
||||||
Public Function SetDefaultValues() As Boolean
|
Public Function SetDefaultValues() As Boolean
|
||||||
Return SetDefaultValues(m_PBTLParamMList)
|
Return SetDefaultValues(m_PBTLParamMList) And SetDefaultValues(m_QBTLParamMList)
|
||||||
End Function
|
End Function
|
||||||
Private Function SetDefaultValues(ParamList As List(Of Core.BTLParamM)) As Boolean
|
Private Function SetDefaultValues(ParamList As List(Of Core.BTLParamM)) As Boolean
|
||||||
' leggo valore parametro da struttura geometrica
|
' leggo valore parametro da struttura geometrica
|
||||||
@@ -517,6 +544,16 @@ Public Class BTLFeatureM
|
|||||||
vPar = vTempPar
|
vPar = vTempPar
|
||||||
sPar = If(String.IsNullOrEmpty(sTempPar), " ", sTempPar)
|
sPar = If(String.IsNullOrEmpty(sTempPar), " ", sTempPar)
|
||||||
End If
|
End If
|
||||||
|
' Determino parametri Q
|
||||||
|
Dim vTempParQ(m_QBTLParamMList.Count) As String
|
||||||
|
For ParQIndex = 0 To m_QBTLParamMList.Count - 1
|
||||||
|
Dim ParQ As BTLParamM = m_QBTLParamMList(ParQIndex)
|
||||||
|
vTempParQ(ParQIndex) = ParQ.sName & ":" & If(ParQ.nType <> BTLParamType.STRING_, DoubleToString(ParQ.dValue, 3), ParQ.sValue)
|
||||||
|
Next
|
||||||
|
Dim sDO As String = ""
|
||||||
|
If Not bDO Then sDO = 0
|
||||||
|
vTempParQ(m_QBTLParamMList.Count) = "DO:" & sDO
|
||||||
|
vParQ = vTempParQ
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -537,6 +574,10 @@ Public Class BTLFeatureM
|
|||||||
frNewRef, vNewParP, sNewPar, vNewParQ, nCrvId, nCrv2Id, bUpdate)
|
frNewRef, vNewParP, sNewPar, vNewParQ, nCrvId, nCrv2Id, bUpdate)
|
||||||
Dim bOk As Boolean = nFeatureId <> GDB_ID.NULL
|
Dim bOk As Boolean = nFeatureId <> GDB_ID.NULL
|
||||||
If bOk Then
|
If bOk Then
|
||||||
|
' riporto parametri Q custom
|
||||||
|
For Each QPar In QBTLParamMList
|
||||||
|
If QPar.bCustom Then EgtSetInfo(nFeatureId, QPar.sName & "A", 1)
|
||||||
|
Next
|
||||||
EgtSetInfo(nFeatureId, BTL_FTR_PRIORITY, nPriority)
|
EgtSetInfo(nFeatureId, BTL_FTR_PRIORITY, nPriority)
|
||||||
SetFeatureId(nFeatureId)
|
SetFeatureId(nFeatureId)
|
||||||
' imposto modificato per copie
|
' imposto modificato per copie
|
||||||
@@ -544,7 +585,7 @@ Public Class BTLFeatureM
|
|||||||
bOk = True
|
bOk = True
|
||||||
Else
|
Else
|
||||||
' Impossibile creare una feature con questi valori - ERRORE
|
' Impossibile creare una feature con questi valori - ERRORE
|
||||||
EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61852), EgtMsg(30007))
|
MessageBox.Show(EgtMsg(61852), EgtMsg(30007))
|
||||||
nFeatureId = EgtBeamModifyProcess(Me.nFeatureId, Me.nSelGRP, Me.nPRC, Me.nSelSIDE, "", Me.nPRID,
|
nFeatureId = EgtBeamModifyProcess(Me.nFeatureId, Me.nSelGRP, Me.nPRC, Me.nSelSIDE, "", Me.nPRID,
|
||||||
Me.frFRAME, vPar, sPar, vParQ, nCrvId, nCrv2Id)
|
Me.frFRAME, vPar, sPar, vParQ, nCrvId, nCrv2Id)
|
||||||
SetFeatureId(nFeatureId)
|
SetFeatureId(nFeatureId)
|
||||||
|
|||||||
@@ -958,9 +958,7 @@ Public Class BTLPartM
|
|||||||
NewBTLPart.nState = CalcStates.OK
|
NewBTLPart.nState = CalcStates.OK
|
||||||
Case 22
|
Case 22
|
||||||
NewBTLPart.nState = CalcStates.COLLISION
|
NewBTLPart.nState = CalcStates.COLLISION
|
||||||
Case 17
|
Case 17, 19
|
||||||
NewBTLPart.nState = CalcStates.SECTION
|
|
||||||
Case 19
|
|
||||||
NewBTLPart.nState = CalcStates.WARNING
|
NewBTLPart.nState = CalcStates.WARNING
|
||||||
Case < 0
|
Case < 0
|
||||||
NewBTLPart.nState = CalcStates.INFO
|
NewBTLPart.nState = CalcStates.INFO
|
||||||
@@ -1061,7 +1059,7 @@ Public Class BTLPartM
|
|||||||
' ripristino inversione
|
' ripristino inversione
|
||||||
Inversion(SelectedMachineType)
|
Inversion(SelectedMachineType)
|
||||||
End If
|
End If
|
||||||
If bRedraw Then EgtRedraw()
|
If bRedraw Then EgtDraw()
|
||||||
Return bOk
|
Return bOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ Public Class BTLFeatureVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Protected m_BTLPartM As BTLPartM
|
Protected m_BTLPartM As BTLPartM
|
||||||
Protected m_PartM As PartM
|
|
||||||
|
|
||||||
Public ReadOnly Property nFeatureId As Integer
|
Public ReadOnly Property nFeatureId As Integer
|
||||||
Get
|
Get
|
||||||
@@ -210,23 +209,6 @@ Public Class BTLFeatureVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_bStrategy_Visibility As Visibility = Visibility.Collapsed
|
|
||||||
Public ReadOnly Property bStrategy_Visibility As Visibility
|
|
||||||
Get
|
|
||||||
Return m_bStrategy_Visibility
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Public Sub SetbStrategy_Visibility(value As Boolean)
|
|
||||||
m_bStrategy_Visibility = If(value, Visibility.Visible, Visibility.Collapsed)
|
|
||||||
NotifyPropertyChanged(NameOf(bStrategy_Visibility))
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public ReadOnly Property IsEnabled As Boolean
|
|
||||||
Get
|
|
||||||
Return m_PartM.nProductionState < ItemState.Assigned
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#Region "CONSTRUCTOR"
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
@@ -247,6 +229,7 @@ Public Class BTLFeatureVM
|
|||||||
|
|
||||||
' funzione che seleziona la feature nella geometria
|
' funzione che seleziona la feature nella geometria
|
||||||
Public Sub SelGeomFeature()
|
Public Sub SelGeomFeature()
|
||||||
|
EgtDeselectAll()
|
||||||
SelGeomFeature(nFeatureId)
|
SelGeomFeature(nFeatureId)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -273,34 +256,6 @@ Public Class BTLFeatureVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
' funzione che seleziona la feature nella geometria
|
|
||||||
Public Sub DeselGeomFeature()
|
|
||||||
DeselGeomFeature(nFeatureId)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub DeselGeomFeature(nMyFeatureId As Integer)
|
|
||||||
EgtDeselectObj(nMyFeatureId)
|
|
||||||
Dim sVal As String = ""
|
|
||||||
If EgtGetInfo(nMyFeatureId, BTL_FTR_ADJID, sVal) Then
|
|
||||||
Dim vAdjId() As String = sVal.Split(","c)
|
|
||||||
For Each sAdjId In vAdjId
|
|
||||||
Dim nAdjId As Integer
|
|
||||||
If Integer.TryParse(sAdjId, nAdjId) Then
|
|
||||||
DeselGeomFeature(nMyFeatureId + nAdjId)
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
End If
|
|
||||||
If EgtGetInfo(nMyFeatureId, BTL_FTR_AUXID, sVal) Then
|
|
||||||
Dim vAuxId() As String = sVal.Split(","c)
|
|
||||||
For Each sAuxId In vAuxId
|
|
||||||
Dim nAuxId As Integer
|
|
||||||
If Integer.TryParse(sAuxId, nAuxId) Then
|
|
||||||
EgtDeselectObj(nMyFeatureId + nAuxId)
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public Overridable Sub RefreshFeature()
|
Public Overridable Sub RefreshFeature()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -1,122 +1,116 @@
|
|||||||
<EgtBEAMWALLCORE:OptimizerWindow x:Class="BeamMachiningsWindowV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="BeamMachiningsWindowV"
|
||||||
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"
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
WindowStyle="None"
|
Title="{Binding Title}"
|
||||||
Width="500" Height="450"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
WindowStartupLocation="CenterOwner"
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False"
|
Width="500" Height="450"
|
||||||
Title="{Binding Title}"
|
IsResizable="False"
|
||||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
||||||
|
CloseCommand="{Binding Close_Command,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
|
||||||
|
|
||||||
<Grid Margin="5,5,5,0">
|
<Grid Margin="5,5,5,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TabControl ItemsSource="{Binding MachiningList}"
|
<TabControl ItemsSource="{Binding MachiningList}"
|
||||||
SelectedItem="{Binding SelMachining}"
|
SelectedItem="{Binding SelMachining}"
|
||||||
IsSynchronizedWithCurrentItem="True"
|
IsSynchronizedWithCurrentItem="True"
|
||||||
Margin="5,0,5,0"
|
Margin="5,0,5,0"
|
||||||
Style="{StaticResource OnlyHeaders_TabControl}"/>
|
Style="{StaticResource TabControl_OnlyHeaders}"/>
|
||||||
|
|
||||||
<Border Grid.Row="1" Margin="0,1,0,2" Style="{StaticResource Optimizer_Border}">
|
<EgtBEAMWALL:EgtDataGrid Grid.Row="1"
|
||||||
|
ItemsSource="{Binding TableRowList}"
|
||||||
|
SelectedIndex="{Binding SelRowIndex}"
|
||||||
|
AutoGenerateColumns="False"
|
||||||
|
CanUserResizeRows="False"
|
||||||
|
SelectionMode="Single"
|
||||||
|
ScrollViewer.CanContentScroll="True"
|
||||||
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
|
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||||
|
Margin="0,0,0,5"
|
||||||
|
BindingColumns="{Binding BeamMachiningsColumns}">
|
||||||
|
|
||||||
|
<DataGrid.RowStyle>
|
||||||
|
<Style TargetType="DataGridRow">
|
||||||
|
<Setter Property="Height" Value="25"/>
|
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowStyle>
|
||||||
|
|
||||||
<EgtBEAMWALLCORE:EgtDataGrid Grid.Row="1"
|
<DataGrid.Resources>
|
||||||
ItemsSource="{Binding TableRowList}"
|
<Style x:Key="DataGridCheckBoxColumn_Style"
|
||||||
SelectedIndex="{Binding SelRowIndex}"
|
TargetType="{x:Type DataGridCell}">
|
||||||
AutoGenerateColumns="False"
|
<Setter Property="Template">
|
||||||
CanUserResizeRows="False"
|
<Setter.Value>
|
||||||
SelectionMode="Single"
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
||||||
ScrollViewer.CanContentScroll="True"
|
<Grid Background="{TemplateBinding Background}">
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
<ContentPresenter VerticalAlignment="Center" />
|
||||||
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
</Grid>
|
||||||
Margin="0.5,0.5,0.5,5"
|
</ControlTemplate>
|
||||||
BindingColumns="{Binding BeamMachiningsColumns}"
|
</Setter.Value>
|
||||||
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
</Setter>
|
||||||
AlternationCount="2"
|
</Style>
|
||||||
ColumnHeaderStyle="{StaticResource Main_DataGridColumnHeader}"
|
|
||||||
CellStyle="{StaticResource CellDataGrid_CustomHighLight}"
|
<!--Colonna On-->
|
||||||
Style="{StaticResource Optimizer_DataGrid}">
|
<DataGridCheckBoxColumn x:Key="colON" Binding="{Binding OnPar, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
CellStyle="{StaticResource DataGridCheckBoxColumn_Style}">
|
||||||
|
<DataGridCheckBoxColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.OnHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
|
</DataGridCheckBoxColumn.Header>
|
||||||
|
</DataGridCheckBoxColumn>
|
||||||
|
|
||||||
<DataGrid.RowStyle>
|
<!--Colonna Name-->
|
||||||
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
<DataGridTemplateColumn x:Key="colNAME">
|
||||||
<Setter Property="Height" Value="25"/>
|
<DataGridTemplateColumn.Header>
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
<TextBlock Text="{Binding Path=DataContext.NameHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
</Style>
|
</DataGridTemplateColumn.Header>
|
||||||
</DataGrid.RowStyle>
|
<DataGridTemplateColumn.CellEditingTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ComboBox IsEditable="False"
|
||||||
|
SelectedItem="{Binding Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
ItemsSource="{Binding Path=NamesList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellEditingTemplate>
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="5,0,0,0"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
|
||||||
<DataGrid.Resources>
|
<!--Colonna Style-->
|
||||||
<Style x:Key="DataGridCheckBoxColumn_Style"
|
<DataGridTemplateColumn x:Key="colTYPE">
|
||||||
TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource CellDataGrid_CustomHighLight}">
|
<DataGridTemplateColumn.Header>
|
||||||
<Setter Property="Template">
|
<TextBlock Text="{Binding Path=DataContext.TypeHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
<Setter.Value>
|
</DataGridTemplateColumn.Header>
|
||||||
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
<DataGridTemplateColumn.CellEditingTemplate>
|
||||||
<Grid Background="{TemplateBinding Background}">
|
<DataTemplate>
|
||||||
<ContentPresenter VerticalAlignment="Center" />
|
<ComboBox IsEditable="False"
|
||||||
</Grid>
|
SelectedItem="{Binding Type,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
</ControlTemplate>
|
ItemsSource="{Binding Path=TypeList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
</Setter.Value>
|
</DataTemplate>
|
||||||
</Setter>
|
</DataGridTemplateColumn.CellEditingTemplate>
|
||||||
</Style>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
<!--Colonna On-->
|
<TextBlock Text="{Binding Path=Type,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
<DataGridCheckBoxColumn x:Key="colON" Binding="{Binding OnPar, UpdateSourceTrigger=PropertyChanged}"
|
VerticalAlignment="Center"
|
||||||
CellStyle="{StaticResource DataGridCheckBoxColumn_Style}">
|
Margin="5,0,0,0"/>
|
||||||
<DataGridCheckBoxColumn.Header>
|
</DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.OnHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}"/>
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
</DataGridCheckBoxColumn.Header>
|
</DataGridTemplateColumn>
|
||||||
</DataGridCheckBoxColumn>
|
|
||||||
|
</DataGrid.Resources>
|
||||||
<!--Colonna Name-->
|
|
||||||
<DataGridTemplateColumn x:Key="colNAME">
|
</EgtBEAMWALL:EgtDataGrid>
|
||||||
<DataGridTemplateColumn.Header>
|
|
||||||
<TextBlock Text="{Binding Path=DataContext.NameHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}"/>
|
|
||||||
</DataGridTemplateColumn.Header>
|
|
||||||
<DataGridTemplateColumn.CellEditingTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ComboBox IsEditable="False"
|
|
||||||
SelectedItem="{Binding Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
ItemsSource="{Binding Path=NamesList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</DataGridTemplateColumn.CellEditingTemplate>
|
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Path=Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Margin="5,0,0,0"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
|
||||||
</DataGridTemplateColumn>
|
|
||||||
|
|
||||||
<!--Colonna Style-->
|
|
||||||
<DataGridTemplateColumn x:Key="colTYPE">
|
|
||||||
<DataGridTemplateColumn.Header>
|
|
||||||
<TextBlock Text="{Binding Path=DataContext.TypeHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}"/>
|
|
||||||
</DataGridTemplateColumn.Header>
|
|
||||||
<DataGridTemplateColumn.CellEditingTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ComboBox IsEditable="False"
|
|
||||||
SelectedItem="{Binding Type,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
ItemsSource="{Binding Path=TypeList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</DataGridTemplateColumn.CellEditingTemplate>
|
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Path=Type,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Margin="5,0,0,0"/>
|
|
||||||
</DataTemplate>
|
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
|
||||||
</DataGridTemplateColumn>
|
|
||||||
|
|
||||||
</DataGrid.Resources>
|
|
||||||
|
|
||||||
</EgtBEAMWALLCORE:EgtDataGrid>
|
|
||||||
</Border>
|
|
||||||
<Grid Grid.Row="2"
|
<Grid Grid.Row="2"
|
||||||
Margin="0,0,0,5"
|
Margin="0,0,0,5"
|
||||||
HorizontalAlignment="Center">
|
HorizontalAlignment="Center">
|
||||||
@@ -132,29 +126,30 @@
|
|||||||
Command="{Binding MoveRowUp_Command}"
|
Command="{Binding MoveRowUp_Command}"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="0,0,2.5,0"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Content="\/"
|
<Button Content="\/"
|
||||||
Command="{Binding MoveRowDown_Command}"
|
Command="{Binding MoveRowDown_Command}"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Content="{Binding AddRowMsg}"
|
<Button Content="{Binding AddRowMsg}"
|
||||||
Command="{Binding AddRow_Command}"
|
Command="{Binding AddRow_Command}"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Content="{Binding DeleteRowMsg}"
|
<Button Content="{Binding DeleteRowMsg}"
|
||||||
Command="{Binding DeleteRow_Command}"
|
Command="{Binding DeleteRow_Command}"
|
||||||
Grid.Column="3"
|
Grid.Column="3"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Content="{Binding SaveMsg}"
|
<Button Content="{Binding SaveMsg}"
|
||||||
Command="{Binding Save_Command}"
|
Command="{Binding Save_Command}"
|
||||||
Grid.Column="4"
|
Grid.Column="4"
|
||||||
Margin="2.5,0,0,0"
|
Margin="2.5,0,0,0"
|
||||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
Public Class BeamMachiningsWindowV
|
Imports System.Windows
|
||||||
|
|
||||||
|
Public Class BeamMachiningsWindowV
|
||||||
|
|
||||||
Private WithEvents m_BeamMachiningsWindowVM As MyBeamMachiningsWindowVM
|
Private WithEvents m_BeamMachiningsWindowVM As MyBeamMachiningsWindowVM
|
||||||
|
|
||||||
Sub New(Owner As System.Windows.Window, BeamMachiningsWindowVM As MyBeamMachiningsWindowVM)
|
Sub New(Owner As Window, BeamMachiningsWindowVM As MyBeamMachiningsWindowVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
' This call is required by the designer.
|
' This call is required by the designer.
|
||||||
InitializeComponent()
|
InitializeComponent()
|
||||||
Me.DataContext = BeamMachiningsWindowVM
|
Me.DataContext = BeamMachiningsWindowVM
|
||||||
|
|||||||
@@ -0,0 +1,166 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdBeamMachiningsWindowV"
|
||||||
|
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:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
|
Title="{Binding Title}"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
|
Width="500" Height="450"
|
||||||
|
IsResizable="False"
|
||||||
|
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
||||||
|
CloseCommand="{Binding Close_Command,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}">
|
||||||
|
|
||||||
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TabControl ItemsSource="{Binding MachiningList}"
|
||||||
|
SelectedItem="{Binding SelMachining}"
|
||||||
|
IsSynchronizedWithCurrentItem="True"
|
||||||
|
Margin="5,0,5,0"
|
||||||
|
Style="{StaticResource OnlyProdTabControl_OnlyHeaders}"/>
|
||||||
|
|
||||||
|
<Border Grid.Row="1" Margin="0,1,0,2" Style="{StaticResource OnlyProdPage_Border}">
|
||||||
|
|
||||||
|
<EgtBEAMWALL:EgtDataGrid Grid.Row="1"
|
||||||
|
ItemsSource="{Binding TableRowList}"
|
||||||
|
SelectedIndex="{Binding SelRowIndex}"
|
||||||
|
AutoGenerateColumns="False"
|
||||||
|
CanUserResizeRows="False"
|
||||||
|
SelectionMode="Single"
|
||||||
|
ScrollViewer.CanContentScroll="True"
|
||||||
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
|
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||||
|
Margin="0.5,0.5,0.5,5"
|
||||||
|
BindingColumns="{Binding BeamMachiningsColumns}"
|
||||||
|
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
||||||
|
AlternationCount="2"
|
||||||
|
ColumnHeaderBackground="{StaticResource BeamWall_Teal}"
|
||||||
|
ColumnHeaderForeground="{StaticResource BeamWall_White}"
|
||||||
|
ColumnHeaderHorizontalContentAlignment="Center"
|
||||||
|
ColumnHeaderFontWeight="Bold"
|
||||||
|
ColumnHeaderFontSize="15"
|
||||||
|
ColumnHeaderPadding="0,2,0,2"
|
||||||
|
CellStyle="{StaticResource CellDataGrid_CustomHighLight}"
|
||||||
|
Style="{StaticResource DataGrid_OnlyProd}">
|
||||||
|
|
||||||
|
<DataGrid.RowStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
||||||
|
<Setter Property="Height" Value="25"/>
|
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowStyle>
|
||||||
|
|
||||||
|
<DataGrid.Resources>
|
||||||
|
<Style x:Key="DataGridCheckBoxColumn_Style"
|
||||||
|
TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource CellDataGrid_CustomHighLight}">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
||||||
|
<Grid Background="{TemplateBinding Background}">
|
||||||
|
<ContentPresenter VerticalAlignment="Center" />
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!--Colonna On-->
|
||||||
|
<DataGridCheckBoxColumn x:Key="colON" Binding="{Binding OnPar, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
CellStyle="{StaticResource DataGridCheckBoxColumn_Style}">
|
||||||
|
<DataGridCheckBoxColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.OnHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
|
</DataGridCheckBoxColumn.Header>
|
||||||
|
</DataGridCheckBoxColumn>
|
||||||
|
|
||||||
|
<!--Colonna Name-->
|
||||||
|
<DataGridTemplateColumn x:Key="colNAME">
|
||||||
|
<DataGridTemplateColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.NameHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
|
</DataGridTemplateColumn.Header>
|
||||||
|
<DataGridTemplateColumn.CellEditingTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ComboBox IsEditable="False"
|
||||||
|
SelectedItem="{Binding Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
ItemsSource="{Binding Path=NamesList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellEditingTemplate>
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="5,0,0,0"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
|
||||||
|
<!--Colonna Style-->
|
||||||
|
<DataGridTemplateColumn x:Key="colTYPE">
|
||||||
|
<DataGridTemplateColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.TypeHdr,RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
|
</DataGridTemplateColumn.Header>
|
||||||
|
<DataGridTemplateColumn.CellEditingTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ComboBox IsEditable="False"
|
||||||
|
SelectedItem="{Binding Type,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
ItemsSource="{Binding Path=TypeList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellEditingTemplate>
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=Type,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="5,0,0,0"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
|
||||||
|
</DataGrid.Resources>
|
||||||
|
|
||||||
|
</EgtBEAMWALL:EgtDataGrid>
|
||||||
|
</Border>
|
||||||
|
<Grid Grid.Row="2"
|
||||||
|
Margin="0,0,0,5"
|
||||||
|
HorizontalAlignment="Center">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Button Content="/\"
|
||||||
|
Command="{Binding MoveRowUp_Command}"
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Content="\/"
|
||||||
|
Command="{Binding MoveRowDown_Command}"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Content="{Binding AddRowMsg}"
|
||||||
|
Command="{Binding AddRow_Command}"
|
||||||
|
Grid.Column="2"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Content="{Binding DeleteRowMsg}"
|
||||||
|
Command="{Binding DeleteRow_Command}"
|
||||||
|
Grid.Column="3"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Content="{Binding SaveMsg}"
|
||||||
|
Command="{Binding Save_Command}"
|
||||||
|
Grid.Column="4"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
Public Class OnlyProdBeamMachiningsWindowV
|
||||||
|
|
||||||
|
Private WithEvents m_BeamMachiningsWindowVM As MyBeamMachiningsWindowVM
|
||||||
|
|
||||||
|
Sub New(Owner As System.Windows.Window, BeamMachiningsWindowVM As MyBeamMachiningsWindowVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
' This call is required by the designer.
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = BeamMachiningsWindowVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_BeamMachiningsWindowVM = BeamMachiningsWindowVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_BeamMachiningsWindowVM.m_CloseWindow
|
||||||
|
Me.DialogResult = bDialogResult
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -23,11 +23,6 @@ Public Module CalcIntegration
|
|||||||
POINT_CLOUD = 5
|
POINT_CLOUD = 5
|
||||||
RAWPART = 6
|
RAWPART = 6
|
||||||
EDIT = 7
|
EDIT = 7
|
||||||
CHECKNOSIM = 8
|
|
||||||
TOPOLOGY = 9
|
|
||||||
FLIP_ROT = 10
|
|
||||||
OPENTOOLDB = 11 ' Non utilizzato
|
|
||||||
OPENMACHINIGDB = 12 ' Non utilizzato
|
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Private Structure MyProc
|
Private Structure MyProc
|
||||||
@@ -165,7 +160,7 @@ Public Module CalcIntegration
|
|||||||
nActProc += 1
|
nActProc += 1
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If vBar(nCurrBar).nCmdType = CmdTypes.CHECK OrElse vBar(nCurrBar).nCmdType = CmdTypes.CHECKGEN OrElse vBar(nCurrBar).nCmdType = CmdTypes.CHECKNOSIM Then
|
If vBar(nCurrBar).nCmdType = CmdTypes.CHECK OrElse vBar(nCurrBar).nCmdType = CmdTypes.CHECKGEN Then
|
||||||
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(nCurrBar))) 'ProcessResults(vBar(nCurrBar))
|
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(nCurrBar))) 'ProcessResults(vBar(nCurrBar))
|
||||||
ElseIf vBar(nCurrBar).nCmdType = CmdTypes.GENERATE Then
|
ElseIf vBar(nCurrBar).nCmdType = CmdTypes.GENERATE Then
|
||||||
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(nCurrBar))) 'ProcessResults(vBar(nCurrBar))
|
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(nCurrBar))) 'ProcessResults(vBar(nCurrBar))
|
||||||
@@ -180,7 +175,7 @@ Public Module CalcIntegration
|
|||||||
' se terminato con successo
|
' se terminato con successo
|
||||||
If vProc(j).Proc.ExitCode = 0 Then
|
If vProc(j).Proc.ExitCode = 0 Then
|
||||||
' salvo il risultato
|
' salvo il risultato
|
||||||
If vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECK OrElse vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECKGEN OrElse vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECKNOSIM Then
|
If vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECK OrElse vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECKGEN Then
|
||||||
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
||||||
ElseIf vBar(vProc(j).nBar).nCmdType = CmdTypes.GENERATE Then
|
ElseIf vBar(vProc(j).nBar).nCmdType = CmdTypes.GENERATE Then
|
||||||
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
||||||
@@ -202,7 +197,7 @@ Public Module CalcIntegration
|
|||||||
' altrimenti (errore generico di esecuzione)
|
' altrimenti (errore generico di esecuzione)
|
||||||
Else
|
Else
|
||||||
' salvo il risultato
|
' salvo il risultato
|
||||||
If vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECK OrElse vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECKGEN OrElse vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECKNOSIM Then
|
If vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECK OrElse vBar(vProc(j).nBar).nCmdType = CmdTypes.CHECKGEN Then
|
||||||
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
||||||
ElseIf vBar(vProc(j).nBar).nCmdType = CmdTypes.GENERATE Then
|
ElseIf vBar(vProc(j).nBar).nCmdType = CmdTypes.GENERATE Then
|
||||||
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
RaiseEvent Calc_ProcessResult(Nothing, New CalcResultEventArgs(vBar(vProc(j).nBar))) ' ProcessResults(vBar(vProc(j).nBar))
|
||||||
@@ -220,7 +215,6 @@ Public Module CalcIntegration
|
|||||||
' se sono in simulazione
|
' se sono in simulazione
|
||||||
If bIsSimulation Then
|
If bIsSimulation Then
|
||||||
Dim sOriPath As String = Path.ChangeExtension(vBar(0).sBarPath, ".ori.bwe")
|
Dim sOriPath As String = Path.ChangeExtension(vBar(0).sBarPath, ".ori.bwe")
|
||||||
If String.IsNullOrWhiteSpace(sOriPath) Then Return
|
|
||||||
' se file modificato a mano
|
' se file modificato a mano
|
||||||
If File.GetLastWriteTime(sOriPath) < File.GetLastWriteTime(vBar(0).sBarPath) Then
|
If File.GetLastWriteTime(sOriPath) < File.GetLastWriteTime(vBar(0).sBarPath) Then
|
||||||
' aggiorno progetto
|
' aggiorno progetto
|
||||||
@@ -327,7 +321,8 @@ Public Module CalcIntegration
|
|||||||
RaiseEvent Calc_Ended(Nothing, New CalcEndEventArgs(If(bIsSimulation And Not bIsSimulationVerifyed, CmdTypes.SIMULATE, CmdTypes.CHECKGEN), If(bAllKO, CalcEndEventArgs.Results.ERROR_, CalcEndEventArgs.Results.OK)))
|
RaiseEvent Calc_Ended(Nothing, New CalcEndEventArgs(If(bIsSimulation And Not bIsSimulationVerifyed, CmdTypes.SIMULATE, CmdTypes.CHECKGEN), If(bAllKO, CalcEndEventArgs.Results.ERROR_, CalcEndEventArgs.Results.OK)))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function CreateNewProjectFromPart(nPartId As Integer, sProjDirPath As String) As String
|
Private Function CreateNewProjectFromPart(nPartId As Integer, sProjDirPath As String) As String
|
||||||
|
|
||||||
' Aggiorno identificativi per segnalazione errori
|
' Aggiorno identificativi per segnalazione errori
|
||||||
UpdateCutIdAndTaskId(nPartId)
|
UpdateCutIdAndTaskId(nPartId)
|
||||||
|
|
||||||
@@ -344,7 +339,7 @@ Public Module CalcIntegration
|
|||||||
Dim nPDN As Integer = 0
|
Dim nPDN As Integer = 0
|
||||||
EgtGetInfo(nPartId, BTL_PRT_PDN, nPDN)
|
EgtGetInfo(nPartId, BTL_PRT_PDN, nPDN)
|
||||||
Dim sPartFilePath As String = sProjDirPath & "\" & nPDN.ToString() & ".bwe"
|
Dim sPartFilePath As String = sProjDirPath & "\" & nPDN.ToString() & ".bwe"
|
||||||
bOk = EgtSaveObjToFile({nPartId, EgtGetFirstNameInGroup(GDB_ID.ROOT, BTLINFO), EgtGetFirstNameInGroup(GDB_ID.ROOT, PROJECTINFO)}, sPartFilePath, NGE.CMPTEXT)
|
bOk = EgtSaveObjToFile(nPartId, sPartFilePath, NGE.CMPTEXT)
|
||||||
|
|
||||||
' Ripristino visibilita' pezzo
|
' Ripristino visibilita' pezzo
|
||||||
EgtSetMode(nPartId, nOldPartMode)
|
EgtSetMode(nPartId, nOldPartMode)
|
||||||
@@ -355,7 +350,7 @@ Public Module CalcIntegration
|
|||||||
Return If(bOk, sPartFilePath, String.Empty)
|
Return If(bOk, sPartFilePath, String.Empty)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function CreateNewProjectFromMachGroup(nMachGroupId As Integer, sProjDirPath As String, nGlobState As Integer) As String
|
Private Function CreateNewProjectFromMachGroup(nMachGroupId As Integer, sProjDirPath As String, nGlobState As Integer) As String
|
||||||
' aggiorno cutid e taskid solo fuori dal supervisore o se pezzo ricalcolato
|
' aggiorno cutid e taskid solo fuori dal supervisore o se pezzo ricalcolato
|
||||||
If Not m_bIsSupervisor OrElse nGlobState = CalcStates.NOTCALCULATED Then
|
If Not m_bIsSupervisor OrElse nGlobState = CalcStates.NOTCALCULATED Then
|
||||||
Dim DisableMgr As DisableModifiedMgr = Nothing
|
Dim DisableMgr As DisableModifiedMgr = Nothing
|
||||||
@@ -394,7 +389,7 @@ Public Module CalcIntegration
|
|||||||
Dim sMachGroupName As String = ""
|
Dim sMachGroupName As String = ""
|
||||||
EgtGetMachGroupName(nMachGroupId, sMachGroupName)
|
EgtGetMachGroupName(nMachGroupId, sMachGroupName)
|
||||||
Dim sMachGroupFilePath As String = sProjDirPath & "\" & sMachGroupName & ".bwe"
|
Dim sMachGroupFilePath As String = sProjDirPath & "\" & sMachGroupName & ".bwe"
|
||||||
If EgtSaveMachGroupToFile(nMachGroupId, {EgtGetFirstNameInGroup(GDB_ID.ROOT, BTLINFO), EgtGetFirstNameInGroup(GDB_ID.ROOT, PROJECTINFO)}, sMachGroupFilePath, NGE.CMPTEXT) Then
|
If EgtSaveObjToFile(nMachGroupId, sMachGroupFilePath, NGE.CMPTEXT) Then
|
||||||
Return sMachGroupFilePath
|
Return sMachGroupFilePath
|
||||||
End If
|
End If
|
||||||
Return String.Empty
|
Return String.Empty
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
<DockPanel x:Class="ConfigurationPageV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="10*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="6*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TabControl Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2"
|
||||||
|
SelectedIndex="{Binding SelConfigSubPage}">
|
||||||
|
<TabItem>
|
||||||
|
<TabItem.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding General_Msg}"
|
||||||
|
Style="{StaticResource OptionTextBlock}"/>
|
||||||
|
<Button Command="{Binding SaveCommand}"
|
||||||
|
ToolTip="{Binding SaveToolTip}"
|
||||||
|
Visibility="{Binding General_Visibility}"
|
||||||
|
Style="{StaticResource OptionPanel_Button}">
|
||||||
|
<Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem.Header>
|
||||||
|
<TabItem.Content>
|
||||||
|
<EgtBEAMWALL:General_ConfigurationPageV/>
|
||||||
|
</TabItem.Content>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem>
|
||||||
|
<TabItem.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding ParameterQ_Msg}"
|
||||||
|
Style="{StaticResource OptionTextBlock}"/>
|
||||||
|
<Button Command="{Binding SaveCommand}"
|
||||||
|
ToolTip="{Binding SaveToolTip}"
|
||||||
|
Visibility="{Binding ParameterQ_Visibility}"
|
||||||
|
Style="{StaticResource OptionPanel_Button}">
|
||||||
|
<Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem.Header>
|
||||||
|
<TabItem.Content>
|
||||||
|
<EgtBEAMWALL:QParameter_ConfigurationPageV/>
|
||||||
|
</TabItem.Content>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem >
|
||||||
|
<TabItem.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding Machine_Msg}"
|
||||||
|
Style="{StaticResource OptionTextBlock}"/>
|
||||||
|
<Button Command="{Binding SaveCommand}"
|
||||||
|
ToolTip="{Binding SaveToolTip}"
|
||||||
|
Visibility="{Binding Machine_Visibility}"
|
||||||
|
Style="{StaticResource OptionPanel_Button}">
|
||||||
|
<Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem.Header>
|
||||||
|
|
||||||
|
<TabItem.Content>
|
||||||
|
<EgtBEAMWALL:Machine_ConfigurationPageV/>
|
||||||
|
</TabItem.Content>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
|
|
||||||
|
<!--<Button Command="{Binding SaveCommand}"
|
||||||
|
ToolTip="{Binding SaveToolTip}"
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
Style="{StaticResource OptionPanel_Button}">
|
||||||
|
<Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
|
||||||
|
</Button>-->
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DockPanel>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class ConfigurationPageV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -8,54 +8,56 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<StackPanel Style="{StaticResource List_StackPanel}">
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<StackPanel Grid.Row="0" Grid.Column="0" Margin="5,5,5,0">
|
||||||
<GroupBox Header="{Binding CurrentLanguage_Msg}"
|
<GroupBox Header="{Binding CurrentLanguage_Msg}"
|
||||||
Style="{StaticResource Warehouse_GroupBox}">
|
Margin="0,0,0,5">
|
||||||
<UniformGrid Rows="2"
|
<UniformGrid Rows="2" Margin="3,3,3,3">
|
||||||
Style="{StaticResource General_UniformGrid}">
|
<ComboBox ItemsSource="{Binding LanguageList, Mode=OneWay}" Height="25"
|
||||||
<ComboBox ItemsSource="{Binding LanguageList, Mode=OneWay}"
|
DisplayMemberPath="Name" SelectedItem="{Binding SelectedLanguage}"
|
||||||
SelectedItem="{Binding SelectedLanguage}"
|
Margin="0,0,0,5"
|
||||||
DisplayMemberPath="Name"
|
Style="{x:Null}"/>
|
||||||
Style="{StaticResource General_ComboBox}"/>
|
<TextBlock Text="{Binding LanguageAdvert_Msg}" TextWrapping="Wrap"
|
||||||
<TextBlock Text="{Binding LanguageAdvert_Msg}"
|
TextAlignment="Center"/>
|
||||||
Style="{StaticResource General_TextBlock}"/>
|
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
<UniformGrid Columns="2"
|
<UniformGrid Columns="2"
|
||||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
Margin="0,0,0,5">
|
||||||
<TextBlock Text="{Binding MMUnits_Msg}"
|
<TextBlock Text="{Binding MMUnits_Msg}" VerticalAlignment="Center"/>
|
||||||
Style="{StaticResource MMUnits_TextBlock}"/>
|
|
||||||
<ComboBox ItemsSource="{Binding UnitMeasureList, Mode=OneWay}"
|
<ComboBox ItemsSource="{Binding UnitMeasureList, Mode=OneWay}"
|
||||||
SelectedIndex="{Binding SelMeasureUnit}"
|
SelectedIndex="{Binding SelMeasureUnit}" Height="25"
|
||||||
Style="{StaticResource UnitMeasureList_ComboBox}"/>
|
Margin="0,5,0,0"
|
||||||
|
Style="{x:Null}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
<GroupBox Header="{Binding Nesting_Msg}"
|
<GroupBox Header="{Binding Nesting_Msg}"
|
||||||
Style="{StaticResource Warehouse_GroupBox}">
|
Margin="0,0,0,5">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<UniformGrid Columns="2"
|
<UniformGrid Columns="2"
|
||||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
Margin="0,0,0,5">
|
||||||
<TextBlock Text="{Binding SectionTime_Msg}"/>
|
<TextBlock Text="{Binding SectionTime_Msg}"
|
||||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
Grid.Row="0" Grid.Column="0"/>
|
||||||
Text="{Binding SectionTime, UpdateSourceTrigger=Explicit}"/>
|
<EgtWPFLib5:EgtTextBox Text="{Binding SectionTime, UpdateSourceTrigger=Explicit}"
|
||||||
|
Grid.Row="0" Grid.Column="1"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
<UniformGrid Columns="2"
|
<UniformGrid Columns="2"
|
||||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
Margin="0,0,0,5">
|
||||||
<TextBlock Grid.Row="1" Text="{Binding PartTime_Msg}"/>
|
<TextBlock Text="{Binding PartTime_Msg}"
|
||||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
Grid.Row="1" Grid.Column="0"/>
|
||||||
Grid.Column="1"
|
<EgtWPFLib5:EgtTextBox Text="{Binding PartTime, UpdateSourceTrigger=Explicit}"
|
||||||
Text="{Binding PartTime, UpdateSourceTrigger=Explicit}"/>
|
Grid.Row="1" Grid.Column="1"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
<UniformGrid Columns="2"
|
<UniformGrid Columns="2"
|
||||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
Margin="0,0,0,5">
|
||||||
<TextBlock Text="{Binding PrintLabel_Msg}"
|
<TextBlock Text="{Binding PrintLabel_Msg}" VerticalAlignment="Center"/>
|
||||||
Style="{StaticResource MMUnits_TextBlock}"/>
|
|
||||||
<CheckBox IsChecked="{Binding bPrintLabel_IsChecked}"
|
<CheckBox IsChecked="{Binding bPrintLabel_IsChecked}"
|
||||||
Style="{StaticResource General_CheckBox}"/>
|
Margin="0,5,0,0"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
<GroupBox Header="{Binding BackupRestore_Msg}"
|
<GroupBox Header="Backup And Restore">
|
||||||
Style="{StaticResource Optimizer_GroupBox}">
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
@@ -63,76 +65,57 @@
|
|||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid Style="{StaticResource General_Grid}">
|
<Grid Grid.Row="0"
|
||||||
|
Margin="0,2,0,5">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<CheckBox x:Name="ExternalBackup_CheckBox"
|
<CheckBox x:Name="ExternalBackup_CheckBox"
|
||||||
IsChecked="{Binding bExternalBackupActive}"
|
IsChecked="{Binding bExternalBackupActive}"
|
||||||
Style="{StaticResource PParameters_CheckBox}"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
Text="{Binding External_Msg}"
|
Text="External file path:"
|
||||||
Style="{StaticResource Ext_TextBlock}"/>
|
VerticalAlignment="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Row="1"
|
<Grid Grid.Row="1"
|
||||||
Style="{StaticResource General_Grid}">
|
Margin="0,2,0,5">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBox Text="{Binding ExternalBackupFolderPath}"
|
<TextBox Text="{Binding ExternalBackupFolderPath}"
|
||||||
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
||||||
Style="{StaticResource General_TextBox}"/>
|
Margin="0,0,2.5,0"/>
|
||||||
<Button Grid.Column="1"
|
<Button Grid.Column="1"
|
||||||
Content="..."
|
Content="..."
|
||||||
Foreground="{StaticResource BeamWall_White}"
|
Width="18"
|
||||||
Command="{Binding ChooseExternalBackupFolderPath_Command}"
|
Command="{Binding ChooseExternalBackupFolderPath_Command}"
|
||||||
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
||||||
Style="{StaticResource General_Button}"/>
|
Margin="2.5,0,0,0"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Row="2">
|
<Grid Grid.Row="2">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding Remainder_Msg}"/>
|
<TextBlock Text="Reminder Frequency"/>
|
||||||
<ComboBox Grid.Column="1"
|
<ComboBox Grid.Column="1"
|
||||||
ItemsSource="{Binding ReminderList}"
|
ItemsSource="{Binding ReminderList}"
|
||||||
SelectedItem="{Binding SelReminder}"
|
SelectedItem="{Binding SelReminder}"
|
||||||
Style="{StaticResource GeneralConfiguration_ComboBox}" />
|
Style="{x:Null}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<StackPanel Grid.Row="3"
|
<StackPanel Grid.Row="3"
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
Orientation="Horizontal">
|
||||||
<Button Content="{Binding Backup_Msg}"
|
<Button Content="Backup"
|
||||||
Command="{Binding Backup_Command}"
|
Command="{Binding Backup_Command}"
|
||||||
Style="{StaticResource MovePartInRawPartWnd_Button}"/>
|
Style="{StaticResource ToolBar_TextButton}"/>
|
||||||
<Button Content="{Binding Restore_Msg}"
|
<Button Content="Restore"
|
||||||
Command="{Binding Restore_Command}"
|
Command="{Binding Restore_Command}"
|
||||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
Style="{StaticResource ToolBar_TextButton}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
<!--<UniformGrid Columns="2"
|
|
||||||
Style="{StaticResource GeneralConfiguration_UniformGrid}">
|
|
||||||
<TextBlock Text="{Binding Import_Msg}"
|
|
||||||
Style="{StaticResource MMUnits_TextBlock}"/>
|
|
||||||
<CheckBox IsChecked="{Binding bVerifyImportBTL_IsChecked}"
|
|
||||||
Style="{StaticResource General_CheckBox}"/>
|
|
||||||
</UniformGrid>
|
|
||||||
<GroupBox Header="{Binding Tema_Msg}"
|
|
||||||
Style="{StaticResource Warehouse_GroupBox}">
|
|
||||||
<UniformGrid Rows="2"
|
|
||||||
Style="{StaticResource General_UniformGrid}">
|
|
||||||
<ComboBox ItemsSource="{Binding Themes, Mode=OneWay}"
|
|
||||||
SelectedItem="{Binding SelectedTheme}"
|
|
||||||
DisplayMemberPath="Name"
|
|
||||||
Style="{StaticResource General_ComboBox}"/>
|
|
||||||
<TextBlock Text="{Binding TemaAdvert_Msg}"
|
|
||||||
Style="{StaticResource General_TextBlock}"/>
|
|
||||||
</UniformGrid>
|
|
||||||
</GroupBox>-->
|
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Grid x:Class="Machine_ConfigurationPageV"
|
<Grid x:Class="Machine_ConfigurationPageV"
|
||||||
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:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
|
||||||
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
@@ -13,37 +13,31 @@
|
|||||||
<RowDefinition Height="10*"/>
|
<RowDefinition Height="10*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
|
||||||
<GroupBox Style="{StaticResource MachineConfiguration_GroupBox}">
|
<GroupBox Style="{StaticResource GroupBoxStyle_NoHeader}" Padding="5,10,5,5">
|
||||||
<EgtBEAMWALLCORE:MachinePanelV DataContext="{Binding MachinePanelVM}" VerticalAlignment="Center"/>
|
<EgtBEAMWALL:MachinePanelV DataContext="{Binding MachinePanelVM}" VerticalAlignment="Center"/>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Grid.Row="1"
|
<StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Visibility="{Binding MachineParameter_Visibility}">
|
||||||
Visibility="{Binding MachineParameter_Visibility}"
|
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
|
||||||
<ItemsControl ItemsSource="{Binding ConfigMachTableList}">
|
<ItemsControl ItemsSource="{Binding ConfigMachTableList}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<StackPanel x:Name="GroupStackPanel"
|
<StackPanel x:Name="GroupStackPanel" Orientation="Horizontal"/>
|
||||||
Style="{StaticResource PartManager_StackPanel}"/>
|
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<GroupBox Header="{Binding sName}"
|
<GroupBox Header="{Binding sName}" Width="Auto" VerticalAlignment="Top" Height="Auto">
|
||||||
Style="{StaticResource MachineParam_GroupBox}">
|
<ItemsControl Name="MachParamsItemsControl" ItemsSource="{Binding MachParamList}" Margin="0,5,0,0">
|
||||||
<ItemsControl Name="MachParamsItemsControl"
|
|
||||||
ItemsSource="{Binding MachParamList}"
|
|
||||||
Style="{StaticResource MachinePanel_ItemsControl}">
|
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<WrapPanel Style="{StaticResource Project_WrapPanel}"/>
|
<WrapPanel Orientation="Vertical"/>
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Grid Style="{StaticResource MachParam_Grid}">
|
<Grid Margin="0,0,5,5">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
@@ -51,14 +45,18 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<TextBlock Text="{Binding sName}"
|
||||||
ToolTip="{Binding sName}"
|
ToolTip="{Binding sName}"
|
||||||
Style="{StaticResource MachinePanel_TextBlock}"/>
|
TextWrapping="WrapWithOverflow"
|
||||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
Width="190"
|
||||||
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
Style="{StaticResource MachParamTextBlock}"/>
|
||||||
Style="{StaticResource MachineConfiguration_TextBox}"/>
|
<EgtWPFLib5:EgtTextBox Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||||
<TextBlock Grid.Column="2"
|
Grid.Column="1"
|
||||||
Text="{Binding sDescription}"
|
Width="60"/>
|
||||||
|
<TextBlock Text="{Binding sDescription}"
|
||||||
ToolTip="{Binding sDescription}"
|
ToolTip="{Binding sDescription}"
|
||||||
Style="{StaticResource Description_TextBlock}"/>
|
TextWrapping="WrapWithOverflow"
|
||||||
|
Width="185"
|
||||||
|
Style="{StaticResource MachParamTextBlock}"
|
||||||
|
Grid.Column="2"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
@@ -69,13 +67,13 @@
|
|||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Button Grid.Row="1"
|
<Button Command="{Binding SaveCommand}"
|
||||||
Command="{Binding SaveCommand}"
|
Grid.Column="0"
|
||||||
|
Grid.Row="1"
|
||||||
ToolTip="{Binding SaveToolTip}"
|
ToolTip="{Binding SaveToolTip}"
|
||||||
Visibility="{Binding Machine_Visibility}"
|
Visibility="{Binding Machine_Visibility}"
|
||||||
Style="{StaticResource SaveMachinePanel_Button}">
|
Style="{StaticResource MachinePanel_Button}">
|
||||||
<Image Source="{StaticResource Save_Image}"
|
<Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
|
||||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -0,0 +1,124 @@
|
|||||||
|
<Grid x:Class="OnlyProdGeneral_ConfigurationPageV"
|
||||||
|
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">
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<StackPanel Margin="5,5,5,0">
|
||||||
|
<GroupBox Header="{Binding CurrentLanguage_Msg}"
|
||||||
|
Margin="0,0,0,5"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<UniformGrid Rows="2" Margin="3,3,3,3">
|
||||||
|
<ComboBox ItemsSource="{Binding LanguageList, Mode=OneWay}" Height="25"
|
||||||
|
DisplayMemberPath="Name" SelectedItem="{Binding SelectedLanguage}"
|
||||||
|
Margin="0,0,0,5" Style="{StaticResource OnlyProd_ComboBox}" />
|
||||||
|
<TextBlock Text="{Binding LanguageAdvert_Msg}" TextWrapping="Wrap"
|
||||||
|
TextAlignment="Center"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</GroupBox>
|
||||||
|
<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding MMUnits_Msg}" VerticalAlignment="Center" Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<ComboBox ItemsSource="{Binding UnitMeasureList, Mode=OneWay}"
|
||||||
|
SelectedIndex="{Binding SelMeasureUnit}" Height="25"
|
||||||
|
Margin="0,5,0,0" Style="{StaticResource OnlyProd_ComboBox}" />
|
||||||
|
</UniformGrid>
|
||||||
|
<GroupBox Header="{Binding Nesting_Msg}"
|
||||||
|
Margin="0,0,0,5"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<StackPanel>
|
||||||
|
<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding SectionTime_Msg}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||||
|
Text="{Binding SectionTime, UpdateSourceTrigger=Explicit}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Grid.Row="1" Text="{Binding PartTime_Msg}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding PartTime, UpdateSourceTrigger=Explicit}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</StackPanel>
|
||||||
|
</GroupBox>
|
||||||
|
<UniformGrid Columns="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<TextBlock Text="{Binding PrintLabel_Msg}" VerticalAlignment="Center" Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<CheckBox IsChecked="{Binding bPrintLabel_IsChecked}"
|
||||||
|
Margin="0,5,0,0"/>
|
||||||
|
</UniformGrid>
|
||||||
|
<GroupBox Header="Backup And Restore"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Margin="0,2,0,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<CheckBox x:Name="ExternalBackup_CheckBox"
|
||||||
|
IsChecked="{Binding bExternalBackupActive}"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="External file path:"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="1"
|
||||||
|
Margin="0,2,0,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBox Text="{Binding ExternalBackupFolderPath}"
|
||||||
|
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
||||||
|
Margin="0,0,2.5,0"/>
|
||||||
|
<Button Grid.Column="1"
|
||||||
|
Content="..."
|
||||||
|
Foreground="{StaticResource BeamWall_White}"
|
||||||
|
Width="20"
|
||||||
|
Height="20"
|
||||||
|
Command="{Binding ChooseExternalBackupFolderPath_Command}"
|
||||||
|
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="2">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Text="Reminder Frequency"/>
|
||||||
|
<ComboBox Grid.Column="1"
|
||||||
|
ItemsSource="{Binding ReminderList}"
|
||||||
|
SelectedItem="{Binding SelReminder}"
|
||||||
|
Margin="0,0,0,5" Style="{StaticResource OnlyProd_ComboBox}" />
|
||||||
|
</Grid>
|
||||||
|
<StackPanel Grid.Row="3"
|
||||||
|
Orientation="Horizontal">
|
||||||
|
<Button Content="Backup"
|
||||||
|
Command="{Binding Backup_Command}"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"
|
||||||
|
Margin="0,0,5,0"/>
|
||||||
|
<Button Content="Restore"
|
||||||
|
Command="{Binding Restore_Command}"
|
||||||
|
Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class OnlyProdGeneral_ConfigurationPageV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
<Grid x:Class="OnlyProdMachine_ConfigurationPageV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="10*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<GroupBox Style="{StaticResource GroupBoxStyle_NoHeader}" Padding="5,10,5,5">
|
||||||
|
<EgtBEAMWALL:OnlyProdMachinePanelV DataContext="{Binding MachinePanelVM}" VerticalAlignment="Center"/>
|
||||||
|
</GroupBox>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Grid.Row="1" Orientation="Horizontal" Visibility="{Binding MachineParameter_Visibility}">
|
||||||
|
<ItemsControl ItemsSource="{Binding ConfigMachTableList}">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<StackPanel x:Name="GroupStackPanel" Orientation="Horizontal"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<GroupBox Header="{Binding sName}" Width="Auto" VerticalAlignment="Top" Height="Auto" Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<ItemsControl Name="MachParamsItemsControl" ItemsSource="{Binding MachParamList}" Margin="0,5,0,0">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<WrapPanel Orientation="Vertical"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid Margin="0,0,5,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Text="{Binding sName}"
|
||||||
|
ToolTip="{Binding sName}"
|
||||||
|
TextWrapping="WrapWithOverflow"
|
||||||
|
Width="150"
|
||||||
|
Style="{StaticResource MachParamTextBlock}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||||
|
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||||
|
Width="60"/>
|
||||||
|
<TextBlock Grid.Column="2"
|
||||||
|
Text="{Binding sDescription}"
|
||||||
|
ToolTip="{Binding sDescription}"
|
||||||
|
TextWrapping="WrapWithOverflow"
|
||||||
|
Width="148"
|
||||||
|
Style="{StaticResource MachParamTextBlock}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
</GroupBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Button Grid.Row="1"
|
||||||
|
Command="{Binding SaveCommand}"
|
||||||
|
ToolTip="{Binding SaveToolTip}"
|
||||||
|
Visibility="{Binding Machine_Visibility}"
|
||||||
|
Style="{StaticResource SaveMachinePanel_Button}">
|
||||||
|
<Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class OnlyProdMachine_ConfigurationPageV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
<Grid x:Class="OnlyProdQParameter_ConfigurationPageV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core">
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Border Style="{StaticResource OnlyProdPage_Border}"/>
|
||||||
|
|
||||||
|
<EgtBEAMWALL:OnlyProd_QParamListV DataContext="{Binding}"
|
||||||
|
ItemsSource="{Binding QBTLParamVMList}"
|
||||||
|
SelectedItem="{Binding SelQParam}"
|
||||||
|
Margin="5">
|
||||||
|
<DataGrid.GroupStyle>
|
||||||
|
<GroupStyle>
|
||||||
|
<GroupStyle.Panel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<DataGridRowsPresenter/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</GroupStyle.Panel>
|
||||||
|
<GroupStyle.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Path=Name}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</GroupStyle.HeaderTemplate>
|
||||||
|
<GroupStyle.ContainerStyle>
|
||||||
|
<Style TargetType="{x:Type GroupItem}">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type GroupItem}">
|
||||||
|
<Expander IsExpanded="True">
|
||||||
|
<Expander.Background>
|
||||||
|
<SolidColorBrush Color="#FFBABABA"/>
|
||||||
|
</Expander.Background>
|
||||||
|
<Expander.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding Path=Name}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Expander.Header>
|
||||||
|
<ItemsPresenter />
|
||||||
|
</Expander>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</GroupStyle.ContainerStyle>
|
||||||
|
</GroupStyle>
|
||||||
|
<GroupStyle>
|
||||||
|
<GroupStyle.ContainerStyle>
|
||||||
|
<Style TargetType="{x:Type GroupItem}">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type GroupItem}">
|
||||||
|
<Expander IsExpanded="True">
|
||||||
|
<Expander.Background>
|
||||||
|
<SolidColorBrush Color="LightGray"/>
|
||||||
|
</Expander.Background>
|
||||||
|
<Expander.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding Path=Name}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Expander.Header>
|
||||||
|
<ItemsPresenter />
|
||||||
|
</Expander>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</GroupStyle.ContainerStyle>
|
||||||
|
</GroupStyle>
|
||||||
|
</DataGrid.GroupStyle>
|
||||||
|
</EgtBEAMWALL:OnlyProd_QParamListV>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class OnlyProdQParameter_ConfigurationPageV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
<Grid x:Class="QParameter_ConfigurationPageV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core">
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<EgtBEAMWALL:QParamListV DataContext="{Binding}"
|
||||||
|
ItemsSource="{Binding QBTLParamVMList}"
|
||||||
|
SelectedItem="{Binding SelQParam}"
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="5">
|
||||||
|
<DataGrid.GroupStyle>
|
||||||
|
<GroupStyle>
|
||||||
|
<GroupStyle.Panel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<DataGridRowsPresenter/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</GroupStyle.Panel>
|
||||||
|
<GroupStyle.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Path=Name}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</GroupStyle.HeaderTemplate>
|
||||||
|
<GroupStyle.ContainerStyle>
|
||||||
|
<Style TargetType="{x:Type GroupItem}">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type GroupItem}">
|
||||||
|
<Expander IsExpanded="True" Style="{x:Null}">
|
||||||
|
<Expander.Background>
|
||||||
|
<SolidColorBrush Color="#FFBABABA"></SolidColorBrush>
|
||||||
|
</Expander.Background>
|
||||||
|
<Expander.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding Path=Name}" />
|
||||||
|
</StackPanel>
|
||||||
|
</Expander.Header>
|
||||||
|
<ItemsPresenter />
|
||||||
|
</Expander>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</GroupStyle.ContainerStyle>
|
||||||
|
</GroupStyle>
|
||||||
|
<GroupStyle>
|
||||||
|
<GroupStyle.ContainerStyle>
|
||||||
|
<Style TargetType="{x:Type GroupItem}">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type GroupItem}">
|
||||||
|
<Expander IsExpanded="True" Style="{x:Null}">
|
||||||
|
<Expander.Background>
|
||||||
|
<SolidColorBrush Color="LightGray"></SolidColorBrush>
|
||||||
|
</Expander.Background>
|
||||||
|
<Expander.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding Path=Name}" />
|
||||||
|
</StackPanel>
|
||||||
|
</Expander.Header>
|
||||||
|
<ItemsPresenter />
|
||||||
|
</Expander>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</GroupStyle.ContainerStyle>
|
||||||
|
</GroupStyle>
|
||||||
|
</DataGrid.GroupStyle>
|
||||||
|
</EgtBEAMWALL:QParamListV>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class QParameter_ConfigurationPageV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -120,7 +120,6 @@
|
|||||||
Public Const PROJ As String = "PROJ"
|
Public Const PROJ As String = "PROJ"
|
||||||
Public Const FILENAMESEPARATOR As Char = "^"c
|
Public Const FILENAMESEPARATOR As Char = "^"c
|
||||||
Public Const BTLINFO As String = "BtlInfo"
|
Public Const BTLINFO As String = "BtlInfo"
|
||||||
Public Const PROJECTINFO As String = "ProjectInfo"
|
|
||||||
|
|
||||||
' layer per assemblato
|
' layer per assemblato
|
||||||
Public Const ASSEBASE As String = "AsseBase"
|
Public Const ASSEBASE As String = "AsseBase"
|
||||||
@@ -309,7 +308,4 @@
|
|||||||
' parametri modifica percorsi free contour
|
' parametri modifica percorsi free contour
|
||||||
Public Const PATH_SIDEANGLAYER As String = "SideAngLayer"
|
Public Const PATH_SIDEANGLAYER As String = "SideAngLayer"
|
||||||
|
|
||||||
' Strategia
|
|
||||||
Public Const AI_SETUP As String = "AISETUP"
|
|
||||||
Public Const STRATEGY As String = "STRATEGY"
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
Public Module ConstDataGridColumnsIni
|
Public Module ConstDataGridColumnsIni
|
||||||
|
|
||||||
Public Const DATAGRIDCOLUMNS_FILE_NAME As String = "DataGridColumns.json"
|
Public Const DATAGRIDCOLUMNS_FILE_NAME As String = "DataGridColumns.ini"
|
||||||
|
Public Const OPTIMIZERDATAGRIDCOLUMNS_FILE_NAME As String = "OPTIMIZERDataGridColumns.ini"
|
||||||
|
|
||||||
|
Public Const S_FEATURELIST As String = "DG_FeatureList"
|
||||||
|
Public Const S_OPENPROJFILEDLG_PROJ As String = "DG_OpenProjectFileDialog_PROJ"
|
||||||
Public Const S_OPENPROJFILEDLG_PROD As String = "DG_OpenProjectFileDialog_PROD"
|
Public Const S_OPENPROJFILEDLG_PROD As String = "DG_OpenProjectFileDialog_PROD"
|
||||||
Public Const S_NEWOPENPROJFILEDLG_PROD As String = "DG_NewOpenProjectFileDialog_PROD"
|
Public Const S_NEWOPENPROJFILEDLG_PROD As String = "DG_NewOpenProjectFileDialog_PROD"
|
||||||
Public Const S_RAWPARTLIST_BEAM As String = "DG_RawPartList_BEAM"
|
Public Const S_RAWPARTLIST_BEAM As String = "DG_RawPartList_BEAM"
|
||||||
@@ -9,6 +12,8 @@
|
|||||||
Public Const S_PARTINRAWPARTLIST_BEAM As String = "DG_PartInRawPartList_BEAM"
|
Public Const S_PARTINRAWPARTLIST_BEAM As String = "DG_PartInRawPartList_BEAM"
|
||||||
Public Const S_PARTINRAWPARTLIST_WALL As String = "DG_PartInRawPartList_WALL"
|
Public Const S_PARTINRAWPARTLIST_WALL As String = "DG_PartInRawPartList_WALL"
|
||||||
Public Const S_PARAMETERLIST_P As String = "DG_ParameterList_P"
|
Public Const S_PARAMETERLIST_P As String = "DG_ParameterList_P"
|
||||||
|
Public Const S_PARAMETERLIST_Q As String = "DG_ParameterList_Q"
|
||||||
|
Public Const S_DUPLOPARAMETERLIST_Q As String = "DG_DuploParameterList_Q"
|
||||||
Public Const S_RAWPARTLIST_SUPERVISOR As String = "DG_RawPartList_SUPERVISOR"
|
Public Const S_RAWPARTLIST_SUPERVISOR As String = "DG_RawPartList_SUPERVISOR"
|
||||||
Public Const S_PARTINRAWPARTLIST_SUPERVISOR As String = "DG_PartInRawPartList_SUPERVISOR"
|
Public Const S_PARTINRAWPARTLIST_SUPERVISOR As String = "DG_PartInRawPartList_SUPERVISOR"
|
||||||
Public Const S_FEATUREINPARTINRAWPARTLIST_SUPERVISOR As String = "DG_FeatureInPartInRawPartList_SUPERVISOR"
|
Public Const S_FEATUREINPARTINRAWPARTLIST_SUPERVISOR As String = "DG_FeatureInPartInRawPartList_SUPERVISOR"
|
||||||
@@ -18,8 +23,11 @@
|
|||||||
Public Const S_STATISTICS_PART As String = "DG_Statistics_PART"
|
Public Const S_STATISTICS_PART As String = "DG_Statistics_PART"
|
||||||
Public Const S_OPTIMIZERSTATISTICS As String = "DG_OptimizerStatistics"
|
Public Const S_OPTIMIZERSTATISTICS As String = "DG_OptimizerStatistics"
|
||||||
Public Const S_RAWPARTSTATISTICS As String = "DG_RawPartStatistics"
|
Public Const S_RAWPARTSTATISTICS As String = "DG_RawPartStatistics"
|
||||||
|
Public Const S_BEAMMACHININGS As String = "DG_BeamMachinings"
|
||||||
Public Const S_SPARAMLIST_BEAM As String = "DG_SParamList_BEAM"
|
Public Const S_SPARAMLIST_BEAM As String = "DG_SParamList_BEAM"
|
||||||
Public Const S_SPARAMLIST_WALL As String = "DG_SParamList_WALL"
|
Public Const S_SPARAMLIST_WALL As String = "DG_SParamList_WALL"
|
||||||
|
Public Const S_SECTXMATLIST_BEAM As String = "DG_SectXMatList_BEAM"
|
||||||
|
Public Const S_SECTXMATLIST_WALL As String = "DG_SectXMatList_WALL"
|
||||||
Public Const S_VARIABLESLIST As String = "DG_VariablesList"
|
Public Const S_VARIABLESLIST As String = "DG_VariablesList"
|
||||||
Public Const S_MDICOMMANDS As String = "DG_MDICommands"
|
Public Const S_MDICOMMANDS As String = "DG_MDICommands"
|
||||||
Public Const S_MACHINELOG As String = "DG_MachineLog"
|
Public Const S_MACHINELOG As String = "DG_MachineLog"
|
||||||
|
|||||||
@@ -2,9 +2,13 @@
|
|||||||
|
|
||||||
Public Const DIMENSIONS_FILE_NAME As String = "Dimensions.ini"
|
Public Const DIMENSIONS_FILE_NAME As String = "Dimensions.ini"
|
||||||
|
|
||||||
|
Public Const PROJECT_VIEW As String = "Project_View"
|
||||||
|
Public Const PROJECT_OPTIMIZER As String = "Project_Optimizer"
|
||||||
Public Const LEFTPANEL_VIEW As String = "LeftPanel_View"
|
Public Const LEFTPANEL_VIEW As String = "LeftPanel_View"
|
||||||
|
Public Const LEFTPANEL_OPTIMIZER As String = "LeftPanel_Optimizer"
|
||||||
|
Public Const TOPPANEL_OPTIMIZER As String = "TopPanel_Optimizer"
|
||||||
Public Const LEFTPANEL_SUPERVISOR As String = "LeftPanel_Supervisor"
|
Public Const LEFTPANEL_SUPERVISOR As String = "LeftPanel_Supervisor"
|
||||||
Public Const PROJECT_SUPERVISOR As String = "Project_Supervisor"
|
Public Const PROJECT_SUPERVISOR As String = "Project_Supervisor"
|
||||||
Public Const PROJECT_AEDIFICA As String = "Project_Aedifica"
|
Public Const PROJECT_ONLYPROD As String = "Project_OnlyProd"
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Public Module ConstGen
|
|||||||
Public Const K_DATAROOT As String = "DataRoot"
|
Public Const K_DATAROOT As String = "DataRoot"
|
||||||
|
|
||||||
' File con dati di licenza
|
' File con dati di licenza
|
||||||
Public Const LIC_FILE_NAME As String = "Aedifica.lic"
|
Public Const LIC_FILE_NAME As String = "EgtBEAMWALL.lic"
|
||||||
Public Const S_LICENCE As String = "Licence"
|
Public Const S_LICENCE As String = "Licence"
|
||||||
Public Const K_LOCKID As String = "LockId"
|
Public Const K_LOCKID As String = "LockId"
|
||||||
Public Const K_KEY As String = "Key"
|
Public Const K_KEY As String = "Key"
|
||||||
@@ -28,15 +28,13 @@ Public Module ConstGen
|
|||||||
|
|
||||||
' Pagine del programma
|
' Pagine del programma
|
||||||
Public Enum Pages As Integer
|
Public Enum Pages As Integer
|
||||||
EMPTY = -1
|
|
||||||
VIEW = 0
|
VIEW = 0
|
||||||
MACHINING = 1
|
MACHINING = 1
|
||||||
SUPERVISOR = 2
|
SUPERVISOR = 2
|
||||||
CONFIG = 3
|
CONFIG = 3
|
||||||
INPUTS = 4
|
INPUTS = 4
|
||||||
OUTPUTS = 5
|
OUTPUTS = 5
|
||||||
OPTIMIZERPAGE = 6
|
ONLYPRODPAGE = 6
|
||||||
CONFIGPROGRAM = 7
|
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
' Abilitazioni licenza
|
' Abilitazioni licenza
|
||||||
@@ -57,8 +55,8 @@ Public Module ConstGen
|
|||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
' File di log generale
|
' File di log generale
|
||||||
Public Const VWOPTGENLOG_FILE_NAME As String = "Aedifica.OptimizerLog#.txt"
|
Public Const VWOPTGENLOG_FILE_NAME As String = "EgtBEAMWALL.ViewerOptimizerLog#.txt"
|
||||||
Public Const SUPGENLOG_FILE_NAME As String = "Aedifica.SupervisorLog#.txt"
|
Public Const SUPGENLOG_FILE_NAME As String = "EgtBEAMWALL.SupervisorLog#.txt"
|
||||||
|
|
||||||
' Sottodirettorio di configurazione
|
' Sottodirettorio di configurazione
|
||||||
Public Const CONF_DIR As String = "Config"
|
Public Const CONF_DIR As String = "Config"
|
||||||
@@ -78,39 +76,25 @@ Public Module ConstGen
|
|||||||
Public Const WAREHOUSE_DIR As String = "Warehouse"
|
Public Const WAREHOUSE_DIR As String = "Warehouse"
|
||||||
' Sottodirettorio per lavorazioni travi
|
' Sottodirettorio per lavorazioni travi
|
||||||
Public Const BEAM_DIR As String = "Beam"
|
Public Const BEAM_DIR As String = "Beam"
|
||||||
' Sottodirettorio per lavorazioni travi nuovo
|
|
||||||
Public Const BEAMNEW_DIR As String = "BeamNew"
|
|
||||||
' Sottodirettorio per lavorazioni pareti
|
' Sottodirettorio per lavorazioni pareti
|
||||||
Public Const WALL_DIR As String = "Wall"
|
Public Const WALL_DIR As String = "Wall"
|
||||||
' Sottodirettorio per lavorazioni pareti nuovo
|
' Sottodirettorio per setup strategie
|
||||||
Public Const WALLNEW_DIR As String = "WallNew"
|
Public Const AISETUP_DIR As String = "AISetup"
|
||||||
|
' Sottodirettorio per automarismo strategie
|
||||||
|
Public Const STRATEGIES_DIR As String = "Strategies"
|
||||||
|
' File contenente lista strategie per feature/topologia
|
||||||
|
Public Const AVAILABLESTRATEGYLIST_FILE As String = "AvailableStrategyList"
|
||||||
' Sottodirettorio di default per il salvataggio con nome
|
' Sottodirettorio di default per il salvataggio con nome
|
||||||
Public Const SAVE_DFL_NAMEDIR As String = "MyProjects"
|
Public Const SAVE_DFL_NAMEDIR As String = "MyProjects"
|
||||||
' Sottodirettorio di default per le macchine
|
' Sottodirettorio di default per le macchine
|
||||||
Public Const MACHINES_DFL_DIR As String = "Machines"
|
Public Const MACHINES_DFL_DIR As String = "Machines"
|
||||||
' Sottodirettorio di default per toolmakers
|
' Sottodirettorio di default per toolmakers
|
||||||
Public Const TOOLMAKERS_DFL_DIR As String = "ToolMakers"
|
Public Const TOOLMAKERS_DFL_DIR As String = "ToolMakers"
|
||||||
' Sottodirettorio di immagini
|
|
||||||
Public Const IMAGE_DIR As String = "Image"
|
|
||||||
' Nome file Lua con le funzioni di attrezzaggio
|
' Nome file Lua con le funzioni di attrezzaggio
|
||||||
Public Const SETUP_LUA As String = "SetUp.lua"
|
Public Const SETUP_LUA As String = "SetUp.lua"
|
||||||
' Nome eseguibile per stampa
|
' Nome eseguibile per stampa
|
||||||
Public Const ZEBRAPRINTER_EXE As String = "ZebraPrinterUtilitiesD32.exe"
|
Public Const ZEBRAPRINTER_EXE As String = "ZebraPrinterUtilitiesD32.exe"
|
||||||
' Sottodirettorio di default per macro
|
' Sottodirettorio di default per macro
|
||||||
Public Const MACRO_DFL_DIR As String = "Macro"
|
Public Const MACRO_DFL_DIR As String = "Macro"
|
||||||
' Sottodirettorio per setup strategie
|
|
||||||
Public Const AISETUP_DIR As String = "AISetup"
|
|
||||||
' Sottodirettorio per automatismo strategie
|
|
||||||
Public Const STRATEGIES_DIR As String = "Strategies"
|
|
||||||
' Sottodirettorio per automatismo strategie standard
|
|
||||||
Public Const STANDARD_DIR As String = "Standard"
|
|
||||||
' File contenente lista strategie per feature/topologia
|
|
||||||
Public Const AVAILABLESTRATEGYLIST_FILE As String = "AvailableStrategyList"
|
|
||||||
' File contente tutte le feature
|
|
||||||
Public Const CUSTOMERCONFIG_FILE As String = "CustomerConfig"
|
|
||||||
' File contenente i parametri generali
|
|
||||||
Public Const GENERALPARAMETERS_FILE As String = "GeneralParameters"
|
|
||||||
' Info per temi
|
|
||||||
Public Const THEMES_FOLDER As String = "Themes"
|
|
||||||
Public Const DICTIONARY_FILENAME As String = "Dictionary.xaml"
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -13,8 +13,7 @@
|
|||||||
|
|
||||||
Public Module ConstIni
|
Public Module ConstIni
|
||||||
|
|
||||||
Public Const INI_FILE_NAME As String = "Aedifica.ini"
|
Public Const INI_FILE_NAME As String = "EgtBEAMWALL.ini"
|
||||||
Public Const CONFIG_FILE_NAME As String = "Config.ini"
|
|
||||||
|
|
||||||
Public Const K_NETKEY As String = "NetKey"
|
Public Const K_NETKEY As String = "NetKey"
|
||||||
Public Const K_MAXCAMINST As String = "MaxCamInstances"
|
Public Const K_MAXCAMINST As String = "MaxCamInstances"
|
||||||
@@ -36,8 +35,6 @@ Public Module ConstIni
|
|||||||
Public Const K_FASTPRODUCE As String = "FastProduce"
|
Public Const K_FASTPRODUCE As String = "FastProduce"
|
||||||
Public Const K_ADDPROJ As String = "AddProj"
|
Public Const K_ADDPROJ As String = "AddProj"
|
||||||
Public Const K_PROJECTMODE As String = "ProjectMode"
|
Public Const K_PROJECTMODE As String = "ProjectMode"
|
||||||
Public Const K_CAMEXEPATH As String = "CAMExePath"
|
|
||||||
Public Const K_PIPELUADIR As String = "PipeLuaDir"
|
|
||||||
|
|
||||||
Public Const K_SHOWBUILDING As String = "ShowBuilding"
|
Public Const K_SHOWBUILDING As String = "ShowBuilding"
|
||||||
|
|
||||||
@@ -53,22 +50,14 @@ Public Module ConstIni
|
|||||||
Public Const K_EXPORTBWE As String = "ExpBwe"
|
Public Const K_EXPORTBWE As String = "ExpBwe"
|
||||||
|
|
||||||
Public Const S_BEAM As String = "Beam"
|
Public Const S_BEAM As String = "Beam"
|
||||||
Public Const S_BEAMNEW As String = "BeamNew"
|
|
||||||
Public Const K_CALCPATH As String = "CalcPath"
|
Public Const K_CALCPATH As String = "CalcPath"
|
||||||
Public Const K_BEAMBASEDIR As String = "BaseDir"
|
Public Const K_BEAMBASEDIR As String = "BaseDir"
|
||||||
Public Const K_BEAMBWEEXEC As String = "BweExec"
|
Public Const K_BEAMBWEEXEC As String = "BweExec"
|
||||||
Public Const K_FLIPROTEXEC As String = "FlipRotExec"
|
|
||||||
|
|
||||||
Public Const S_WALL As String = "Wall"
|
Public Const S_WALL As String = "Wall"
|
||||||
Public Const S_WALLNEW As String = "WallNew"
|
|
||||||
Public Const K_WALLBASEDIR As String = "BaseDir"
|
Public Const K_WALLBASEDIR As String = "BaseDir"
|
||||||
Public Const K_WALLBWEEXEC As String = "BweExec"
|
Public Const K_WALLBWEEXEC As String = "BweExec"
|
||||||
|
|
||||||
Public Const S_EXECGROUP As String = "ExecGroup"
|
|
||||||
Public Const K_ENVIRONMENT As String = "Environment"
|
|
||||||
Public Const K_PIPELUAFILE As String = "PipeLuaFile"
|
|
||||||
Public Const K_MAXCAMINSTANCES As String = "MaxCAMInstances"
|
|
||||||
|
|
||||||
Public Const S_MACHINELOGFILTER As String = "MachineLogFilters"
|
Public Const S_MACHINELOGFILTER As String = "MachineLogFilters"
|
||||||
Public Const K_PARTEVENTTYPE As String = "PartEventType"
|
Public Const K_PARTEVENTTYPE As String = "PartEventType"
|
||||||
Public Const K_ENTITYTYPE As String = "EntityType"
|
Public Const K_ENTITYTYPE As String = "EntityType"
|
||||||
@@ -109,7 +98,6 @@ Public Module ConstIni
|
|||||||
Public Const S_WAREHOUSE As String = "Warehouse"
|
Public Const S_WAREHOUSE As String = "Warehouse"
|
||||||
Public Const K_TYPE As String = "Type"
|
Public Const K_TYPE As String = "Type"
|
||||||
Public Const K_DEFAULTQUANTITY As String = "DefaultQuantity"
|
Public Const K_DEFAULTQUANTITY As String = "DefaultQuantity"
|
||||||
Public Const K_DEFAULTLENGTH As String = "DefaultLength"
|
|
||||||
|
|
||||||
Public Const S_SECTION As String = "Section_Checked"
|
Public Const S_SECTION As String = "Section_Checked"
|
||||||
Public Const S_IMAGE As String = "Image_Checked"
|
Public Const S_IMAGE As String = "Image_Checked"
|
||||||
@@ -121,6 +109,7 @@ Public Module ConstIni
|
|||||||
Public Const K_EXTERNALFILEPATH As String = "ExternalFilePath"
|
Public Const K_EXTERNALFILEPATH As String = "ExternalFilePath"
|
||||||
Public Const K_REMINDERFREQUENCY As String = "ReminderFrequency"
|
Public Const K_REMINDERFREQUENCY As String = "ReminderFrequency"
|
||||||
|
|
||||||
|
Public Const K_ONLYPROD As String = "OnlyProd"
|
||||||
Public Const K_MODIFYSETUP As String = "ModifySetup"
|
Public Const K_MODIFYSETUP As String = "ModifySetup"
|
||||||
Public Const K_MACHCONFIG As String = "MachConfig"
|
Public Const K_MACHCONFIG As String = "MachConfig"
|
||||||
|
|
||||||
@@ -130,12 +119,4 @@ Public Module ConstIni
|
|||||||
' Server Address
|
' Server Address
|
||||||
Public Const K_SERVERADDRESS As String = "ServerAddressRelease"
|
Public Const K_SERVERADDRESS As String = "ServerAddressRelease"
|
||||||
Public Const K_BEAMWALL As String = "EgtBeamWall"
|
Public Const K_BEAMWALL As String = "EgtBeamWall"
|
||||||
|
|
||||||
Public Const S_STRATEGY As String = "Strategy"
|
|
||||||
Public Const K_PARAMPASSWORD As String = "ParamPassword"
|
|
||||||
Public Const K_DEFAULTCONFIG As String = "DefaultConfiguration"
|
|
||||||
|
|
||||||
Public Const K_VERIFYIMPORTBTL As String = "VerifyImportBTL"
|
|
||||||
|
|
||||||
Public Const K_THEMA As String = "Thema"
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -56,14 +56,11 @@
|
|||||||
<Reference Include="EgwProxy.LiMan, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="EgwProxy.LiMan, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\EgwProxy.LiMan.1.0.2408.718\lib\EgwProxy.LiMan.dll</HintPath>
|
<HintPath>..\packages\EgwProxy.LiMan.1.0.2408.718\lib\EgwProxy.LiMan.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="EgwWPFBaseLib, Version=3.1.1.2, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\EgwWPFBaseLib.3.1.1.2\lib\EgwWPFBaseLib.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Newtonsoft.Json.13.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="PresentationCore" />
|
<Reference Include="PresentationCore" />
|
||||||
<Reference Include="PresentationFramework" />
|
<Reference Include="PresentationFramework" />
|
||||||
@@ -119,14 +116,33 @@
|
|||||||
<Import Include="System.Xml.Linq" />
|
<Import Include="System.Xml.Linq" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="BeamMachiningsWindow\BeamMachiningsWindowV.xaml.vb">
|
||||||
|
<DependentUpon>BeamMachiningsWindowV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BeamMachiningsWindow\MyBeamMachiningsWindowVM.vb" />
|
||||||
|
<Compile Include="BeamMachiningsWindow\OnlyProdBeamMachiningsWindowV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdBeamMachiningsWindowV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="BTLViewModel\BTLFeatureVM.vb" />
|
<Compile Include="BTLViewModel\BTLFeatureVM.vb" />
|
||||||
<Compile Include="CALCPanel\CalcEditEndEventArgs.vb" />
|
<Compile Include="CALCPanel\CalcEditEndEventArgs.vb" />
|
||||||
<Compile Include="ConfigurationPage\Machine_ConfigurationPageV.xaml.vb">
|
<Compile Include="ConfigurationPage\OnlyProdMachine_ConfigurationPageV.xaml.vb">
|
||||||
<DependentUpon>Machine_ConfigurationPageV.xaml</DependentUpon>
|
<DependentUpon>OnlyProdMachine_ConfigurationPageV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ConfigurationPage\OnlyProdGeneral_ConfigurationPageV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdGeneral_ConfigurationPageV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="ConfigurationPage\General_ConfigurationPageV.xaml.vb">
|
<Compile Include="ConfigurationPage\General_ConfigurationPageV.xaml.vb">
|
||||||
<DependentUpon>General_ConfigurationPageV.xaml</DependentUpon>
|
<DependentUpon>General_ConfigurationPageV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="ConfigurationPage\Machine_ConfigurationPageV.xaml.vb">
|
||||||
|
<DependentUpon>Machine_ConfigurationPageV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ConfigurationPage\OnlyProdQParameter_ConfigurationPageV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdQParameter_ConfigurationPageV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ConfigurationPage\QParameter_ConfigurationPageV.xaml.vb">
|
||||||
|
<DependentUpon>QParameter_ConfigurationPageV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Constants\ConstColumns.vb" />
|
<Compile Include="Constants\ConstColumns.vb" />
|
||||||
<Compile Include="Constants\ConstDataGridColumnsIni.vb" />
|
<Compile Include="Constants\ConstDataGridColumnsIni.vb" />
|
||||||
<Compile Include="Constants\ConstDims.vb" />
|
<Compile Include="Constants\ConstDims.vb" />
|
||||||
@@ -138,6 +154,9 @@
|
|||||||
<Compile Include="EgtColorPicker\EgtColorPickerV.xaml.vb">
|
<Compile Include="EgtColorPicker\EgtColorPickerV.xaml.vb">
|
||||||
<DependentUpon>EgtColorPickerV.xaml</DependentUpon>
|
<DependentUpon>EgtColorPickerV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="EgtColorPicker\OnlyProdEgtColorPickerV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdEgtColorPickerV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="EgtDataGrid\EgtDataGrid.xaml.vb">
|
<Compile Include="EgtDataGrid\EgtDataGrid.xaml.vb">
|
||||||
<DependentUpon>EgtDataGrid.xaml</DependentUpon>
|
<DependentUpon>EgtDataGrid.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -151,9 +170,21 @@
|
|||||||
<Compile Include="EgtManageFileDialog\EgtManageFileDialogV.xaml.vb">
|
<Compile Include="EgtManageFileDialog\EgtManageFileDialogV.xaml.vb">
|
||||||
<DependentUpon>EgtManageFileDialogV.xaml</DependentUpon>
|
<DependentUpon>EgtManageFileDialogV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="EgtManageFileDialog\OnlyProdEgtManageFileDialogV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdEgtManageFileDialogV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="EgtMessageBox\EgtMessageBoxV.xaml.vb">
|
<Compile Include="EgtMessageBox\EgtMessageBoxV.xaml.vb">
|
||||||
<DependentUpon>EgtMessageBoxV.xaml</DependentUpon>
|
<DependentUpon>EgtMessageBoxV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="EgtMessageBox\OnlyProdEgtMessageBoxV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdEgtMessageBoxV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ItemParamList\OnlyProd_QParamListV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProd_QParamListV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ItemParamList\QParamListV.xaml.vb">
|
||||||
|
<DependentUpon>QParamListV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Lib\MachGroupAddedEventArgs.vb" />
|
<Compile Include="Lib\MachGroupAddedEventArgs.vb" />
|
||||||
<Compile Include="Lib\MachGroupVM.vb" />
|
<Compile Include="Lib\MachGroupVM.vb" />
|
||||||
<Compile Include="Lib\NewMachGroupPanelVM.vb" />
|
<Compile Include="Lib\NewMachGroupPanelVM.vb" />
|
||||||
@@ -165,26 +196,37 @@
|
|||||||
<Compile Include="BTLModel\BTLStructureM.vb" />
|
<Compile Include="BTLModel\BTLStructureM.vb" />
|
||||||
<Compile Include="Constants\ConstBeam.vb" />
|
<Compile Include="Constants\ConstBeam.vb" />
|
||||||
<Compile Include="LoadingWnd\LoadingWndHelper.vb" />
|
<Compile Include="LoadingWnd\LoadingWndHelper.vb" />
|
||||||
<Compile Include="LoadingWnd\LoadingWndVM.vb" />
|
|
||||||
<Compile Include="LoadingWnd\LoadingWndV.xaml.vb">
|
<Compile Include="LoadingWnd\LoadingWndV.xaml.vb">
|
||||||
<DependentUpon>LoadingWndV.xaml</DependentUpon>
|
<DependentUpon>LoadingWndV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="LoadingWnd\LoadingWndVM.vb" />
|
||||||
|
<Compile Include="LoadingWnd\OnlyProdLoadingWndV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdLoadingWndV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MachinePanel\OnlyProdMachinePanelV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdMachinePanelV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="MachinePanel\MachinePanelV.xaml.vb">
|
<Compile Include="MachinePanel\MachinePanelV.xaml.vb">
|
||||||
<DependentUpon>MachinePanelV.xaml</DependentUpon>
|
<DependentUpon>MachinePanelV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="MachiningDbWindow\MachiningDbWindowV.xaml.vb">
|
<Compile Include="MachiningDbWindow\OnlyProdMachiningDbWindowV.xaml.vb">
|
||||||
<DependentUpon>MachiningDbWindowV.xaml</DependentUpon>
|
<DependentUpon>OnlyProdMachiningDbWindowV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="NewOpenProjectFileDialog\NewOpenProjectFileDialogVM.vb" />
|
|
||||||
<Compile Include="NewOpenProjectFileDialog\NewOpenProjectFileDialogV.xaml.vb">
|
<Compile Include="NewOpenProjectFileDialog\NewOpenProjectFileDialogV.xaml.vb">
|
||||||
<DependentUpon>NewOpenProjectFileDialogV.xaml</DependentUpon>
|
<DependentUpon>NewOpenProjectFileDialogV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="OpenProjectFileDialog\OpenProjectFileDialogV.xaml.vb">
|
<Compile Include="NewOpenProjectFileDialog\NewOpenProjectFileDialogVM.vb" />
|
||||||
<DependentUpon>OpenProjectFileDialogV.xaml</DependentUpon>
|
<Compile Include="NewOpenProjectFileDialog\OnlyProdNewOpenProjectFileDialogV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdNewOpenProjectFileDialogV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="OptmizerWindow\OptimizerWindow.vb" />
|
<Compile Include="OpenProjectFileDialog\OnlyProdOpenProjectFileDialogV.xaml.vb">
|
||||||
<Compile Include="TitleBar\TitleBarV.xaml.vb">
|
<DependentUpon>OnlyProdOpenProjectFileDialogV.xaml</DependentUpon>
|
||||||
<DependentUpon>TitleBarV.xaml</DependentUpon>
|
</Compile>
|
||||||
|
<Compile Include="SetUpWindow\OnlyProdSetUpWindowV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdSetUpWindowV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ToolsDbWindow\OnlyProdToolDbWindowV.xaml.vb">
|
||||||
|
<DependentUpon>OnlyProdToolDbWindowV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Utility\Configuration.vb" />
|
<Compile Include="Utility\Configuration.vb" />
|
||||||
<Compile Include="ProjectFileVM\ProdItem.vb" />
|
<Compile Include="ProjectFileVM\ProdItem.vb" />
|
||||||
@@ -218,6 +260,9 @@
|
|||||||
<Compile Include="MachGroupModel\MyMachGroupPanelM.vb" />
|
<Compile Include="MachGroupModel\MyMachGroupPanelM.vb" />
|
||||||
<Compile Include="Utility\ManageWindow.vb" />
|
<Compile Include="Utility\ManageWindow.vb" />
|
||||||
<Compile Include="Utility\MyMachine.vb" />
|
<Compile Include="Utility\MyMachine.vb" />
|
||||||
|
<Compile Include="OpenProjectFileDialog\OpenProjectFileDialogV.xaml.vb">
|
||||||
|
<DependentUpon>OpenProjectFileDialogV.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="OpenProjectFileDialog\OpenProjectFileDialogVM.vb" />
|
<Compile Include="OpenProjectFileDialog\OpenProjectFileDialogVM.vb" />
|
||||||
<Compile Include="MachGroupModel\PartM.vb" />
|
<Compile Include="MachGroupModel\PartM.vb" />
|
||||||
<Compile Include="ProjectFileVM\ProdFileM.vb" />
|
<Compile Include="ProjectFileVM\ProdFileM.vb" />
|
||||||
@@ -257,18 +302,46 @@
|
|||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Include="ConfigurationPage\Machine_ConfigurationPageV.xaml">
|
<Page Include="BeamMachiningsWindow\BeamMachiningsWindowV.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
<Page Include="BeamMachiningsWindow\OnlyProdBeamMachiningsWindowV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="ConfigurationPage\OnlyProdMachine_ConfigurationPageV.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
<Page Include="ConfigurationPage\OnlyProdGeneral_ConfigurationPageV.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="ConfigurationPage\General_ConfigurationPageV.xaml">
|
<Page Include="ConfigurationPage\General_ConfigurationPageV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="ConfigurationPage\Machine_ConfigurationPageV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="ConfigurationPage\OnlyProdQParameter_ConfigurationPageV.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="ConfigurationPage\QParameter_ConfigurationPageV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="EgtColorPicker\EgtColorPickerV.xaml">
|
<Page Include="EgtColorPicker\EgtColorPickerV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="EgtColorPicker\OnlyProdEgtColorPickerV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="EgtDataGrid\EgtDataGrid.xaml">
|
<Page Include="EgtDataGrid\EgtDataGrid.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
@@ -277,35 +350,67 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="EgtManageFileDialog\OnlyProdEgtManageFileDialogV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="EgtMessageBox\EgtMessageBoxV.xaml">
|
<Page Include="EgtMessageBox\EgtMessageBoxV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="EgtMessageBox\OnlyProdEgtMessageBoxV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="ItemParamList\OnlyProd_QParamListV.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
<Page Include="ItemParamList\QParamListV.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
<Page Include="LoadingWnd\LoadingWndV.xaml">
|
<Page Include="LoadingWnd\LoadingWndV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="LoadingWnd\OnlyProdLoadingWndV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="MachinePanel\MachinePanelV.xaml">
|
<Page Include="MachinePanel\OnlyProdMachinePanelV.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="MachiningDbWindow\MachiningDbWindowV.xaml">
|
<Page Include="MachinePanel\MachinePanelV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="MachiningDbWindow\OnlyProdMachiningDbWindowV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="NewOpenProjectFileDialog\NewOpenProjectFileDialogV.xaml">
|
<Page Include="NewOpenProjectFileDialog\NewOpenProjectFileDialogV.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
<Page Include="NewOpenProjectFileDialog\OnlyProdNewOpenProjectFileDialogV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="OpenProjectFileDialog\OnlyProdOpenProjectFileDialogV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="OpenProjectFileDialog\OpenProjectFileDialogV.xaml">
|
<Page Include="OpenProjectFileDialog\OpenProjectFileDialogV.xaml">
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="Themes\Generic.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="TitleBar\TitleBarV.xaml">
|
<Page Include="SetUpWindow\OnlyProdSetUpWindowV.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="ToolsDbWindow\OnlyProdToolDbWindowV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
@@ -315,9 +420,6 @@
|
|||||||
</Page>
|
</Page>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Resources\EgalwareLogo.ico" />
|
|
||||||
<Content Include="Resources\PartManager\Locked.old.png" />
|
|
||||||
<Content Include="Resources\PartManager\Unlocked.old.png" />
|
|
||||||
<Content Include="Resources\ProjectManager\Save.png" />
|
<Content Include="Resources\ProjectManager\Save.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -326,6 +428,6 @@
|
|||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>copy $(TargetPath) c:\EgtProg\Aedifica\EgtBEAMWALL.Core.dll</PostBuildEvent>
|
<PostBuildEvent>copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.Core.dll</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,39 +1,41 @@
|
|||||||
<EgtBEAMWALLCORE:OptimizerWindow x:Class="EgtColorPickerV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="EgtColorPickerV"
|
||||||
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"
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
Title="{Binding sTitle}"
|
||||||
Title="{Binding sTitle}"
|
WindowStartupLocation="CenterOwner"
|
||||||
WindowStartupLocation="CenterOwner"
|
SizeToContent="WidthAndHeight"
|
||||||
SizeToContent="WidthAndHeight"
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False"
|
IsMinimizable="False" ShowInTaskbar="False"
|
||||||
Width="750" Height="450"
|
Width="750" Height="450"
|
||||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}">
|
||||||
|
|
||||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
<Grid Margin="5,5,5,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
<Grid Margin="5,5,5,0">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
<Grid Margin="5,5,5,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TabControl>
|
<TabControl>
|
||||||
<TabItem Header="{Binding BasicColor_Msg}">
|
<TabItem Header="{Binding BasicColor_Msg}">
|
||||||
<Grid Style="{StaticResource EgtColorPicker_Grid}">
|
<Grid HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<ListBox ItemsSource="{Binding BasicColors}"
|
<ListBox ItemsSource="{Binding BasicColors}"
|
||||||
SelectedItem="{Binding SelColor}"
|
SelectedItem="{Binding SelColor}"
|
||||||
Style="{StaticResource EgtColorPicker_ListBox}">
|
HorizontalAlignment="Center"
|
||||||
|
BorderThickness="0">
|
||||||
<ListBox.ItemsPanel>
|
<ListBox.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<UniformGrid Columns="13"/>
|
<UniformGrid Columns="13"/>
|
||||||
@@ -41,8 +43,12 @@
|
|||||||
</ListBox.ItemsPanel>
|
</ListBox.ItemsPanel>
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Rectangle Fill="{Binding Fill}"
|
<Rectangle Width="20"
|
||||||
Style="{StaticResource EgtColorPicker_Rectangle}"/>
|
Height="20"
|
||||||
|
Margin="2"
|
||||||
|
Stroke="Black"
|
||||||
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding Fill}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
<ListBox.ItemContainerStyle>
|
<ListBox.ItemContainerStyle>
|
||||||
@@ -58,17 +64,23 @@
|
|||||||
<TabItem.Resources>
|
<TabItem.Resources>
|
||||||
<Style TargetType="{x:Type EgtWPFLib5:EgtHexItem}" BasedOn="{StaticResource EgtHexItem}">
|
<Style TargetType="{x:Type EgtWPFLib5:EgtHexItem}" BasedOn="{StaticResource EgtHexItem}">
|
||||||
<Setter Property="BorderThickness" Value="1.5"/>
|
<Setter Property="BorderThickness" Value="1.5"/>
|
||||||
<Setter Property="BorderBrush" Value="{StaticResource BeamWall_White}"/>
|
<Setter Property="BorderBrush" Value="White"/>
|
||||||
</Style>
|
</Style>
|
||||||
</TabItem.Resources>
|
</TabItem.Resources>
|
||||||
<EgtWPFLib5:EgtHexList ItemsSource="{Binding HexList}"
|
<EgtWPFLib5:EgtHexList ItemsSource="{Binding HexList}"
|
||||||
SelectedItem="{Binding sHexSelColor}"
|
SelectedItem="{Binding sHexSelColor}"
|
||||||
|
Orientation="Vertical"
|
||||||
|
Margin="2.5"
|
||||||
|
RowCount="13"
|
||||||
|
ColumnCount="13"
|
||||||
|
Height="300"
|
||||||
|
Width="350"
|
||||||
Style="{StaticResource EgtHexList}">
|
Style="{StaticResource EgtHexList}">
|
||||||
<EgtWPFLib5:EgtHexList.ItemTemplate>
|
<EgtWPFLib5:EgtHexList.ItemTemplate>
|
||||||
<DataTemplate/>
|
<DataTemplate/>
|
||||||
</EgtWPFLib5:EgtHexList.ItemTemplate>
|
</EgtWPFLib5:EgtHexList.ItemTemplate>
|
||||||
<EgtWPFLib5:EgtHexList.ItemContainerStyle>
|
<EgtWPFLib5:EgtHexList.ItemContainerStyle>
|
||||||
<Style TargetType="{x:Type EgtWPFLib5:EgtHexItem}" BasedOn="{StaticResource EgtHexItem}">
|
<Style TargetType="EgtWPFLib5:EgtHexItem" BasedOn="{StaticResource EgtHexItem}">
|
||||||
<Setter Property="Grid.Row" Value="{Binding nRow}"/>
|
<Setter Property="Grid.Row" Value="{Binding nRow}"/>
|
||||||
<Setter Property="Grid.Column" Value="{Binding nColumn}"/>
|
<Setter Property="Grid.Column" Value="{Binding nColumn}"/>
|
||||||
<Setter Property="Background" Value="{Binding Background}"/>
|
<Setter Property="Background" Value="{Binding Background}"/>
|
||||||
@@ -77,14 +89,15 @@
|
|||||||
</EgtWPFLib5:EgtHexList>
|
</EgtWPFLib5:EgtHexList>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="{Binding ColorPickerTheme_Msg}">
|
<TabItem Header="{Binding ColorPickerTheme_Msg}">
|
||||||
<Grid Style="{StaticResource EgtColorPicker_Grid}">
|
<Grid HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<ListBox ItemsSource="{Binding BasicColorsTheme}"
|
<ListBox ItemsSource="{Binding BasicColorsTheme}"
|
||||||
SelectedItem="{Binding SelColorTheme}"
|
SelectedItem="{Binding SelColorTheme}"
|
||||||
Style="{StaticResource BasicColor_ListBox}">
|
BorderThickness="0">
|
||||||
<ListBox.ItemsPanel>
|
<ListBox.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<UniformGrid Columns="13"/>
|
<UniformGrid Columns="13"/>
|
||||||
@@ -92,8 +105,12 @@
|
|||||||
</ListBox.ItemsPanel>
|
</ListBox.ItemsPanel>
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Rectangle Fill="{Binding Fill}"
|
<Rectangle Width="20"
|
||||||
Style="{StaticResource EgtColorPicker_Rectangle}"/>
|
Height="20"
|
||||||
|
Margin="2"
|
||||||
|
Stroke="Black"
|
||||||
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding Fill}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
<ListBox.ItemContainerStyle>
|
<ListBox.ItemContainerStyle>
|
||||||
@@ -108,14 +125,15 @@
|
|||||||
</TabControl>
|
</TabControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Column="1"
|
<Grid Grid.Column="1"
|
||||||
Style="{StaticResource CustomerColor_Grid}">
|
Margin="5,0,0,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding CustomColor_Msg}"
|
<TextBlock Text="{Binding CustomColor_Msg}"
|
||||||
Style="{StaticResource EgtColorPicker_TextBlock}"/>
|
Margin="5,18,5,10"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<Grid Grid.Row="1">
|
<Grid Grid.Row="1">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
@@ -123,7 +141,9 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<ListBox ItemsSource="{Binding CustomColors}"
|
<ListBox ItemsSource="{Binding CustomColors}"
|
||||||
SelectedItem="{Binding SelCustomColor}"
|
SelectedItem="{Binding SelCustomColor}"
|
||||||
Style="{StaticResource CustomerColor_ListBox}">
|
HorizontalAlignment="Center"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0">
|
||||||
<ListBox.ItemsPanel>
|
<ListBox.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<UniformGrid Columns="13"/>
|
<UniformGrid Columns="13"/>
|
||||||
@@ -131,8 +151,12 @@
|
|||||||
</ListBox.ItemsPanel>
|
</ListBox.ItemsPanel>
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Rectangle Fill="{Binding Fill}"
|
<Rectangle Width="20"
|
||||||
Style="{StaticResource EgtColorPicker_Rectangle}"/>
|
Height="20"
|
||||||
|
Margin="2"
|
||||||
|
Stroke="Black"
|
||||||
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding Fill}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
<ListBox.ItemContainerStyle>
|
<ListBox.ItemContainerStyle>
|
||||||
@@ -144,23 +168,28 @@
|
|||||||
</ListBox>
|
</ListBox>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Row="2"
|
<Grid Grid.Row="2"
|
||||||
Style="{StaticResource CurrColor_Grid}">
|
Margin="0,20,0,0">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid Style="{StaticResource AddColor_Grid}">
|
<Grid Margin="0,10,5,0"
|
||||||
|
HorizontalAlignment="Left">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*" />
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Rectangle Fill="{Binding CurrColor}"
|
<Rectangle Width="100"
|
||||||
Style="{StaticResource CurrColor_Rectangle}"/>
|
Height="70"
|
||||||
<Button Grid.Row="1"
|
Stroke="Black"
|
||||||
x:Name="SaveColor"
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding CurrColor}"/>
|
||||||
|
<Button x:Name="SaveColor"
|
||||||
|
Grid.Row="1"
|
||||||
|
Margin="0,10,0,0"
|
||||||
Content="{Binding AddCColor_Msg}"
|
Content="{Binding AddCColor_Msg}"
|
||||||
Command="{Binding SaveColor_Command}"
|
Command="{Binding SaveColor_Command}"
|
||||||
Style="{StaticResource EgtColorPicker_TextButton}"/>
|
Style="{StaticResource LeftPanel_TextButton}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Column="1">
|
<Grid Grid.Column="1">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
@@ -174,45 +203,66 @@
|
|||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding Red_Msg}"
|
<TextBlock Text="{Binding Red_Msg}"
|
||||||
Style="{StaticResource RedColor_TextBlock}"/>
|
Margin="0,10,5,0"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<TextBox Grid.Column="1"
|
<TextBox Grid.Column="1"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="0,5,5,0"
|
||||||
|
IsReadOnly="False"
|
||||||
Text="{Binding Red, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding Red, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource RedColor_TextBox}"/>
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
<TextBlock Grid.Row="1"
|
<TextBlock Grid.Row="1"
|
||||||
Text="{Binding Green_Msg}"
|
Text="{Binding Green_Msg}"
|
||||||
Style="{StaticResource GreenColor_TextBlock}"/>
|
Margin="5,5,5,0"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<TextBox Grid.Column="1"
|
<TextBox Grid.Column="1"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
IsReadOnly="False"
|
||||||
Text="{Binding Green, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding Green, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource GreenColor_TextBox}"/>
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
<TextBlock Grid.Row="2"
|
<TextBlock Grid.Row="2"
|
||||||
Text="{Binding Blu_Msg}"
|
Text="{Binding Blu_Msg}"
|
||||||
Style="{StaticResource GreenColor_TextBlock}"/>
|
Margin="5,5,5,0"
|
||||||
<TextBox Grid.Row="2"
|
HorizontalAlignment="Right"
|
||||||
Grid.Column="1"
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
Grid.Row="2"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
IsReadOnly="False"
|
||||||
Text="{Binding Blue, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding Blue, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource GreenColor_TextBox}"/>
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
<TextBlock Grid.Row="3"
|
<TextBlock Grid.Row="3"
|
||||||
Text="{Binding Hexadecimal_Msg}"
|
Text="{Binding Hexadecimal_Msg}"
|
||||||
Style="{StaticResource GreenColor_TextBlock}"/>
|
Margin="5,5,5,0"
|
||||||
<TextBox Grid.Row="3"
|
HorizontalAlignment="Right"
|
||||||
Grid.Column="1"
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
Grid.Row="3"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="5,5,5,0"
|
||||||
Text="{Binding Hexadecimal}"
|
Text="{Binding Hexadecimal}"
|
||||||
Style="{StaticResource GreenColor_TextBox}"/>
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
<UniformGrid Grid.Row="2"
|
<UniformGrid Grid.Row="2"
|
||||||
Rows="1"
|
Rows="1"
|
||||||
Style="{StaticResource EgtColorPicker_UniformGrid}">
|
Margin="10,10,10,0">
|
||||||
<Button IsDefault="True"
|
<Button IsDefault="True"
|
||||||
Content="OK"
|
Content="OK"
|
||||||
Command="{Binding Ok_Command}"
|
Command="{Binding Ok_Command}"
|
||||||
Style="{StaticResource EgtColorPicker_HalfRound_Button}"/>
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
||||||
<Button Content="Cancel"
|
<Button Content="Cancel"
|
||||||
Command="{Binding Cancel_Command}"
|
Command="{Binding Cancel_Command}"
|
||||||
Style="{StaticResource EgtColorPicker_HalfRound_Button}"/>
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
Imports EgtWPFLib5
|
Imports System.Windows
|
||||||
Imports System.Windows
|
Imports System.Windows.Forms
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
Public Class EgtColorPickerV
|
Public Class EgtColorPickerV
|
||||||
|
|
||||||
@@ -7,7 +8,7 @@ Public Class EgtColorPickerV
|
|||||||
|
|
||||||
Private WithEvents m_EgtColorPickerVM As EgtColorPickerVM
|
Private WithEvents m_EgtColorPickerVM As EgtColorPickerVM
|
||||||
|
|
||||||
Private Shadows DialogResult As Boolean
|
Private Shadows DialogResult As DialogResult
|
||||||
|
|
||||||
Public Property CustomColors As Integer()
|
Public Property CustomColors As Integer()
|
||||||
Get
|
Get
|
||||||
@@ -34,6 +35,7 @@ Public Class EgtColorPickerV
|
|||||||
#Region "CONTRUCTORS"
|
#Region "CONTRUCTORS"
|
||||||
|
|
||||||
Sub New(Owner As Window, EtgColorPickerVM As EgtColorPickerVM)
|
Sub New(Owner As Window, EtgColorPickerVM As EgtColorPickerVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
InitializeComponent()
|
InitializeComponent()
|
||||||
Me.DataContext = EtgColorPickerVM
|
Me.DataContext = EtgColorPickerVM
|
||||||
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
@@ -44,7 +46,7 @@ Public Class EgtColorPickerV
|
|||||||
|
|
||||||
#Region "EVENTS"
|
#Region "EVENTS"
|
||||||
|
|
||||||
Private Sub CloseWindow(DialogResult As Boolean) Handles m_EgtColorPickerVM.OnCloseWindow
|
Private Sub CloseWindow(DialogResult As MessageBoxResult) Handles m_EgtColorPickerVM.m_CloseWindow
|
||||||
Me.DialogResult = DialogResult
|
Me.DialogResult = DialogResult
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -57,11 +59,11 @@ Public Class EgtColorPickerV
|
|||||||
''' Apre una finestra EgtColorPicker
|
''' Apre una finestra EgtColorPicker
|
||||||
''' </summary>
|
''' </summary>
|
||||||
''' <returns></returns>
|
''' <returns></returns>
|
||||||
Public Overloads Function ShowDialog() As Boolean
|
Public Overloads Function ShowDialog() As DialogResult
|
||||||
MyBase.ShowDialog()
|
MyBase.ShowDialog()
|
||||||
Return Me.DialogResult
|
Return Me.DialogResult
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region ' Methods
|
#End Region ' Methods
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -0,0 +1,268 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdEgtColorPickerV"
|
||||||
|
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"
|
||||||
|
Title="{Binding sTitle}"
|
||||||
|
WindowStartupLocation="CenterOwner"
|
||||||
|
SizeToContent="WidthAndHeight"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
|
IsMinimizable="False" ShowInTaskbar="False"
|
||||||
|
Width="750" Height="450"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}">
|
||||||
|
|
||||||
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TabControl>
|
||||||
|
<TabItem Header="{Binding BasicColor_Msg}">
|
||||||
|
<Grid HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<ListBox ItemsSource="{Binding BasicColors}"
|
||||||
|
SelectedItem="{Binding SelColor}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
BorderThickness="0">
|
||||||
|
<ListBox.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<UniformGrid Columns="13"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ListBox.ItemsPanel>
|
||||||
|
<ListBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Rectangle Width="20"
|
||||||
|
Height="20"
|
||||||
|
Margin="2"
|
||||||
|
Stroke="Black"
|
||||||
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding Fill}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.ItemTemplate>
|
||||||
|
<ListBox.ItemContainerStyle>
|
||||||
|
<Style TargetType="ListBoxItem">
|
||||||
|
<Setter Property="Margin" Value="0"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
</Style>
|
||||||
|
</ListBox.ItemContainerStyle>
|
||||||
|
</ListBox>
|
||||||
|
</Grid>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="{Binding ColorPicker_Msg}">
|
||||||
|
<TabItem.Resources>
|
||||||
|
<Style TargetType="{x:Type EgtWPFLib5:EgtHexItem}" BasedOn="{StaticResource EgtHexItem}">
|
||||||
|
<Setter Property="BorderThickness" Value="1.5"/>
|
||||||
|
<Setter Property="BorderBrush" Value="White"/>
|
||||||
|
</Style>
|
||||||
|
</TabItem.Resources>
|
||||||
|
<EgtWPFLib5:EgtHexList ItemsSource="{Binding HexList}"
|
||||||
|
SelectedItem="{Binding sHexSelColor}"
|
||||||
|
Orientation="Vertical"
|
||||||
|
Margin="2.5"
|
||||||
|
RowCount="13"
|
||||||
|
ColumnCount="13"
|
||||||
|
Height="300"
|
||||||
|
Width="350"
|
||||||
|
Style="{StaticResource EgtHexList}">
|
||||||
|
<EgtWPFLib5:EgtHexList.ItemTemplate>
|
||||||
|
<DataTemplate/>
|
||||||
|
</EgtWPFLib5:EgtHexList.ItemTemplate>
|
||||||
|
<EgtWPFLib5:EgtHexList.ItemContainerStyle>
|
||||||
|
<Style TargetType="EgtWPFLib5:EgtHexItem" BasedOn="{StaticResource EgtHexItem}">
|
||||||
|
<Setter Property="Grid.Row" Value="{Binding nRow}"/>
|
||||||
|
<Setter Property="Grid.Column" Value="{Binding nColumn}"/>
|
||||||
|
<Setter Property="Background" Value="{Binding Background}"/>
|
||||||
|
</Style>
|
||||||
|
</EgtWPFLib5:EgtHexList.ItemContainerStyle>
|
||||||
|
</EgtWPFLib5:EgtHexList>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="{Binding ColorPickerTheme_Msg}">
|
||||||
|
<Grid HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<ListBox ItemsSource="{Binding BasicColorsTheme}"
|
||||||
|
SelectedItem="{Binding SelColorTheme}"
|
||||||
|
BorderThickness="0">
|
||||||
|
<ListBox.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<UniformGrid Columns="13"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ListBox.ItemsPanel>
|
||||||
|
<ListBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Rectangle Width="20"
|
||||||
|
Height="20"
|
||||||
|
Margin="2"
|
||||||
|
Stroke="Black"
|
||||||
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding Fill}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.ItemTemplate>
|
||||||
|
<ListBox.ItemContainerStyle>
|
||||||
|
<Style TargetType="ListBoxItem">
|
||||||
|
<Setter Property="Margin" Value="0"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
</Style>
|
||||||
|
</ListBox.ItemContainerStyle>
|
||||||
|
</ListBox>
|
||||||
|
</Grid>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Column="1"
|
||||||
|
Margin="5,0,0,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Text="{Binding CustomColor_Msg}"
|
||||||
|
Margin="5,18,5,10"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<Grid Grid.Row="1">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<ListBox ItemsSource="{Binding CustomColors}"
|
||||||
|
SelectedItem="{Binding SelCustomColor}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0">
|
||||||
|
<ListBox.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<UniformGrid Columns="13"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ListBox.ItemsPanel>
|
||||||
|
<ListBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Rectangle Width="20"
|
||||||
|
Height="20"
|
||||||
|
Margin="2"
|
||||||
|
Stroke="Black"
|
||||||
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding Fill}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.ItemTemplate>
|
||||||
|
<ListBox.ItemContainerStyle>
|
||||||
|
<Style TargetType="ListBoxItem">
|
||||||
|
<Setter Property="Margin" Value="0"/>
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
</Style>
|
||||||
|
</ListBox.ItemContainerStyle>
|
||||||
|
</ListBox>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="2"
|
||||||
|
Margin="0,20,0,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid Margin="0,10,5,0"
|
||||||
|
HorizontalAlignment="Left">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Rectangle Width="100"
|
||||||
|
Height="70"
|
||||||
|
Stroke="Black"
|
||||||
|
StrokeThickness="0.5"
|
||||||
|
Fill="{Binding CurrColor}"/>
|
||||||
|
<Button x:Name="SaveColor"
|
||||||
|
Grid.Row="1"
|
||||||
|
Margin="0,10,0,0"
|
||||||
|
Content="{Binding AddCColor_Msg}"
|
||||||
|
Command="{Binding SaveColor_Command}"
|
||||||
|
Style="{StaticResource LeftPanel_TextButton}"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Column="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Text="{Binding Red_Msg}"
|
||||||
|
Margin="0,10,5,0"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="0,5,5,0"
|
||||||
|
IsReadOnly="False"
|
||||||
|
Text="{Binding Red, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
|
<TextBlock Grid.Row="1"
|
||||||
|
Text="{Binding Green_Msg}"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
Grid.Row="1"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
IsReadOnly="False"
|
||||||
|
Text="{Binding Green, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
|
<TextBlock Grid.Row="2"
|
||||||
|
Text="{Binding Blu_Msg}"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
Grid.Row="2"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
IsReadOnly="False"
|
||||||
|
Text="{Binding Blue, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
|
<TextBlock Grid.Row="3"
|
||||||
|
Text="{Binding Hexadecimal_Msg}"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
Grid.Row="3"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="5,5,5,0"
|
||||||
|
Text="{Binding Hexadecimal}"
|
||||||
|
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
<UniformGrid Grid.Row="2"
|
||||||
|
Rows="1"
|
||||||
|
Margin="10,10,10,0">
|
||||||
|
<Button IsDefault="True"
|
||||||
|
Content="OK"
|
||||||
|
Command="{Binding Ok_Command}"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="Cancel"
|
||||||
|
Command="{Binding Cancel_Command}"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</Grid>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
Imports EgtWPFLib5
|
||||||
|
Imports System.Windows
|
||||||
|
Imports System.Windows.Forms
|
||||||
|
|
||||||
|
Public Class OnlyProdEgtColorPickerV
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private WithEvents m_EgtColorPickerVM As EgtColorPickerVM
|
||||||
|
|
||||||
|
Private Shadows DialogResult As DialogResult
|
||||||
|
|
||||||
|
Public Property CustomColors As Integer()
|
||||||
|
Get
|
||||||
|
Return m_EgtColorPickerVM.GetCustomColors()
|
||||||
|
End Get
|
||||||
|
Set(value As Integer())
|
||||||
|
m_EgtColorPickerVM.SetCustomColors(value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Color As System.Drawing.Color
|
||||||
|
Get
|
||||||
|
Return System.Drawing.Color.FromArgb(255, m_EgtColorPickerVM.Red, m_EgtColorPickerVM.Green, m_EgtColorPickerVM.Blue)
|
||||||
|
End Get
|
||||||
|
Set(value As System.Drawing.Color)
|
||||||
|
m_EgtColorPickerVM.Red = value.R
|
||||||
|
m_EgtColorPickerVM.Green = value.G
|
||||||
|
m_EgtColorPickerVM.Blue = value.B
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Fields & Properties
|
||||||
|
|
||||||
|
#Region "CONTRUCTORS"
|
||||||
|
|
||||||
|
Sub New(Owner As Window, EtgColorPickerVM As EgtColorPickerVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = EtgColorPickerVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_EgtColorPickerVM = EtgColorPickerVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Constructors
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Private Sub CloseWindow(DialogResult As MessageBoxResult) Handles m_EgtColorPickerVM.m_CloseWindow
|
||||||
|
Me.DialogResult = DialogResult
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' Events
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Apre una finestra EgtColorPicker
|
||||||
|
''' </summary>
|
||||||
|
''' <returns></returns>
|
||||||
|
Public Overloads Function ShowDialog() As DialogResult
|
||||||
|
MyBase.ShowDialog()
|
||||||
|
Return Me.DialogResult
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' Methods
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,6 +1,20 @@
|
|||||||
<DataGrid x:Class="EgtDataGrid"
|
<DataGrid x:Class="EgtDataGrid"
|
||||||
|
x:Name="CurrDataGrid"
|
||||||
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">
|
||||||
|
<DataGrid.ColumnHeaderStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||||
|
<EventSetter Event="SizeChanged" Handler="Cell_SizedChanged" />
|
||||||
|
<EventSetter Event="MouseRightButtonDown" Handler="Cell_MouseRightButtonDown" />
|
||||||
|
<!-- Propieta' Header DataGrid -->
|
||||||
|
<Setter Property="Background" Value="{Binding ColumnHeaderBackground, ElementName=CurrDataGrid}" />
|
||||||
|
<Setter Property="Foreground" Value="{Binding ColumnHeaderForeground, ElementName=CurrDataGrid}" />
|
||||||
|
<Setter Property="FontWeight" Value="{Binding ColumnHeaderFontWeight, ElementName=CurrDataGrid}" />
|
||||||
|
<Setter Property="FontSize" Value="{Binding ColumnHeaderFontSize, ElementName=CurrDataGrid}" />
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="{Binding ColumnHeaderHorizontalContentAlignment, ElementName=CurrDataGrid}" />
|
||||||
|
<Setter Property="Padding" Value="{Binding ColumnHeaderPadding, ElementName=CurrDataGrid}" />
|
||||||
|
</Style>
|
||||||
|
</DataGrid.ColumnHeaderStyle>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ Imports System.Windows.Controls
|
|||||||
Imports System.Windows.Controls.Primitives
|
Imports System.Windows.Controls.Primitives
|
||||||
Imports System.Windows.Data
|
Imports System.Windows.Data
|
||||||
Imports System.Windows.Media
|
Imports System.Windows.Media
|
||||||
Imports System.Windows.Threading
|
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
@@ -26,7 +25,6 @@ Public Class EgtDataGrid
|
|||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
InitializeComponent()
|
InitializeComponent()
|
||||||
AddHandler Columns.CollectionChanged, AddressOf Columns_CollectionChanged
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shadows Property BindingColumns As ObservableCollection(Of EgtDataGridColumn)
|
Public Shadows Property BindingColumns As ObservableCollection(Of EgtDataGridColumn)
|
||||||
@@ -64,7 +62,7 @@ Public Class EgtDataGrid
|
|||||||
newItems(index).InitColumn(col)
|
newItems(index).InitColumn(col)
|
||||||
context.Columns.Add(col)
|
context.Columns.Add(col)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, String.Format(EgtMsg(61883), newItems(index).Name, newItems(index).ParentDataGridName), EgtMsg(15002), MessageBoxButton.OK, MessageBoxImage.Warning)
|
MessageBox.Show(String.Format(EgtMsg(61883), newItems(index).Name, newItems(index).ParentDataGridName), EgtMsg(15002), MessageBoxButton.OK, MessageBoxImage.Warning)
|
||||||
End Try
|
End Try
|
||||||
Next
|
Next
|
||||||
|
|
||||||
@@ -72,78 +70,6 @@ Public Class EgtDataGrid
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub Columns_CollectionChanged(sender As Object, e As NotifyCollectionChangedEventArgs)
|
|
||||||
If e.Action = NotifyCollectionChangedAction.Add Then
|
|
||||||
For Each newColumn As DataGridColumn In e.NewItems
|
|
||||||
Dispatcher.BeginInvoke(New Action(Sub()
|
|
||||||
HookHeaderForColumn(newColumn)
|
|
||||||
End Sub), DispatcherPriority.Loaded)
|
|
||||||
Next
|
|
||||||
ElseIf e.Action = NotifyCollectionChangedAction.Remove Then
|
|
||||||
For Each removedColumn As DataGridColumn In e.OldItems
|
|
||||||
Dispatcher.BeginInvoke(New Action(Sub()
|
|
||||||
UnhookHeaderForColumn(removedColumn)
|
|
||||||
End Sub), DispatcherPriority.Loaded)
|
|
||||||
Next
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub HookHeaderForColumn(ByVal column As DataGridColumn)
|
|
||||||
Dim headersPresenter = FindVisualChild(Of DataGridColumnHeadersPresenter)(Me)
|
|
||||||
If headersPresenter Is Nothing Then Return
|
|
||||||
|
|
||||||
For Each header In FindVisualChildren(Of DataGridColumnHeader)(headersPresenter)
|
|
||||||
|
|
||||||
If header.Column Is column Then
|
|
||||||
AddHandler header.SizeChanged, AddressOf ColumnHeader_SizeChanged
|
|
||||||
AddHandler header.MouseRightButtonDown, AddressOf ColumnHeader_MouseRightButtonDown
|
|
||||||
Exit For
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub UnhookHeaderForColumn(ByVal column As DataGridColumn)
|
|
||||||
Dim headersPresenter = FindVisualChild(Of DataGridColumnHeadersPresenter)(Me)
|
|
||||||
If headersPresenter Is Nothing Then Return
|
|
||||||
|
|
||||||
For Each header In FindVisualChildren(Of DataGridColumnHeader)(headersPresenter)
|
|
||||||
|
|
||||||
If header.Column Is column Then
|
|
||||||
RemoveHandler header.SizeChanged, AddressOf ColumnHeader_SizeChanged
|
|
||||||
RemoveHandler header.MouseRightButtonDown, AddressOf ColumnHeader_MouseRightButtonDown
|
|
||||||
Exit For
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Function FindVisualChild(Of T As DependencyObject)(ByVal parent As DependencyObject) As T
|
|
||||||
Dim tChild As T = Nothing
|
|
||||||
|
|
||||||
For i As Integer = 0 To VisualTreeHelper.GetChildrenCount(parent) - 1
|
|
||||||
Dim child = VisualTreeHelper.GetChild(parent, i)
|
|
||||||
tChild = TryCast(child, T)
|
|
||||||
If tChild IsNot Nothing Then Return tChild
|
|
||||||
Dim result = FindVisualChild(Of T)(child)
|
|
||||||
If result IsNot Nothing Then Return result
|
|
||||||
Next
|
|
||||||
|
|
||||||
Return Nothing
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Private Iterator Function FindVisualChildren(Of T As DependencyObject)(ByVal parent As DependencyObject) As IEnumerable(Of T)
|
|
||||||
Dim tChild As T = Nothing
|
|
||||||
|
|
||||||
For i As Integer = 0 To VisualTreeHelper.GetChildrenCount(parent) - 1
|
|
||||||
Dim child = VisualTreeHelper.GetChild(parent, i)
|
|
||||||
tChild = TryCast(child, T)
|
|
||||||
If tChild IsNot Nothing Then Yield tChild
|
|
||||||
|
|
||||||
For Each descendant In FindVisualChildren(Of T)(child)
|
|
||||||
Yield descendant
|
|
||||||
Next
|
|
||||||
Next
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Private Sub collectionChanged(ByVal sender As Object, ByVal e As NotifyCollectionChangedEventArgs)
|
Private Sub collectionChanged(ByVal sender As Object, ByVal e As NotifyCollectionChangedEventArgs)
|
||||||
Select Case e.Action
|
Select Case e.Action
|
||||||
Case NotifyCollectionChangedAction.Add
|
Case NotifyCollectionChangedAction.Add
|
||||||
@@ -152,14 +78,14 @@ Public Class EgtDataGrid
|
|||||||
|
|
||||||
For Each one As EgtDataGridColumn In e.NewItems
|
For Each one As EgtDataGridColumn In e.NewItems
|
||||||
Try
|
Try
|
||||||
Dim col As DataGridColumn = Me.FindResource(one.Name)
|
Dim col As DataGridColumn = CurrDataGrid.FindResource(one.Name)
|
||||||
one.InitColumn(col)
|
one.InitColumn(col)
|
||||||
Me.Columns.Insert(e.NewStartingIndex, col)
|
CurrDataGrid.Columns.Insert(e.NewStartingIndex, col)
|
||||||
If col.DisplayIndex <> e.NewStartingIndex Then
|
If col.DisplayIndex <> e.NewStartingIndex Then
|
||||||
Me.Columns(e.NewStartingIndex).DisplayIndex = e.NewStartingIndex
|
CurrDataGrid.Columns(e.NewStartingIndex).DisplayIndex = e.NewStartingIndex
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, String.Format(EgtMsg(61883), one.Name, one.ParentDataGridName), EgtMsg(15002), MessageBoxButton.OK, MessageBoxImage.Warning)
|
MessageBox.Show(String.Format(EgtMsg(61883), one.Name, one.ParentDataGridName), EgtMsg(15002), MessageBoxButton.OK, MessageBoxImage.Warning)
|
||||||
End Try
|
End Try
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
@@ -169,34 +95,34 @@ Public Class EgtDataGrid
|
|||||||
If e.OldItems IsNot Nothing Then
|
If e.OldItems IsNot Nothing Then
|
||||||
|
|
||||||
For Each one As EgtDataGridColumn In e.OldItems
|
For Each one As EgtDataGridColumn In e.OldItems
|
||||||
Dim col As DataGridColumn = Me.FindResource(one.Name)
|
Dim col As DataGridColumn = CurrDataGrid.FindResource(one.Name)
|
||||||
Me.Columns.Remove(col)
|
CurrDataGrid.Columns.Remove(col)
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Case NotifyCollectionChangedAction.Move
|
Case NotifyCollectionChangedAction.Move
|
||||||
'Dim col As DataGridColumn = Me.FindResource(BindingColumns(e.OldStartingIndex))
|
'Dim col As DataGridColumn = CurrDataGrid.FindResource(BindingColumns(e.OldStartingIndex))
|
||||||
'col.DisplayIndex = e.NewStartingIndex
|
'col.DisplayIndex = e.NewStartingIndex
|
||||||
Me.Columns.Move(e.OldStartingIndex, e.NewStartingIndex)
|
CurrDataGrid.Columns.Move(e.OldStartingIndex, e.NewStartingIndex)
|
||||||
Me.Columns(e.NewStartingIndex).DisplayIndex = e.NewStartingIndex
|
CurrDataGrid.Columns(e.NewStartingIndex).DisplayIndex = e.NewStartingIndex
|
||||||
'Dim x = Me.Columns(e.OldStartingIndex).DisplayIndex
|
'Dim x = CurrDataGrid.Columns(e.OldStartingIndex).DisplayIndex
|
||||||
Case NotifyCollectionChangedAction.Reset
|
Case NotifyCollectionChangedAction.Reset
|
||||||
Me.Columns.Clear()
|
CurrDataGrid.Columns.Clear()
|
||||||
|
|
||||||
If e.NewItems IsNot Nothing Then
|
If e.NewItems IsNot Nothing Then
|
||||||
|
|
||||||
For Each one As DataGridColumn In e.NewItems
|
For Each one As DataGridColumn In e.NewItems
|
||||||
Dim col As DataGridColumn = Me.FindResource(one)
|
Dim col As DataGridColumn = CurrDataGrid.FindResource(one)
|
||||||
Me.Columns.Add(col)
|
CurrDataGrid.Columns.Add(col)
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
Case NotifyCollectionChangedAction.Replace
|
Case NotifyCollectionChangedAction.Replace
|
||||||
Dim col As DataGridColumn = Me.FindResource(e.NewItems(0))
|
Dim col As DataGridColumn = CurrDataGrid.FindResource(e.NewItems(0))
|
||||||
Me.Columns(e.NewStartingIndex) = col
|
CurrDataGrid.Columns(e.NewStartingIndex) = col
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ColumnHeader_SizeChanged(sender As Object, e As SizeChangedEventArgs)
|
Private Sub Cell_SizedChanged(sender As Object, e As SizeChangedEventArgs)
|
||||||
' ad ogni ridimensionamento della cella del ColumnHeader salvo le nuove dimensioni nell'ini
|
' ad ogni ridimensionamento della cella del ColumnHeader salvo le nuove dimensioni nell'ini
|
||||||
If Not IsNothing(e.OriginalSource.Column) AndAlso Not IsNothing(BindingColumns(e.OriginalSource.Column.DisplayIndex)) Then
|
If Not IsNothing(e.OriginalSource.Column) AndAlso Not IsNothing(BindingColumns(e.OriginalSource.Column.DisplayIndex)) Then
|
||||||
' se la colonna corrente è Star ed è preceduta da una colonna Pixel non scrivo le modifiche
|
' se la colonna corrente è Star ed è preceduta da una colonna Pixel non scrivo le modifiche
|
||||||
@@ -206,17 +132,17 @@ Public Class EgtDataGrid
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub DataGrid_SizedChanged(sender As Object, e As SizeChangedEventArgs) Handles Me.SizeChanged
|
Private Sub DataGrid_SizedChanged(sender As Object, e As SizeChangedEventArgs) Handles CurrDataGrid.SizeChanged
|
||||||
' confronto la larghezza effettiva della EgtDataGrid con la somma delle larghezze delle colonne
|
' confronto la larghezza effettiva della EgtDataGrid con la somma delle larghezze delle colonne
|
||||||
UpdateColumnsWidth()
|
UpdateColumnsWidth()
|
||||||
If BindingColumns.Count > 0 Then
|
If BindingColumns.Count > 0 Then
|
||||||
If Me.ActualWidth - LASTCOLUMN_MINWIDTH > columnsWidth Then
|
If CurrDataGrid.ActualWidth - LASTCOLUMN_MINWIDTH > columnsWidth Then
|
||||||
' nascondo la ScrollBar orizzontale e setto lo UnitType dell'ultima colonna visibile a Star
|
' nascondo la ScrollBar orizzontale e setto lo UnitType dell'ultima colonna visibile a Star
|
||||||
ScrollViewer.SetHorizontalScrollBarVisibility(Me, ScrollBarVisibility.Hidden)
|
ScrollViewer.SetHorizontalScrollBarVisibility(CurrDataGrid, ScrollBarVisibility.Hidden)
|
||||||
BindingColumns.Last(Function(x) x.Visible = True).Width = New DataGridLength(1, DataGridLengthUnitType.Star)
|
BindingColumns.Last(Function(x) x.Visible = True).Width = New DataGridLength(1, DataGridLengthUnitType.Star)
|
||||||
Else
|
Else
|
||||||
' mostro la ScrollBar orizzontale e se UnitType delle colonne è Star lo setto a Pixel
|
' mostro la ScrollBar orizzontale e se UnitType delle colonne è Star lo setto a Pixel
|
||||||
ScrollViewer.SetHorizontalScrollBarVisibility(Me, ScrollBarVisibility.Visible)
|
ScrollViewer.SetHorizontalScrollBarVisibility(CurrDataGrid, ScrollBarVisibility.Visible)
|
||||||
For Each bc In BindingColumns
|
For Each bc In BindingColumns
|
||||||
If bc.Width.IsStar Then
|
If bc.Width.IsStar Then
|
||||||
bc.Width = New DataGridLength(bc.ActualWidth, DataGridLengthUnitType.Pixel)
|
bc.Width = New DataGridLength(bc.ActualWidth, DataGridLengthUnitType.Pixel)
|
||||||
@@ -244,7 +170,7 @@ Public Class EgtDataGrid
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ColumnHeader_MouseRightButtonDown(sender As Object, e As RoutedEventArgs)
|
Private Sub Cell_MouseRightButtonDown(sender As Object, e As RoutedEventArgs)
|
||||||
Dim nDispIndex As Integer = sender.DisplayIndex
|
Dim nDispIndex As Integer = sender.DisplayIndex
|
||||||
' creo il ContextMenu con gli item checkabili
|
' creo il ContextMenu con gli item checkabili
|
||||||
Dim cm As ContextMenu = New ContextMenu()
|
Dim cm As ContextMenu = New ContextMenu()
|
||||||
@@ -328,12 +254,12 @@ Public Class EgtDataGrid
|
|||||||
cm.IsOpen = True
|
cm.IsOpen = True
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CurrDataGrid_ColumnReordering(sender As Object, e As DataGridColumnEventArgs) Handles Me.ColumnReordering
|
Private Sub CurrDataGrid_ColumnReordering(sender As Object, e As DataGridColumnEventArgs) Handles CurrDataGrid.ColumnReordering
|
||||||
' conservo il vecchio indice in modo da effettuare lo scambio in BindingColumns una volta riordinate graficamente
|
' conservo il vecchio indice in modo da effettuare lo scambio in BindingColumns una volta riordinate graficamente
|
||||||
OldIndex = e.Column.DisplayIndex
|
OldIndex = e.Column.DisplayIndex
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CurrDataGrid_ColumnReordered(sender As Object, e As DataGridColumnEventArgs) Handles Me.ColumnReordered
|
Private Sub CurrDataGrid_ColumnReordered(sender As Object, e As DataGridColumnEventArgs) Handles CurrDataGrid.ColumnReordered
|
||||||
' scambio le colonne in BindingColumns
|
' scambio le colonne in BindingColumns
|
||||||
BindingColumns.Move(OldIndex, e.Column.DisplayIndex)
|
BindingColumns.Move(OldIndex, e.Column.DisplayIndex)
|
||||||
' scrivo tutte le colonne interessate dallo spostamento
|
' scrivo tutte le colonne interessate dallo spostamento
|
||||||
@@ -389,12 +315,12 @@ Public Class EgtDataGrid
|
|||||||
ResetSortDirections()
|
ResetSortDirections()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CurrDataGrid_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
|
Private Sub CurrDataGrid_Loaded(sender As Object, e As RoutedEventArgs) Handles CurrDataGrid.Loaded
|
||||||
' setto la SortDirection, se attiva, sulla colonna su cui è attiva
|
' setto la SortDirection, se attiva, sulla colonna su cui è attiva
|
||||||
Dim colIndex As Integer = 0
|
Dim colIndex As Integer = 0
|
||||||
For Each col In BindingColumns
|
For Each col In BindingColumns
|
||||||
If col.SortDirection > 0 Then
|
If col.SortDirection > 0 Then
|
||||||
Me.Items.SortDescriptions.Add(New SortDescription(Me.Columns(colIndex).SortMemberPath, col.SortDirection - 1))
|
CurrDataGrid.Items.SortDescriptions.Add(New SortDescription(CurrDataGrid.Columns(colIndex).SortMemberPath, col.SortDirection - 1))
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
colIndex += 1
|
colIndex += 1
|
||||||
@@ -407,7 +333,7 @@ Public Class EgtDataGrid
|
|||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CurrDataGrid_Sorting(sender As Object, e As DataGridSortingEventArgs) Handles Me.Sorting
|
Private Sub CurrDataGrid_Sorting(sender As Object, e As DataGridSortingEventArgs) Handles CurrDataGrid.Sorting
|
||||||
' salvo la SortDirection corrente della colonna prima di resettarla per tutte le colonne
|
' salvo la SortDirection corrente della colonna prima di resettarla per tutte le colonne
|
||||||
Dim CurrSortDirection As ListSortDirection? = e.Column.SortDirection
|
Dim CurrSortDirection As ListSortDirection? = e.Column.SortDirection
|
||||||
ResetSortDirections(True)
|
ResetSortDirections(True)
|
||||||
@@ -430,16 +356,129 @@ Public Class EgtDataGrid
|
|||||||
Next
|
Next
|
||||||
Else
|
Else
|
||||||
' altrimenti (caso ResetSort da ContextMenu) è necessatio un Clear più ampio e anche grafico
|
' altrimenti (caso ResetSort da ContextMenu) è necessatio un Clear più ampio e anche grafico
|
||||||
Me.Items.SortDescriptions.Clear()
|
CurrDataGrid.Items.SortDescriptions.Clear()
|
||||||
For Each column In BindingColumns
|
For Each column In BindingColumns
|
||||||
column.SortDirection = 0
|
column.SortDirection = 0
|
||||||
' resetto graficamente anche l'header della colonna
|
' resetto graficamente anche l'header della colonna
|
||||||
Me.Columns(column.DisplayIndex).SortDirection = Nothing
|
CurrDataGrid.Columns(column.DisplayIndex).SortDirection = Nothing
|
||||||
Next
|
Next
|
||||||
RaiseEvent ResetSort()
|
RaiseEvent ResetSort()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
#Region "COLUMN HEADER PROPERTY DATAGRID"
|
||||||
|
|
||||||
|
#Region "BACKGROUND HEADER"
|
||||||
|
|
||||||
|
Public Shared ReadOnly ColumnHeaderBackgroundProperty As DependencyProperty = DependencyProperty.Register("ColumnHeaderBackground",
|
||||||
|
GetType(Brush),
|
||||||
|
GetType(EgtDataGrid),
|
||||||
|
New FrameworkPropertyMetadata(SystemColors.ControlBrush))
|
||||||
|
|
||||||
|
Public Property ColumnHeaderBackground As Brush
|
||||||
|
Get
|
||||||
|
Return DirectCast(GetValue(ColumnHeaderBackgroundProperty), Brush)
|
||||||
|
End Get
|
||||||
|
Set(value As Brush)
|
||||||
|
SetValue(ColumnHeaderBackgroundProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' BackGround Heder
|
||||||
|
|
||||||
|
#Region "FOREGROUND HEADER"
|
||||||
|
|
||||||
|
Public Shared ReadOnly ColumnHeaderForegroundProperty As DependencyProperty = DependencyProperty.Register("ColumnHeaderForeground",
|
||||||
|
GetType(Brush),
|
||||||
|
GetType(EgtDataGrid),
|
||||||
|
New FrameworkPropertyMetadata(SystemColors.ControlTextBrush))
|
||||||
|
|
||||||
|
Public Property ColumnHeaderForeground As Brush
|
||||||
|
Get
|
||||||
|
Return DirectCast(GetValue(ColumnHeaderForegroundProperty), Brush)
|
||||||
|
End Get
|
||||||
|
Set(value As Brush)
|
||||||
|
SetValue(ColumnHeaderForegroundProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Foreground Header
|
||||||
|
|
||||||
|
#Region "FONTWEIGHT HEADER"
|
||||||
|
|
||||||
|
Public Shared ReadOnly ColumnHeaderFontWeightProperty As DependencyProperty = DependencyProperty.Register("ColumnHeaderFontWeight",
|
||||||
|
GetType(FontWeight),
|
||||||
|
GetType(EgtDataGrid),
|
||||||
|
New FrameworkPropertyMetadata(FontWeights.Normal))
|
||||||
|
|
||||||
|
Public Property ColumnHeaderFontWeight As FontWeight
|
||||||
|
Get
|
||||||
|
Return DirectCast(GetValue(ColumnHeaderFontWeightProperty), FontWeight)
|
||||||
|
End Get
|
||||||
|
Set(value As FontWeight)
|
||||||
|
SetValue(ColumnHeaderFontWeightProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' FontWeight Header
|
||||||
|
|
||||||
|
#Region "FONTSIZE HEADER"
|
||||||
|
|
||||||
|
Public Shared ReadOnly ColumnHeaderFontSizeProperty As DependencyProperty = DependencyProperty.Register("ColumnHeaderFontSize",
|
||||||
|
GetType(Double),
|
||||||
|
GetType(EgtDataGrid),
|
||||||
|
New FrameworkPropertyMetadata(Convert.ToDouble(12)))
|
||||||
|
|
||||||
|
Public Property ColumnHeaderFontSize As Double
|
||||||
|
Get
|
||||||
|
Return DirectCast(GetValue(ColumnHeaderFontSizeProperty), Double)
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
SetValue(ColumnHeaderFontSizeProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' FontSize Header
|
||||||
|
|
||||||
|
#Region "HORIZONTAKCONTENTALIGNMENT HEADER"
|
||||||
|
|
||||||
|
Public Shared ReadOnly ColumnHeaderHorizontalContentAlignmentProperty As DependencyProperty = DependencyProperty.Register("ColumnHeaderHorizontalContentAlignment",
|
||||||
|
GetType(HorizontalAlignment),
|
||||||
|
GetType(EgtDataGrid),
|
||||||
|
New FrameworkPropertyMetadata(HorizontalAlignment.Stretch))
|
||||||
|
|
||||||
|
Public Property ColumnHeaderHorizontalContentAlignment As HorizontalAlignment
|
||||||
|
Get
|
||||||
|
Return DirectCast(GetValue(ColumnHeaderHorizontalContentAlignmentProperty), HorizontalAlignment)
|
||||||
|
End Get
|
||||||
|
Set(value As HorizontalAlignment)
|
||||||
|
SetValue(ColumnHeaderHorizontalContentAlignmentProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' HorizontalContentAlignment Header
|
||||||
|
|
||||||
|
#Region "PADDING HEADER"
|
||||||
|
|
||||||
|
Public Shared ReadOnly ColumnHeaderPaddingProperty As DependencyProperty = DependencyProperty.Register("ColumnHeaderPadding",
|
||||||
|
GetType(Thickness),
|
||||||
|
GetType(EgtDataGrid),
|
||||||
|
New FrameworkPropertyMetadata(New Thickness(0)))
|
||||||
|
|
||||||
|
Public Property ColumnHeaderPadding As Thickness
|
||||||
|
Get
|
||||||
|
Return DirectCast(GetValue(ColumnHeaderPaddingProperty), Thickness)
|
||||||
|
End Get
|
||||||
|
Set(value As Thickness)
|
||||||
|
SetValue(ColumnHeaderPaddingProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Padding Header
|
||||||
|
|
||||||
|
|
||||||
|
#End Region ' Column Header Property DataGrid
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Class EgtDataGridColumn
|
Public Class EgtDataGridColumn
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
<EgtBEAMWALLCORE:OptimizerWindow x:Class="EgtManageFileDialogV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="EgtManageFileDialogV"
|
||||||
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"
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
Title="{Binding sTitle}"
|
||||||
Title="{Binding sTitle}"
|
WindowStartupLocation="CenterOwner"
|
||||||
WindowStartupLocation="CenterOwner"
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False"
|
IsMinimizable="False" ShowInTaskbar="False"
|
||||||
Height="650" Width="1000"
|
Height="500" Width="800"
|
||||||
Style="{StaticResource OptimizerWindow.Dialog}">
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}">
|
||||||
|
|
||||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
<Grid Margin="5,5,5,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
<Grid Margin="5,5,5,0">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -24,50 +24,48 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Button Command="{Binding GoBack_Command}"
|
<Button Command="{Binding GoBack_Command}"
|
||||||
Style="{StaticResource RightPanel_Button}">
|
Style="{StaticResource RightPanel_Button}">
|
||||||
<Image Source="{DynamicResource Restore_Image}"
|
<Image Source="\Resources\EgtDialog\Restore.png"
|
||||||
Style="{StaticResource Button_Image}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
</Button>
|
</Button>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
|
Margin="5"
|
||||||
Text="{Binding sSelPath}"
|
Text="{Binding sSelPath}"
|
||||||
Style="{StaticResource EgtManageDialog_TextBlock}"/>
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<ComboBox Grid.Column="2"
|
<ComboBox Grid.Column="2"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
IsSynchronizedWithCurrentItem="True"
|
||||||
ItemsSource="{Binding ViewModeList}"
|
ItemsSource="{Binding ViewModeList}"
|
||||||
SelectedItem="{Binding SelViewMode}"
|
SelectedItem="{Binding SelViewMode}"
|
||||||
Style="{StaticResource EgtManageDialog_ComboBox}">
|
Margin="2.5,5,2.5,5"
|
||||||
<ComboBox.ItemTemplate>
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
<DataTemplate>
|
|
||||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
|
||||||
<Image Source="{Binding Image}"
|
|
||||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
||||||
<TextBlock Text="{Binding Name}"
|
|
||||||
Style="{StaticResource ComboManageDialog_TextBlock}"/>
|
|
||||||
</StackPanel>
|
|
||||||
</DataTemplate>
|
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Row="1"
|
<Grid Grid.Row="1"
|
||||||
Style="{StaticResource AddRawPartWnd_Grid}">
|
Margin="5,5,5,0">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="4*"/>
|
<ColumnDefinition Width="4*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TreeView x:Name="FileTree"
|
<TreeView x:Name="FileTree"
|
||||||
ItemsSource="{Binding RootList}"
|
ItemsSource="{Binding RootList}"
|
||||||
Style="{StaticResource EgtManageDialog_TreeView}">
|
Margin="10"
|
||||||
|
FontSize="15"
|
||||||
|
BorderBrush="White">
|
||||||
<TreeView.Resources>
|
<TreeView.Resources>
|
||||||
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:EgtFolder}"
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:EgtFolder}"
|
||||||
ItemsSource="{Binding TreeItemList_View}">
|
ItemsSource="{Binding TreeItemList_View}">
|
||||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="{Binding sIconSource}"
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Height="15"
|
||||||
Style="{StaticResource Button_Image}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
<TextBlock Text="{Binding sName}"
|
<TextBlock Text="{Binding sName}"
|
||||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</HierarchicalDataTemplate>
|
</HierarchicalDataTemplate>
|
||||||
<DataTemplate DataType="{x:Type EgtWPFLib5:EgtItem}">
|
<DataTemplate DataType="{x:Type EgtWPFLib5:EgtItem}">
|
||||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="{Binding sIconSource}"
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Height="15"
|
||||||
Style="{StaticResource Button_Image}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
<TextBlock Text="{Binding sName}"
|
<TextBlock Text="{Binding sName}"
|
||||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
@@ -82,27 +80,34 @@
|
|||||||
</TreeView.ItemContainerStyle>
|
</TreeView.ItemContainerStyle>
|
||||||
</TreeView>
|
</TreeView>
|
||||||
<TabControl Grid.Column="1"
|
<TabControl Grid.Column="1"
|
||||||
SelectedIndex="{Binding nSelTab}"
|
Background="Transparent"
|
||||||
Style="{StaticResource EgtManageDialog_TabControl}">
|
BorderBrush="White"
|
||||||
|
BorderThickness="0"
|
||||||
|
SelectedIndex="{Binding nSelTab}">
|
||||||
<TabControl.ItemContainerStyle>
|
<TabControl.ItemContainerStyle>
|
||||||
<Style TargetType="{x:Type TabItem}">
|
<Style TargetType="{x:Type TabItem}">
|
||||||
<Setter Property="Visibility" Value="Collapsed"/>
|
<Setter Property="Visibility" Value="Collapsed"/>
|
||||||
</Style>
|
</Style>
|
||||||
</TabControl.ItemContainerStyle>
|
</TabControl.ItemContainerStyle>
|
||||||
<TabItem Header="LISTBOX">
|
<TabItem Header="LISTBOX">
|
||||||
<ListBox Grid.Row="1"
|
<ListBox x:Name="FileList"
|
||||||
x:Name="FileList"
|
Grid.Row="1"
|
||||||
|
Margin="5,5,5,5"
|
||||||
|
BorderBrush="White"
|
||||||
|
IsSynchronizedWithCurrentItem="True"
|
||||||
ItemsSource="{Binding SelTreeItem.FolderList, Mode=TwoWay}"
|
ItemsSource="{Binding SelTreeItem.FolderList, Mode=TwoWay}"
|
||||||
SelectedItem="{Binding ItemSelected, Mode=TwoWay}">
|
SelectedItem="{Binding ItemSelected, Mode=TwoWay}">
|
||||||
<ListBox.Resources>
|
<ListBox.Resources>
|
||||||
<DataTemplate x:Key="ListTemplateView"
|
<DataTemplate x:Key="ListTemplateView"
|
||||||
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||||
<Grid Style="{StaticResource EgtManageDialog_Grid}">
|
<Grid Margin="5,5,5,0"
|
||||||
|
Height="20">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Image Source="{Binding sIconSource}"
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Height="15"
|
||||||
Style="{StaticResource Button_Image}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
Text="{Binding sName}"
|
Text="{Binding sName}"
|
||||||
@@ -111,7 +116,9 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate x:Key="TilesTemplateView"
|
<DataTemplate x:Key="TilesTemplateView"
|
||||||
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||||
<Grid Style="{StaticResource EgtDirectory_Grid}">
|
<Grid Margin="5,5,5,0"
|
||||||
|
Height="50"
|
||||||
|
Width="250">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -120,19 +127,26 @@
|
|||||||
Style="{StaticResource Button_Image}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
<UniformGrid Grid.Column="1"
|
<UniformGrid Grid.Column="1"
|
||||||
Rows="3"
|
Rows="3"
|
||||||
Style="{StaticResource EgtManageDialog_UniformGrid}">
|
Margin="2.5,0,2.5,5">
|
||||||
<TextBlock Text="{Binding sName}"
|
<TextBlock TextAlignment="Left"
|
||||||
Style="{StaticResource Info_TextBlock}"/>
|
Text="{Binding sName}"
|
||||||
<TextBlock Text="{Binding ghTypeItem}"
|
HorizontalAlignment="Left"
|
||||||
Style="{StaticResource Info_TextBlock}"/>
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<TextBlock Text="{Binding sDimension}"
|
<TextBlock TextAlignment="Left"
|
||||||
Style="{StaticResource Info_TextBlock}"/>
|
Text="{Binding ghTypeItem}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
Text="{Binding sDimension}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate x:Key="ContentTemplateView"
|
<DataTemplate x:Key="ContentTemplateView"
|
||||||
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||||
<Grid Style="{StaticResource ContentTemplate_Grid}">
|
<Grid Margin="5,5,5,0"
|
||||||
|
Height="50">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
@@ -147,23 +161,32 @@
|
|||||||
Style="{StaticResource Button_Image}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
<UniformGrid Grid.Column="1"
|
<UniformGrid Grid.Column="1"
|
||||||
Rows="2"
|
Rows="2"
|
||||||
Style="{StaticResource EgtManageDialog_UniformGrid}">
|
Margin="2.5,0,2.5,5">
|
||||||
<TextBlock Text="{Binding sName}"
|
<TextBlock TextAlignment="Left"
|
||||||
Style="{StaticResource Info_TextBlock}"/>
|
HorizontalAlignment="Left"
|
||||||
<TextBlock Text="{Binding ghTypeItem}"
|
Text="{Binding sName}"
|
||||||
Style="{StaticResource Info_TextBlock}"/>
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding ghTypeItem}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
<UniformGrid Grid.Column="2"
|
<UniformGrid Grid.Column="2"
|
||||||
Rows="2"
|
Rows="2"
|
||||||
Style="{StaticResource EgtManageDialog_UniformGrid}">
|
Margin="2.5,0,2.5,5">
|
||||||
<TextBlock Text="{Binding sLastModifyDate}"
|
<TextBlock TextAlignment="Left"
|
||||||
Style="{StaticResource Info_TextBlock}"/>
|
HorizontalAlignment="Left"
|
||||||
<TextBlock Text="{Binding sDimension}"
|
Text="{Binding sLastModifyDate}"
|
||||||
Style="{StaticResource Info_TextBlock}"/>
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding sDimension}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Border Grid.Row="1"
|
<Border Grid.Row="1"
|
||||||
Style="{StaticResource EgtManageDialog_Border}"/>
|
BorderThickness="1"
|
||||||
|
BorderBrush="LightGray"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.Resources>
|
</ListBox.Resources>
|
||||||
@@ -173,13 +196,13 @@
|
|||||||
<ContentControl.Style>
|
<ContentControl.Style>
|
||||||
<Style TargetType="{x:Type ContentControl}">
|
<Style TargetType="{x:Type ContentControl}">
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}" Value="0">
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}" Value="0">
|
||||||
<Setter Property="ContentTemplate" Value="{StaticResource ListTemplateView}" />
|
<Setter Property="ContentTemplate" Value="{StaticResource ListTemplateView}" />
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}" Value="1">
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}" Value="1">
|
||||||
<Setter Property="ContentTemplate" Value="{StaticResource TilesTemplateView}" />
|
<Setter Property="ContentTemplate" Value="{StaticResource TilesTemplateView}" />
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}" Value="2">
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}" Value="2">
|
||||||
<Setter Property="ContentTemplate" Value="{StaticResource ContentTemplateView}" />
|
<Setter Property="ContentTemplate" Value="{StaticResource ContentTemplateView}" />
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
@@ -196,42 +219,40 @@
|
|||||||
</ListBox.ItemContainerStyle>
|
</ListBox.ItemContainerStyle>
|
||||||
<ListBox.Style>
|
<ListBox.Style>
|
||||||
<Style TargetType="{x:Type ListBox}">
|
<Style TargetType="{x:Type ListBox}">
|
||||||
<Setter Property="BorderBrush" Value="{StaticResource BeamWall_White}"/>
|
|
||||||
<Setter Property="IsSynchronizedWithCurrentItem" Value="True"/>
|
|
||||||
<Setter Property="Margin" Value="5"/>
|
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}"
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"
|
||||||
Value="0">
|
Value="0">
|
||||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
||||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/>
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/>
|
||||||
<Setter Property="ItemsPanel">
|
<Setter Property="ItemsPanel">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<WrapPanel Style="{StaticResource Project_WrapPanel}"/>
|
<WrapPanel Orientation="Vertical"/>
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}"
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"
|
||||||
Value="1">
|
Value="1">
|
||||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
|
||||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||||
<Setter Property="ItemsPanel">
|
<Setter Property="ItemsPanel">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<WrapPanel Style="{StaticResource ProjectH_WrapPanel}"/>
|
<WrapPanel Orientation="Horizontal"/>
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}"
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"
|
||||||
Value="2">
|
Value="2">
|
||||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
|
||||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||||
<Setter Property="ItemsPanel">
|
<Setter Property="ItemsPanel">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<StackPanel Style="{StaticResource EgtManageDialog_StackPanel}"/>
|
<StackPanel Orientation="Vertical"
|
||||||
|
HorizontalAlignment="Stretch"/>
|
||||||
</ItemsPanelTemplate>
|
</ItemsPanelTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
@@ -245,20 +266,16 @@
|
|||||||
<DataGrid AutoGenerateColumns="False"
|
<DataGrid AutoGenerateColumns="False"
|
||||||
IsReadOnly="True"
|
IsReadOnly="True"
|
||||||
HeadersVisibility="Column"
|
HeadersVisibility="Column"
|
||||||
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
|
||||||
AlternationCount="2"
|
|
||||||
SelectionMode="Single"
|
|
||||||
ItemsSource="{Binding SelTreeItem.FolderList, Mode=TwoWay}"
|
ItemsSource="{Binding SelTreeItem.FolderList, Mode=TwoWay}"
|
||||||
SelectedItem="{Binding ItemSelected}"
|
SelectedItem="{Binding ItemSelected}">
|
||||||
RowStyle="{StaticResource RowDataGrid_CustomHighLight}"
|
<!-- ColumnHeaderStyle="{StaticResource DataGridColumnHeader}"
|
||||||
CellStyle="{StaticResource CellDataGrid_CustomHighLight}"
|
RowStyle="{StaticResource RowDataGrid_CustomHighLight}"-->
|
||||||
ColumnHeaderStyle="{StaticResource Main_DataGridColumnHeader}"
|
|
||||||
Style="{StaticResource Optimizer_DataGrid}">
|
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTemplateColumn Width="5*">
|
<DataGridTemplateColumn Width="5*">
|
||||||
<DataGridTemplateColumn.HeaderTemplate>
|
<DataGridTemplateColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding DataContext.Name_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"/>
|
<TextBlock Text="{Binding DataContext.Name_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTemplateColumn.HeaderTemplate>
|
</DataGridTemplateColumn.HeaderTemplate>
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
@@ -269,77 +286,115 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Image Source="{Binding sIconSource}"
|
<Image Source="{Binding sIconSource}"
|
||||||
Style="{StaticResource Source_Image}"/>
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
Text="{Binding sName}"
|
Text="{Binding sName}"
|
||||||
Style="{StaticResource NameImage_TextBlock}"/>
|
VerticalAlignment="Center"
|
||||||
|
Margin="2.5,0,0,0"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
</DataGridTemplateColumn>
|
</DataGridTemplateColumn>
|
||||||
<DataGridTextColumn Binding="{Binding sLastModifyDate}"
|
<DataGridTextColumn Binding="{Binding sLastModifyDate}"
|
||||||
Width="2*"
|
Width="2*">
|
||||||
ElementStyle="{StaticResource DataGrid_TextBlock}">
|
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding DataContext.LastModify_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"/>
|
<TextBlock Text="{Binding DataContext.LastModify_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataGridTextColumn.ElementStyle>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Left"/>
|
||||||
|
<Setter Property="Padding" Value="12,6,12,6"/>
|
||||||
|
</Style>
|
||||||
|
</DataGridTextColumn.ElementStyle>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Binding="{Binding ghTypeItem}"
|
<DataGridTextColumn Binding="{Binding ghTypeItem}"
|
||||||
Width="1*"
|
Width="1*">
|
||||||
ElementStyle="{StaticResource DataGrid_TextBlock}">
|
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding DataContext.Type_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"/>
|
<TextBlock Text="{Binding DataContext.Type_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataGridTextColumn.ElementStyle>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Left"/>
|
||||||
|
<Setter Property="Padding" Value="12,6,12,6"/>
|
||||||
|
</Style>
|
||||||
|
</DataGridTextColumn.ElementStyle>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<DataGridTextColumn Binding="{Binding sDimension}"
|
<DataGridTextColumn Binding="{Binding sDimension}"
|
||||||
Width="1*"
|
Width="1*">
|
||||||
ElementStyle="{StaticResource DataGridR_TextBlock}">
|
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding DataContext.Dimension_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"/>
|
<TextBlock Text="{Binding DataContext.Dimension_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataGridTextColumn.ElementStyle>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Right"/>
|
||||||
|
<Setter Property="Padding" Value="12,6,12,6"/>
|
||||||
|
</Style>
|
||||||
|
</DataGridTextColumn.ElementStyle>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
<DataGrid.InputBindings>
|
<DataGrid.InputBindings>
|
||||||
<MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DataContext.DoubleClick_Command, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OptimizerWindow}}}"/>
|
<MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DataContext.DoubleClick_Command, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
</DataGrid.InputBindings>
|
</DataGrid.InputBindings>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Row="2"
|
<Grid Grid.Row="2"
|
||||||
Style="{StaticResource AddRawPartWnd_Grid}">
|
Margin="5,5,5,0">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding FileName_Msg}"
|
<TextBlock Margin="5,5,5,5"
|
||||||
Style="{StaticResource FileName_TextBlock}"/>
|
Text="{Binding FileName_Msg}"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
<TextBox Grid.Column="1"
|
<TextBox Grid.Column="1"
|
||||||
|
Margin="2.5,2.5,2.5,5"
|
||||||
|
TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
Text="{Binding sSaveFileName, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
Text="{Binding sSaveFileName, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||||||
Style="{StaticResource SaveFileName_TextBox}"/>
|
Style="{StaticResource ParameterList_TextBox}"/>
|
||||||
<ComboBox Grid.Column="2"
|
<ComboBox Grid.Column="2"
|
||||||
|
IsSynchronizedWithCurrentItem="True"
|
||||||
ItemsSource="{Binding FilterList}"
|
ItemsSource="{Binding FilterList}"
|
||||||
SelectedItem="{Binding SelFilter, Mode=OneWayToSource}"
|
SelectedItem="{Binding SelFilter, Mode=OneWayToSource}"
|
||||||
DisplayMemberPath="sNameExstension"
|
DisplayMemberPath="sNameExstension"
|
||||||
Style="{StaticResource FilterList_ComboBox}"/>
|
HorizontalAlignment="Right"
|
||||||
|
Margin="10,2.5,2.5,5"
|
||||||
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<UniformGrid Grid.Row="3"
|
<UniformGrid Grid.Row="3"
|
||||||
Rows="1"
|
Rows="1"
|
||||||
Style="{StaticResource Command_UniformGrid}">
|
Margin="2.5,0,2.5,0">
|
||||||
<Button IsDefault="True"
|
<Button IsDefault="True"
|
||||||
Content="OK"
|
Content="OK"
|
||||||
Command="{Binding Ok_Command}"
|
Command="{Binding Ok_Command}"
|
||||||
Style="{StaticResource EgtManageDialogOK_HalfRound_Button}"/>
|
HorizontalAlignment="Right"
|
||||||
|
Margin="15,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
||||||
<Button Content="Cancel"
|
<Button Content="Cancel"
|
||||||
Command="{Binding Cancel_Command}"
|
Command="{Binding Cancel_Command}"
|
||||||
Style="{StaticResource EgtManageDialogCancel_HalfRound_Button}"/>
|
HorizontalAlignment="Left"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Imports System.Windows.Input
|
Imports System.Windows.Forms
|
||||||
|
Imports System.Windows.Input
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports System.Windows
|
|
||||||
|
|
||||||
Public Class EgtManageFileDialogV
|
Public Class EgtManageFileDialogV
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@ Public Class EgtManageFileDialogV
|
|||||||
|
|
||||||
Private WithEvents m_EgtManageFileDialogVM As EgtManageFileDialogVM
|
Private WithEvents m_EgtManageFileDialogVM As EgtManageFileDialogVM
|
||||||
|
|
||||||
Private Shadows DialogResult As Boolean
|
Private Shadows DialogResult As DialogResult
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' Stringa che specifica il titolo da mostrare
|
''' Stringa che specifica il titolo da mostrare
|
||||||
@@ -31,15 +31,6 @@ Public Class EgtManageFileDialogV
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Property SelFilter As EgtExstension
|
|
||||||
Get
|
|
||||||
Return m_EgtManageFileDialogVM.SelFilter
|
|
||||||
End Get
|
|
||||||
Set(value As EgtExstension)
|
|
||||||
m_EgtManageFileDialogVM.SelFilter = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Property InitialDirectory As String
|
Public Property InitialDirectory As String
|
||||||
Get
|
Get
|
||||||
Return m_EgtManageFileDialogVM.sInitialDirectory
|
Return m_EgtManageFileDialogVM.sInitialDirectory
|
||||||
@@ -112,31 +103,32 @@ Public Class EgtManageFileDialogV
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
#End Region ' Fields & Properties
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
#Region "CONTRUCTORS"
|
#Region "CONTRUCTORS"
|
||||||
|
|
||||||
Sub New(Owner As Window, EgtManageFileDialogVM As EgtManageFileDialogVM)
|
Sub New(Owner As System.Windows.Window, EgtManageFileDialogVM As EgtManageFileDialogVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
InitializeComponent()
|
InitializeComponent()
|
||||||
Me.DataContext = EgtManageFileDialogVM
|
Me.DataContext = EgtManageFileDialogVM
|
||||||
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
m_EgtManageFileDialogVM = EgtManageFileDialogVM
|
m_EgtManageFileDialogVM = EgtManageFileDialogVM
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Constructor
|
#End Region
|
||||||
|
|
||||||
#Region "EVENTS"
|
#Region "EVENTS"
|
||||||
|
|
||||||
Private Sub CloseWindow(DialogResult As Boolean) Handles m_EgtManageFileDialogVM.OnCloseWindow
|
Private Sub CloseWindow(DialogResult As DialogResult) Handles m_EgtManageFileDialogVM.m_CloseWindow
|
||||||
Me.DialogResult = DialogResult
|
Me.DialogResult = DialogResult
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Events
|
#End Region
|
||||||
|
|
||||||
#Region "METHODS"
|
#Region "METHODS"
|
||||||
|
|
||||||
Public Overloads Function ShowDialog() As Boolean
|
Public Overloads Function ShowDialog() As DialogResult
|
||||||
MyBase.ShowDialog()
|
MyBase.ShowDialog()
|
||||||
Return Me.DialogResult
|
Return Me.DialogResult
|
||||||
End Function
|
End Function
|
||||||
@@ -145,6 +137,6 @@ Public Class EgtManageFileDialogV
|
|||||||
m_EgtManageFileDialogVM.MouseDoubleClick()
|
m_EgtManageFileDialogVM.MouseDoubleClick()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Methods
|
#End Region ' METHODS
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -0,0 +1,416 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdEgtManageFileDialogV"
|
||||||
|
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"
|
||||||
|
Title="{Binding sTitle}"
|
||||||
|
WindowStartupLocation="CenterOwner"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
|
IsMinimizable="False" ShowInTaskbar="False"
|
||||||
|
Height="500" Width="800"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}">
|
||||||
|
|
||||||
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Margin="5,5,5,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Button Command="{Binding GoBack_Command}"
|
||||||
|
Style="{StaticResource RightPanel_Button}">
|
||||||
|
<Image Source="\Resources\EgtDialog\Restore.png"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
</Button>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Margin="5"
|
||||||
|
Text="{Binding sSelPath}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<ComboBox Grid.Column="2"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
IsSynchronizedWithCurrentItem="True"
|
||||||
|
ItemsSource="{Binding ViewModeList}"
|
||||||
|
SelectedItem="{Binding SelViewMode}"
|
||||||
|
Margin="2.5,5,2.5,5"
|
||||||
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="1"
|
||||||
|
Margin="5,5,5,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="4*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TreeView x:Name="FileTree"
|
||||||
|
ItemsSource="{Binding RootList}"
|
||||||
|
Margin="10"
|
||||||
|
FontSize="15"
|
||||||
|
BorderBrush="White">
|
||||||
|
<TreeView.Resources>
|
||||||
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:EgtFolder}"
|
||||||
|
ItemsSource="{Binding TreeItemList_View}">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Height="15"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<TextBlock Text="{Binding sName}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</HierarchicalDataTemplate>
|
||||||
|
<DataTemplate DataType="{x:Type EgtWPFLib5:EgtItem}">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Height="15"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<TextBlock Text="{Binding sName}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</TreeView.Resources>
|
||||||
|
<TreeView.ItemContainerStyle>
|
||||||
|
<Style TargetType="{x:Type TreeViewItem}">
|
||||||
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
|
||||||
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/>
|
||||||
|
</Style>
|
||||||
|
</TreeView.ItemContainerStyle>
|
||||||
|
</TreeView>
|
||||||
|
<TabControl Grid.Column="1"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderBrush="White"
|
||||||
|
BorderThickness="0"
|
||||||
|
SelectedIndex="{Binding nSelTab}">
|
||||||
|
<TabControl.ItemContainerStyle>
|
||||||
|
<Style TargetType="{x:Type TabItem}">
|
||||||
|
<Setter Property="Visibility" Value="Collapsed"/>
|
||||||
|
</Style>
|
||||||
|
</TabControl.ItemContainerStyle>
|
||||||
|
<TabItem Header="LISTBOX">
|
||||||
|
<ListBox x:Name="FileList"
|
||||||
|
Grid.Row="1"
|
||||||
|
Margin="5,5,5,5"
|
||||||
|
BorderBrush="White"
|
||||||
|
IsSynchronizedWithCurrentItem="True"
|
||||||
|
ItemsSource="{Binding SelTreeItem.FolderList, Mode=TwoWay}"
|
||||||
|
SelectedItem="{Binding ItemSelected, Mode=TwoWay}">
|
||||||
|
<ListBox.Resources>
|
||||||
|
<DataTemplate x:Key="ListTemplateView"
|
||||||
|
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||||
|
<Grid Margin="5,5,5,0"
|
||||||
|
Height="20">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Height="15"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding sName}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
<DataTemplate x:Key="TilesTemplateView"
|
||||||
|
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||||
|
<Grid Margin="5,5,5,0"
|
||||||
|
Height="50"
|
||||||
|
Width="250">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<UniformGrid Grid.Column="1"
|
||||||
|
Rows="3"
|
||||||
|
Margin="2.5,0,2.5,5">
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
Text="{Binding sName}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
Text="{Binding ghTypeItem}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
Text="{Binding sDimension}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
<DataTemplate x:Key="ContentTemplateView"
|
||||||
|
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||||
|
<Grid Margin="5,5,5,0"
|
||||||
|
Height="50">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<UniformGrid Grid.Column="1"
|
||||||
|
Rows="2"
|
||||||
|
Margin="2.5,0,2.5,5">
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding sName}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding ghTypeItem}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
<UniformGrid Grid.Column="2"
|
||||||
|
Rows="2"
|
||||||
|
Margin="2.5,0,2.5,5">
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding sLastModifyDate}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBlock TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Text="{Binding sDimension}"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</Grid>
|
||||||
|
<Border Grid.Row="1"
|
||||||
|
BorderThickness="1"
|
||||||
|
BorderBrush="LightGray"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.Resources>
|
||||||
|
<ListBox.ItemTemplate>
|
||||||
|
<DataTemplate DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||||
|
<ContentControl Content="{Binding}">
|
||||||
|
<ContentControl.Style>
|
||||||
|
<Style TargetType="{x:Type ContentControl}">
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}" Value="0">
|
||||||
|
<Setter Property="ContentTemplate" Value="{StaticResource ListTemplateView}" />
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}" Value="1">
|
||||||
|
<Setter Property="ContentTemplate" Value="{StaticResource TilesTemplateView}" />
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}" Value="2">
|
||||||
|
<Setter Property="ContentTemplate" Value="{StaticResource ContentTemplateView}" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</ContentControl.Style>
|
||||||
|
</ContentControl>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.ItemTemplate>
|
||||||
|
<ListBox.ItemContainerStyle>
|
||||||
|
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||||
|
<EventSetter Event="MouseDoubleClick" Handler="ListBoxItem_MouseDoubleClick"/>
|
||||||
|
</Style>
|
||||||
|
</ListBox.ItemContainerStyle>
|
||||||
|
<ListBox.Style>
|
||||||
|
<Style TargetType="{x:Type ListBox}">
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"
|
||||||
|
Value="0">
|
||||||
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
||||||
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/>
|
||||||
|
<Setter Property="ItemsPanel">
|
||||||
|
<Setter.Value>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<WrapPanel Orientation="Vertical"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"
|
||||||
|
Value="1">
|
||||||
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
|
||||||
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||||
|
<Setter Property="ItemsPanel">
|
||||||
|
<Setter.Value>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<WrapPanel Orientation="Horizontal"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</DataTrigger>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.nSelTempleteListView, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"
|
||||||
|
Value="2">
|
||||||
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
|
||||||
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||||
|
<Setter Property="ItemsPanel">
|
||||||
|
<Setter.Value>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<StackPanel Orientation="Vertical"
|
||||||
|
HorizontalAlignment="Stretch"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</ListBox.Style>
|
||||||
|
</ListBox>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="DATAGRID">
|
||||||
|
<DataGrid AutoGenerateColumns="False"
|
||||||
|
IsReadOnly="True"
|
||||||
|
HeadersVisibility="Column"
|
||||||
|
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
||||||
|
AlternationCount="2"
|
||||||
|
SelectionMode="Single"
|
||||||
|
ItemsSource="{Binding SelTreeItem.FolderList, Mode=TwoWay}"
|
||||||
|
SelectedItem="{Binding ItemSelected}"
|
||||||
|
RowStyle="{StaticResource RowDataGrid_CustomHighLight}"
|
||||||
|
CellStyle="{StaticResource CellDataGrid_CustomHighLight}"
|
||||||
|
Style="{StaticResource DataGrid_OnlyProd}">
|
||||||
|
<DataGrid.ColumnHeaderStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||||
|
<Setter Property="Background" Value="{StaticResource BeamWall_Teal}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
<Setter Property="FontSize" Value="15"/>
|
||||||
|
<Setter Property="Padding" Value="1"/>
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource Omag_DarkGray}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="0,0,1,1"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.ColumnHeaderStyle>
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTemplateColumn Width="5*">
|
||||||
|
<DataGridTemplateColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Name_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.HeaderTemplate>
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource Button_Image}"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding sName}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="2.5,0,0,0"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTextColumn Binding="{Binding sLastModifyDate}"
|
||||||
|
Width="2*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.LastModify_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataGridTextColumn.ElementStyle>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Left"/>
|
||||||
|
<Setter Property="Padding" Value="12,6,12,6"/>
|
||||||
|
</Style>
|
||||||
|
</DataGridTextColumn.ElementStyle>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<DataGridTextColumn Binding="{Binding ghTypeItem}"
|
||||||
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Type_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataGridTextColumn.ElementStyle>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Left"/>
|
||||||
|
<Setter Property="Padding" Value="12,6,12,6"/>
|
||||||
|
</Style>
|
||||||
|
</DataGridTextColumn.ElementStyle>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<DataGridTextColumn Binding="{Binding sDimension}"
|
||||||
|
Width="1*">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Dimension_Msg, RelativeSource={RelativeSource AncestorType=DataGrid}}"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataGridTextColumn.ElementStyle>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="TextAlignment" Value="Right"/>
|
||||||
|
<Setter Property="Padding" Value="12,6,12,6"/>
|
||||||
|
</Style>
|
||||||
|
</DataGridTextColumn.ElementStyle>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
<DataGrid.InputBindings>
|
||||||
|
<MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DataContext.DoubleClick_Command, RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
|
</DataGrid.InputBindings>
|
||||||
|
</DataGrid>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="2"
|
||||||
|
Margin="5,5,5,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Margin="5,5,5,5"
|
||||||
|
Text="{Binding FileName_Msg}"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
Margin="2.5,2.5,2.5,5"
|
||||||
|
TextAlignment="Left"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
Text="{Binding sSaveFileName, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||||||
|
Style="{StaticResource ParameterList_TextBox}"/>
|
||||||
|
<ComboBox Grid.Column="2"
|
||||||
|
IsSynchronizedWithCurrentItem="True"
|
||||||
|
ItemsSource="{Binding FilterList}"
|
||||||
|
SelectedItem="{Binding SelFilter, Mode=OneWayToSource}"
|
||||||
|
DisplayMemberPath="sNameExstension"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="10,2.5,2.5,5"
|
||||||
|
Style="{StaticResource RightPanel_ComboBox}"/>
|
||||||
|
</Grid>
|
||||||
|
<UniformGrid Grid.Row="3"
|
||||||
|
Rows="1"
|
||||||
|
Margin="2.5,0,2.5,0">
|
||||||
|
<Button IsDefault="True"
|
||||||
|
Content="OK"
|
||||||
|
Command="{Binding Ok_Command}"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Margin="15,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="Cancel"
|
||||||
|
Command="{Binding Cancel_Command}"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
</Grid>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,142 @@
|
|||||||
|
Imports EgtWPFLib5
|
||||||
|
Imports System.Windows.Forms
|
||||||
|
Imports System.Windows.Input
|
||||||
|
|
||||||
|
Public Class OnlyProdEgtManageFileDialogV
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private WithEvents m_EgtManageFileDialogVM As EgtManageFileDialogVM
|
||||||
|
|
||||||
|
Private Shadows DialogResult As DialogResult
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Stringa che specifica il titolo da mostrare
|
||||||
|
''' </summary>
|
||||||
|
Public Overloads Property Title As String
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.sTitle
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_EgtManageFileDialogVM.sTitle = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Filter As String
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.sFilter
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_EgtManageFileDialogVM.sFilter = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property InitialDirectory As String
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.sInitialDirectory
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_EgtManageFileDialogVM.sInitialDirectory = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property SafeFileName As String
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.sSaveFileName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_EgtManageFileDialogVM.sSaveFileName = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property FileName As String
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.sFileName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
m_EgtManageFileDialogVM.sFileName = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property FilterIndex As Integer
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.nFilterIndex
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
m_EgtManageFileDialogVM.nFilterIndex = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Mode As Integer
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.nMode
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
m_EgtManageFileDialogVM.nMode = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property CheckFileExists As Boolean
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.bCheckFileExists
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_EgtManageFileDialogVM.bCheckFileExists = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property ValidateNames As Boolean
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.bValidateNames
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_EgtManageFileDialogVM.bValidateNames = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property OverwritePrompt As Boolean
|
||||||
|
Get
|
||||||
|
Return m_EgtManageFileDialogVM.bOverwritePrompt
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_EgtManageFileDialogVM.bOverwritePrompt = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
|
#Region "CONTRUCTORS"
|
||||||
|
|
||||||
|
Sub New(Owner As System.Windows.Window, EgtManageFileDialogVM As EgtManageFileDialogVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = EgtManageFileDialogVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_EgtManageFileDialogVM = EgtManageFileDialogVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Private Sub CloseWindow(DialogResult As DialogResult) Handles m_EgtManageFileDialogVM.m_CloseWindow
|
||||||
|
Me.DialogResult = DialogResult
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Public Overloads Function ShowDialog() As DialogResult
|
||||||
|
MyBase.ShowDialog()
|
||||||
|
Return Me.DialogResult
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub ListBoxItem_MouseDoubleClick(sender As Object, e As MouseButtonEventArgs)
|
||||||
|
m_EgtManageFileDialogVM.MouseDoubleClick()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,32 +1,34 @@
|
|||||||
<EgtBEAMWALLCORE:OptimizerWindow x:Class="EgtMessageBoxV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="EgtMessageBoxV"
|
||||||
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"
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
Title="{Binding sTitle}"
|
||||||
Title="{Binding sTitle}"
|
WindowStartupLocation="CenterOwner"
|
||||||
SizeToContent="WidthAndHeight"
|
SizeToContent="WidthAndHeight"
|
||||||
WindowStartupLocation="CenterOwner"
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False"
|
IsMinimizable="False" ShowInTaskbar="False"
|
||||||
Style="{StaticResource OptimizerWindow.Dialog}">
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}">
|
||||||
|
|
||||||
<Grid Style="{StaticResource EgtMessageBox_Grid}">
|
<Grid Margin="2.5,2.5,2.5,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid Style="{StaticResource MessageBox_Grid}">
|
<Grid Margin="20,20,20,20">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Image Source="{Binding sIconSource}"/>
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Margin="0,0,0,0"/>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
Text="{Binding sMessage}"
|
Text="{Binding sMessage}"
|
||||||
Style="{StaticResource EgtMessageBox_TextBlock}"/>
|
Margin="5,0,5,0"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ItemsControl Grid.Row="1"
|
<ItemsControl Grid.Row="1"
|
||||||
ItemsSource="{Binding ButtonList}"
|
ItemsSource="{Binding ButtonList}"
|
||||||
Style="{StaticResource EgtMessageBox_ItemsControl}">
|
HorizontalAlignment="Center">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<UniformGrid Rows="1"/>
|
<UniformGrid Rows="1"/>
|
||||||
@@ -37,9 +39,11 @@
|
|||||||
<Button IsDefault="{Binding bIsDefault}"
|
<Button IsDefault="{Binding bIsDefault}"
|
||||||
Content="{Binding sMessage}"
|
Content="{Binding sMessage}"
|
||||||
Command="{Binding Command_Command}"
|
Command="{Binding Command_Command}"
|
||||||
Style="{StaticResource EgtColorPicker_HalfRound_Button}"/>
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource RightPanel_HalfRound_Button}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
|
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ Public Class EgtMessageBoxV
|
|||||||
#Region "CONTRUCTORS"
|
#Region "CONTRUCTORS"
|
||||||
|
|
||||||
Sub New(Owner As Window, EgtMessageBoxVM As EgtMessageBoxVM)
|
Sub New(Owner As Window, EgtMessageBoxVM As EgtMessageBoxVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
' This call is required by the designer.
|
' This call is required by the designer.
|
||||||
InitializeComponent()
|
InitializeComponent()
|
||||||
Me.DataContext = EgtMessageBoxVM
|
Me.DataContext = EgtMessageBoxVM
|
||||||
@@ -99,7 +100,7 @@ Public Class EgtMessageBoxV
|
|||||||
|
|
||||||
#Region "EVENTS"
|
#Region "EVENTS"
|
||||||
|
|
||||||
Private Sub CloseWindow(DialogResult As MessageBoxResult) Handles m_EgtMessageBoxVM.OnCloseWindow
|
Private Sub CloseWindow(DialogResult As MessageBoxResult) Handles m_EgtMessageBoxVM.m_CloseWindow
|
||||||
Me.DialogResult = DialogResult
|
Me.DialogResult = DialogResult
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdEgtMessageBoxV"
|
||||||
|
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"
|
||||||
|
Title="{Binding sTitle}"
|
||||||
|
SizeToContent="WidthAndHeight"
|
||||||
|
WindowStartupLocation="CenterOwner"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize"
|
||||||
|
IsMinimizable="False" ShowInTaskbar="False"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}">
|
||||||
|
|
||||||
|
<Grid Margin="2.5,2.5,2.5,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Margin="20,20,20,20">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Source="{Binding sIconSource}"
|
||||||
|
Margin="0,0,0,0"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding sMessage}"
|
||||||
|
Margin="5,0,5,0"
|
||||||
|
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||||
|
</Grid>
|
||||||
|
<ItemsControl Grid.Row="1"
|
||||||
|
ItemsSource="{Binding ButtonList}"
|
||||||
|
HorizontalAlignment="Center">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<UniformGrid Rows="1"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Button IsDefault="{Binding bIsDefault}"
|
||||||
|
Content="{Binding sMessage}"
|
||||||
|
Command="{Binding Command_Command}"
|
||||||
|
Margin="2.5,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
|
||||||
|
</ItemsControl>
|
||||||
|
</Grid>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
Imports EgtWPFLib5
|
||||||
|
Imports System.Windows
|
||||||
|
|
||||||
|
Public Class OnlyProdEgtMessageBoxV
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
Private WithEvents m_EgtMessageBoxVM As EgtMessageBoxVM
|
||||||
|
|
||||||
|
Private Shadows DialogResult As MessageBoxResult
|
||||||
|
|
||||||
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
|
#Region "CONTRUCTORS"
|
||||||
|
|
||||||
|
Sub New(Owner As Window, EgtMessageBoxVM As EgtMessageBoxVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
' This call is required by the designer.
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = EgtMessageBoxVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_EgtMessageBoxVM = EgtMessageBoxVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Apre una EgtMessageBox con un messaggio che ritorna un risultato
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="Owner">Finestra di appartenenza</param>
|
||||||
|
''' <param name="sMessageBoxText">Stringa che specifica il messaggio da mostrare</param>
|
||||||
|
''' <returns>Valore che specifica quale bottone e' stato premuto dall'utente</returns>
|
||||||
|
Public Overloads Shared Function Show(Owner As Window, sMessageBoxText As String) As MessageBoxResult
|
||||||
|
Dim NewMessagebox As New OnlyProdEgtMessageBoxV(Owner, New EgtMessageBoxVM(sMessageBoxText))
|
||||||
|
NewMessagebox.ShowDialog()
|
||||||
|
Return NewMessagebox.DialogResult
|
||||||
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Apre una EgtMessageBox con un titolo ed un messaggio che ritorna un risultato
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="Owner">Finestra di appartenenza</param>
|
||||||
|
''' <param name="sMessageBoxText">Stringa che specifica il messaggio da mostrare</param>
|
||||||
|
''' <param name="sCaption">Stringa che specifica il titolo da mostrare</param>
|
||||||
|
''' <returns>Valore che specifica quale bottone e' stato premuto dall'utente</returns>
|
||||||
|
Public Overloads Shared Function Show(Owner As Window, sMessageBoxText As String, sCaption As String) As MessageBoxResult
|
||||||
|
Dim NewMessagebox As New OnlyProdEgtMessageBoxV(Owner, New EgtMessageBoxVM(sMessageBoxText, sCaption))
|
||||||
|
NewMessagebox.ShowDialog()
|
||||||
|
Return NewMessagebox.DialogResult
|
||||||
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Apre una EgtMessageBox con un titolo ed un messaggio che ritorna un risultato
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="Owner">Finestra di appartenenza</param>
|
||||||
|
''' <param name="sMessageBoxText">Stringa che specifica il messaggio da mostrare</param>
|
||||||
|
''' <param name="sCaption">Stringa che specifica il titolo da mostrare</param>
|
||||||
|
''' <param name="Button">Valore che specifica quali bottoni mostrare</param>
|
||||||
|
''' <returns>Valore che specifica quale bottone e' stato premuto dall'utente</returns>
|
||||||
|
Public Overloads Shared Function Show(Owner As Window, sMessageBoxText As String, sCaption As String, Button As MessageBoxButton) As MessageBoxResult
|
||||||
|
Dim NewMessagebox As New OnlyProdEgtMessageBoxV(Owner, New EgtMessageBoxVM(sMessageBoxText, sCaption, Button))
|
||||||
|
NewMessagebox.ShowDialog()
|
||||||
|
Return NewMessagebox.DialogResult
|
||||||
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Apre una EgtMessageBox con un titolo ed un messaggio che ritorna un risultato
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="Owner">Finestra di appartenenza</param>
|
||||||
|
''' <param name="sMessageBoxText">Stringa che specifica il messaggio da mostrare</param>
|
||||||
|
''' <param name="sCaption">Stringa che specifica il titolo da mostrare</param>
|
||||||
|
''' <param name="Button">Valore che specifica quali bottoni mostrare</param>
|
||||||
|
''' <param name="Icon">Valore che specifica quale icona mostrare</param>
|
||||||
|
''' <returns>Valore che specifica quale bottone e' stato premuto dall'utente</returns>
|
||||||
|
Public Overloads Shared Function Show(Owner As Window, sMessageBoxText As String, sCaption As String, Button As MessageBoxButton, Icon As MessageBoxImage) As MessageBoxResult
|
||||||
|
Dim NewMessagebox As New OnlyProdEgtMessageBoxV(Owner, New EgtMessageBoxVM(sMessageBoxText, sCaption, Button, Icon))
|
||||||
|
NewMessagebox.ShowDialog()
|
||||||
|
Return NewMessagebox.DialogResult
|
||||||
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Apre una EgtMessageBox con un titolo ed un messaggio che ritorna un risultato
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="Owner">Finestra di appartenenza</param>
|
||||||
|
''' <param name="sMessageBoxText">Stringa che specifica il messaggio da mostrare</param>
|
||||||
|
''' <param name="sCaption">Stringa che specifica il titolo da mostrare</param>
|
||||||
|
''' <param name="Button">Valore che specifica quali bottoni mostrare</param>
|
||||||
|
''' <param name="Icon">Valore che specifica quale icona mostrare</param>
|
||||||
|
''' <param name="DefaultResult">Valore che specifica il bottone di default</param>
|
||||||
|
''' <returns>Valore che specifica quale bottone e' stato premuto dall'utente</returns>
|
||||||
|
Public Overloads Shared Function Show(Owner As Window, sMessageBoxText As String, sCaption As String, Button As MessageBoxButton, Icon As MessageBoxImage, DefaultResult As MessageBoxResult) As MessageBoxResult
|
||||||
|
Dim NewMessagebox As New OnlyProdEgtMessageBoxV(Owner, New EgtMessageBoxVM(sMessageBoxText, sCaption, Button, Icon, DefaultResult))
|
||||||
|
NewMessagebox.ShowDialog()
|
||||||
|
Return NewMessagebox.DialogResult
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Private Sub CloseWindow(DialogResult As MessageBoxResult) Handles m_EgtMessageBoxVM.m_CloseWindow
|
||||||
|
Me.DialogResult = DialogResult
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
<DataGrid x:Class="OnlyProd_QParamListV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
AutoGenerateColumns="False"
|
||||||
|
CanUserSortColumns="False"
|
||||||
|
CanUserResizeColumns="False"
|
||||||
|
CanUserResizeRows="False"
|
||||||
|
CanUserReorderColumns="False"
|
||||||
|
SelectionMode="Single"
|
||||||
|
ScrollViewer.CanContentScroll="True"
|
||||||
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
|
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||||
|
Margin="0,0,0,5"
|
||||||
|
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
||||||
|
AlternationCount="2"
|
||||||
|
Style="{StaticResource DataGrid_OnlyProd}"
|
||||||
|
RowStyle="{StaticResource RowDataGrid_CustomHighLight}"
|
||||||
|
CellStyle="{StaticResource CellDataGrid_CustomHighLight}">
|
||||||
|
<DataGrid.ColumnHeaderStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||||
|
<Setter Property="Background" Value="{StaticResource BeamWall_Downy}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource BeamWall_White}"/>
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
<Setter Property="FontSize" Value="15"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.ColumnHeaderStyle>
|
||||||
|
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<!--BWType-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sBWType}"
|
||||||
|
Width="40"
|
||||||
|
IsReadOnly="True">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Type_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Nome-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sName}"
|
||||||
|
Width="65"
|
||||||
|
IsReadOnly="True">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.NAM_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Descrizione-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sDescription}"
|
||||||
|
Width="1*"
|
||||||
|
IsReadOnly="True">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Default-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sDefault}"
|
||||||
|
Width="65">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Default_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Minimo-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sMin}"
|
||||||
|
Width="70"
|
||||||
|
IsReadOnly="True">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Min_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Massimo-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sMax}"
|
||||||
|
Width="70"
|
||||||
|
IsReadOnly="True">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Max_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
|
||||||
|
</DataGrid>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class OnlyProd_QParamListV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
<DataGrid x:Class="QParamListV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
AutoGenerateColumns="False"
|
||||||
|
CanUserSortColumns="False"
|
||||||
|
CanUserResizeColumns="False"
|
||||||
|
CanUserResizeRows="False"
|
||||||
|
CanUserReorderColumns="False"
|
||||||
|
SelectionMode="Single"
|
||||||
|
ScrollViewer.CanContentScroll="True"
|
||||||
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
|
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
|
||||||
|
<!--BWType-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sBWType}"
|
||||||
|
Width="40"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Type_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Nome-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sName}"
|
||||||
|
Width="50"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.NAM_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Descrizione-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sDescription}"
|
||||||
|
Width="1*"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Default-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sDefault}"
|
||||||
|
Width="65"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Default_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Minimo-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sMin}"
|
||||||
|
Width="65"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Min_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Massimo-->
|
||||||
|
<DataGridTextColumn Binding="{Binding sMax}"
|
||||||
|
Width="65"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DataContext.Max_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
|
||||||
|
</DataGrid>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class QParamListV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -214,7 +214,7 @@ Public Class NewMachGroupPanelVM
|
|||||||
Dim m_MessageBoxResult As MessageBoxResult
|
Dim m_MessageBoxResult As MessageBoxResult
|
||||||
If MachGroupVMList.Count = 1 Then
|
If MachGroupVMList.Count = 1 Then
|
||||||
'chiedo conferma prima di resettare il gruppo di lavorazione
|
'chiedo conferma prima di resettare il gruppo di lavorazione
|
||||||
EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(62539), "", MessageBoxButton.YesNo, MessageBoxImage.Question)
|
MessageBox.Show(Application.Current.MainWindow, EgtMsg(62539), "", MessageBoxButton.YesNo, MessageBoxImage.Question)
|
||||||
Select Case m_MessageBoxResult
|
Select Case m_MessageBoxResult
|
||||||
Case MessageBoxResult.Yes
|
Case MessageBoxResult.Yes
|
||||||
' cancello il gruppo corrente e ne creo uno nuovo con lo stesso nome
|
' cancello il gruppo corrente e ne creo uno nuovo con lo stesso nome
|
||||||
@@ -228,7 +228,7 @@ Public Class NewMachGroupPanelVM
|
|||||||
End Select
|
End Select
|
||||||
Else
|
Else
|
||||||
'chiedo conferma prima di cancellare il gruppo di lavorazione
|
'chiedo conferma prima di cancellare il gruppo di lavorazione
|
||||||
EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(62539), "", MessageBoxButton.YesNo, MessageBoxImage.Question)
|
MessageBox.Show(Application.Current.MainWindow, EgtMsg(62539), "", MessageBoxButton.YesNo, MessageBoxImage.Question)
|
||||||
Select Case m_MessageBoxResult
|
Select Case m_MessageBoxResult
|
||||||
Case MessageBoxResult.Yes
|
Case MessageBoxResult.Yes
|
||||||
' cancello quello selezionato (ovvero il corrente)
|
' cancello quello selezionato (ovvero il corrente)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
Imports System.Threading
|
Imports System.Threading
|
||||||
Imports System.Threading.Tasks
|
|
||||||
Imports System.Windows.Threading
|
Imports System.Windows.Threading
|
||||||
|
|
||||||
Public Module LoadingWndHelper
|
Public Module LoadingWndHelper
|
||||||
@@ -60,7 +59,12 @@ Public Module LoadingWndHelper
|
|||||||
m_thread = New Thread(Sub()
|
m_thread = New Thread(Sub()
|
||||||
m_LoadingWndVM = New Core.LoadingWndVM(nSteps, TotText, AddressOf LoadingCallback)
|
m_LoadingWndVM = New Core.LoadingWndVM(nSteps, TotText, AddressOf LoadingCallback)
|
||||||
m_LoadingWndVM.UpdateProgress(m_CurrStep, m_StepText, m_nProgress, m_nNextProgress)
|
m_LoadingWndVM.UpdateProgress(m_CurrStep, m_StepText, m_nProgress, m_nNextProgress)
|
||||||
Dim LoadingWnd As New LoadingWndV(Nothing, m_LoadingWndVM)
|
Dim LoadingWnd As Object
|
||||||
|
If bOnlyProd Then
|
||||||
|
LoadingWnd = New OnlyProdLoadingWndV(Nothing, m_LoadingWndVM)
|
||||||
|
Else
|
||||||
|
LoadingWnd = New LoadingWndV(Nothing, m_LoadingWndVM)
|
||||||
|
End If
|
||||||
' posiziono la finestra
|
' posiziono la finestra
|
||||||
If WindowStartupLocation = Windows.WindowStartupLocation.CenterScreen Then
|
If WindowStartupLocation = Windows.WindowStartupLocation.CenterScreen Then
|
||||||
LoadingWnd.WindowStartupLocation = Windows.WindowStartupLocation.CenterScreen
|
LoadingWnd.WindowStartupLocation = Windows.WindowStartupLocation.CenterScreen
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
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"
|
||||||
Style="{StaticResource OnlyProd_EgtCustomWindow}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
Height="200" Width="300"
|
Height="200" Width="300"
|
||||||
TitleBarHeight="0"
|
TitleBarHeight="0"
|
||||||
ResizeMode="NoResize" WindowStyle="None"
|
ResizeMode="NoResize" WindowStyle="None"
|
||||||
@@ -23,27 +23,34 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Grid.Row="1"
|
<TextBlock Grid.Row="1"
|
||||||
Text="{Binding TotText_Msg}"
|
Text="{Binding TotText_Msg}"
|
||||||
Style="{StaticResource MessageBox_TextBlock}"/>
|
TextAlignment="Center"/>
|
||||||
<TextBlock Grid.Row="2"
|
<TextBlock Grid.Row="2"
|
||||||
Text="{Binding StepText_Msg}"
|
Text="{Binding StepText_Msg}"
|
||||||
Visibility="{Binding StepText_Visibility}"
|
TextAlignment="Center"
|
||||||
Style="{StaticResource MessageBox_TextBlock}"/>
|
Visibility="{Binding StepText_Visibility}"/>
|
||||||
<Grid Grid.Row="3"
|
<Grid Grid.Row="3"
|
||||||
Visibility="{Binding StepProgress_Visibility}">
|
Visibility="{Binding StepProgress_Visibility}">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid Style="{StaticResource EgtManageDialog_Grid}"/>
|
<Grid Height="20"/>
|
||||||
<ProgressBar Grid.Row="1"
|
<ProgressBar Grid.Row="1"
|
||||||
Value="{Binding StepProgress_Value}"
|
Minimum="0"
|
||||||
Style="{StaticResource NestingRunningWndV_ProgressBar}"/>
|
Maximum="100"
|
||||||
|
Value="{Binding StepProgress_Value}"
|
||||||
|
Height="20"
|
||||||
|
Margin="40,0,40,0"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ProgressBar Grid.Row="5"
|
<ProgressBar Grid.Row="5"
|
||||||
|
Minimum="0"
|
||||||
|
Maximum="100"
|
||||||
Value="{Binding TotProgress_Value}"
|
Value="{Binding TotProgress_Value}"
|
||||||
Style="{StaticResource NestingRunningWndV_ProgressBar}"/>
|
Height="20"
|
||||||
|
Margin="40,0,40,0"/>
|
||||||
<TextBlock Grid.Row="7"
|
<TextBlock Grid.Row="7"
|
||||||
Text="{Binding TotProgress_Msg}"
|
Text="{Binding TotProgress_Msg}"
|
||||||
Style="{StaticResource MessageBox_TextBlock}"/>
|
TextAlignment="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</EgtWPFLib5:EgtCustomWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Imports System.Windows.Input
|
Imports System.Windows
|
||||||
Imports System.Windows
|
Imports System.Windows.Input
|
||||||
|
|
||||||
Public Class LoadingWndV
|
Public Class LoadingWndV
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdLoadingWndV"
|
||||||
|
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"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}"
|
||||||
|
Height="200" Width="300"
|
||||||
|
TitleBarHeight="0"
|
||||||
|
ResizeMode="NoResize" WindowStyle="None"
|
||||||
|
IsClosable="False" IsMinimizable="False"
|
||||||
|
WindowStartupLocation="Manual" ShowInTaskbar="False">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Grid.Row="1"
|
||||||
|
Text="{Binding TotText_Msg}"
|
||||||
|
TextAlignment="Center"/>
|
||||||
|
<TextBlock Grid.Row="2"
|
||||||
|
Text="{Binding StepText_Msg}"
|
||||||
|
TextAlignment="Center"
|
||||||
|
Visibility="{Binding StepText_Visibility}"/>
|
||||||
|
<Grid Grid.Row="3"
|
||||||
|
Visibility="{Binding StepProgress_Visibility}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Height="20"/>
|
||||||
|
<ProgressBar Grid.Row="1"
|
||||||
|
Minimum="0"
|
||||||
|
Maximum="100"
|
||||||
|
Value="{Binding StepProgress_Value}"
|
||||||
|
Height="20"
|
||||||
|
Margin="40,0,40,0"/>
|
||||||
|
</Grid>
|
||||||
|
<ProgressBar Grid.Row="5"
|
||||||
|
Minimum="0"
|
||||||
|
Maximum="100"
|
||||||
|
Value="{Binding TotProgress_Value}"
|
||||||
|
Height="20"
|
||||||
|
Margin="40,0,40,0"/>
|
||||||
|
<TextBlock Grid.Row="7"
|
||||||
|
Text="{Binding TotProgress_Msg}"
|
||||||
|
TextAlignment="Center"/>
|
||||||
|
</Grid>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
Imports System.Windows.Input
|
||||||
|
Imports System.Windows
|
||||||
|
|
||||||
|
Public Class OnlyProdLoadingWndV
|
||||||
|
|
||||||
|
Private WithEvents m_LoadingWndVM As LoadingWndVM
|
||||||
|
|
||||||
|
Sub New(Owner As Window, LoadingWndVM As LoadingWndVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
' This call is required by the designer.
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = LoadingWndVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_LoadingWndVM = LoadingWndVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_LoadingWndVM.m_CloseWindow
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ActivateWindow() Handles m_LoadingWndVM.m_ActivateWindow
|
||||||
|
Me.Activate()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Me_ContentRendered() Handles Me.ContentRendered
|
||||||
|
m_LoadingWndVM.StartFunction()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ToolsDbView_Closing(sender As Object, e As ComponentModel.CancelEventArgs) Handles Me.Closing
|
||||||
|
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
||||||
|
e.Cancel = True
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,205 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class BeamM
|
||||||
|
Inherits PartM
|
||||||
|
|
||||||
|
Protected m_dOffset As Double
|
||||||
|
Public Property dOffset As Double
|
||||||
|
Get
|
||||||
|
Return m_dOffset
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
m_dOffset = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' Id del grezzo
|
||||||
|
Protected m_nRawPartId As Integer = GDB_ID.NULL
|
||||||
|
|
||||||
|
'#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
' Sub New(nParentMachGroup As MyMachGroupM, nPartId As Integer, nRawPartId As Integer)
|
||||||
|
' MyBase.New(nParentMachGroup, nPartId)
|
||||||
|
' m_nRawPartId = nRawPartId
|
||||||
|
' End Sub
|
||||||
|
|
||||||
|
'#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
|
#Region "CONSTRUCTORS"
|
||||||
|
|
||||||
|
Protected Sub New(nParentMachGroup As MyMachGroupM, nPartId As Integer)
|
||||||
|
MyBase.New(nParentMachGroup, nPartId)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Public Shared Function CreateNewBeam() As BeamM
|
||||||
|
' Return New BeamM
|
||||||
|
'End Function
|
||||||
|
|
||||||
|
Public Shared Function CreateBeam(nParentMachGroup As MyMachGroupM, nPartId As Integer, nRawPartId As Integer) As BeamM
|
||||||
|
Dim NewBeamM As New BeamM(nParentMachGroup, nPartId)
|
||||||
|
NewBeamM.m_nRawPartId = nRawPartId
|
||||||
|
' leggo info pezzo
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_PROJ, NewBeamM.m_nProjId)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_PDN, NewBeamM.m_nPDN)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_NAM, NewBeamM.m_sNAM)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_L, NewBeamM.m_dBtlL)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_W, NewBeamM.m_dBtlW)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_H, NewBeamM.m_dBtlH)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_CNT, NewBeamM.m_nCNT)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_GROUP, NewBeamM.m_sGROUP)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_MATERIAL, NewBeamM.m_sMATERIAL)
|
||||||
|
Dim nTemp As Integer = 0
|
||||||
|
If Not EgtGetInfo(nPartId, BTL_PRT_ROTATED, nTemp) Then
|
||||||
|
nTemp = 0
|
||||||
|
End If
|
||||||
|
NewBeamM.SetRotated(nTemp)
|
||||||
|
If Not EgtGetInfo(nPartId, BTL_PRT_INVERTED, nTemp) Then
|
||||||
|
nTemp = 0
|
||||||
|
End If
|
||||||
|
NewBeamM.SetInverted(nTemp)
|
||||||
|
' leggo PosX
|
||||||
|
Dim sInfo As String = ""
|
||||||
|
Dim Index = 1
|
||||||
|
Dim sSplitInfo() As String = Nothing
|
||||||
|
Dim bFound As Boolean = False
|
||||||
|
While EgtGetInfo(NewBeamM.m_ParentMachGroup.Id, MGR_RPT_PART & Index, sInfo)
|
||||||
|
If Not String.IsNullOrWhiteSpace(sInfo) Then
|
||||||
|
sSplitInfo = sInfo.Split(","c)
|
||||||
|
If sSplitInfo(0) = nPartId Then
|
||||||
|
bFound = True
|
||||||
|
Exit While
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Index += 1
|
||||||
|
End While
|
||||||
|
If bFound Then
|
||||||
|
StringToDouble(sSplitInfo(1), NewBeamM.m_dPOSX)
|
||||||
|
End If
|
||||||
|
' leggo feature
|
||||||
|
NewBeamM.m_FeatureMList = LoadBTLFeatures(nPartId)
|
||||||
|
' leggo calc error
|
||||||
|
Dim nErr As Integer = 0
|
||||||
|
Dim nRot As Integer = 0
|
||||||
|
Dim nFall As Integer = 0
|
||||||
|
Dim sMsg As String = ""
|
||||||
|
Dim bCalc As Boolean = False
|
||||||
|
bCalc = EgtGetInfo(nPartId, ITG_PROD_ERR, nErr)
|
||||||
|
EgtGetInfo(nPartId, ITG_PROD_ROT, nRot)
|
||||||
|
EgtGetInfo(nPartId, ITG_PROD_FALL, nFall)
|
||||||
|
EgtGetInfo(nPartId, ITG_PROD_MSG, sMsg)
|
||||||
|
If Not bCalc Then
|
||||||
|
NewBeamM.m_nCALC_State = CalcStates.NOTCALCULATED
|
||||||
|
NewBeamM.m_nCALC_ERR = -1
|
||||||
|
NewBeamM.m_nCALC_ROT = 0
|
||||||
|
NewBeamM.m_nCALC_FALL = 0
|
||||||
|
NewBeamM.m_sCALC_MSG = ""
|
||||||
|
Else
|
||||||
|
NewBeamM.m_nCALC_ERR = nErr
|
||||||
|
NewBeamM.m_nCALC_ROT = nRot
|
||||||
|
NewBeamM.m_nCALC_FALL = nFall
|
||||||
|
NewBeamM.m_sCALC_MSG = sMsg
|
||||||
|
If nErr = 0 Then
|
||||||
|
NewBeamM.m_nCALC_State = CalcStates.OK
|
||||||
|
ElseIf nErr > 1 Then
|
||||||
|
NewBeamM.m_nCALC_State = CalcStates.ERROR_
|
||||||
|
ElseIf nErr < 1 Then
|
||||||
|
NewBeamM.m_nCALC_State = CalcStates.NOTCALCULATED
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
EgtGetInfo(nPartId, ITG_PROD_TIME, NewBeamM.m_nCALC_TIME)
|
||||||
|
ReadMachGroupData(NewBeamM)
|
||||||
|
Return NewBeamM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTORS
|
||||||
|
|
||||||
|
#Region "X DataLayer"
|
||||||
|
|
||||||
|
Public Shared Function CreateBeamDL(nParentMachGroup As MyMachGroupM, nPartId As Integer, nRawPartId As Integer) As BeamM
|
||||||
|
Dim NewBeamM As New BeamM(nParentMachGroup, nPartId)
|
||||||
|
NewBeamM.m_nRawPartId = nRawPartId
|
||||||
|
'' leggo info pezzo
|
||||||
|
'EgtGetInfo(nPartId, BTL_PRT_PROJ, NewBeamM.nProjId)
|
||||||
|
'EgtGetInfo(nPartId, BTL_PRT_PDN, NewBeamM.nPDN)
|
||||||
|
'EgtGetInfo(nPartId, BTL_PRT_NAM, NewBeamM.sNAM)
|
||||||
|
'EgtGetInfo(nPartId, BTL_PRT_L, NewBeamM.dL)
|
||||||
|
'EgtGetInfo(nPartId, BTL_PRT_W, NewBeamM.dW)
|
||||||
|
'EgtGetInfo(nPartId, BTL_PRT_H, NewBeamM.dH)
|
||||||
|
'EgtGetInfo(nPartId, BTL_PRT_CNT, NewBeamM.nCNT)
|
||||||
|
'Dim nTemp As Integer = 0
|
||||||
|
'If Not EgtGetInfo(nPartId, BTL_PRT_ROTATED, nTemp) Then
|
||||||
|
' nTemp = 0
|
||||||
|
'End If
|
||||||
|
'NewBeamM.SetRotated(nTemp)
|
||||||
|
'If Not EgtGetInfo(nPartId, BTL_PRT_INVERTED, nTemp) Then
|
||||||
|
' nTemp = 0
|
||||||
|
'End If
|
||||||
|
'NewBeamM.SetInverted(nTemp)
|
||||||
|
'' leggo PosX
|
||||||
|
'Dim sInfo As String = ""
|
||||||
|
'Dim Index = 1
|
||||||
|
'Dim sSplitInfo() As String
|
||||||
|
'Dim bFound As Boolean = False
|
||||||
|
'While EgtGetInfo(NewBeamM.m_ParentMachGroup.Id, MGR_RPT_PART & Index, sInfo)
|
||||||
|
' If Not String.IsNullOrWhiteSpace(sInfo) Then
|
||||||
|
' sSplitInfo = sInfo.Split(","c)
|
||||||
|
' If sSplitInfo(0) = nPartId Then
|
||||||
|
' bFound = True
|
||||||
|
' Exit While
|
||||||
|
' End If
|
||||||
|
' End If
|
||||||
|
' Index += 1
|
||||||
|
'End While
|
||||||
|
'If bFound Then
|
||||||
|
' StringToDouble(sSplitInfo(1), NewBeamM.dPOSX)
|
||||||
|
'End If
|
||||||
|
'' leggo feature
|
||||||
|
'NewBeamM.m_FeatureMList = LoadBTLFeatures(nPartId)
|
||||||
|
Return NewBeamM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Shared Function LoadBTLFeatures(nPartId As Integer) As List(Of BTLFeatureM)
|
||||||
|
Dim TempList As New List(Of BTLFeatureM)
|
||||||
|
' Aggiungo outline
|
||||||
|
Dim nOutLayerId As Integer = EgtGetFirstNameInGroup(nPartId, OUTLINE)
|
||||||
|
Dim nOutlineId As Integer = EgtGetFirstInGroup(nOutLayerId)
|
||||||
|
While nOutlineId <> GDB_ID.NULL
|
||||||
|
' verifico che sia una feature
|
||||||
|
Dim nGRP As Integer
|
||||||
|
If EgtGetInfo(nOutlineId, BTL_FTR_GRP, nGRP) AndAlso Not EgtExistsInfo(nOutlineId, BTL_FTR_MAINID) Then
|
||||||
|
' creo la feature
|
||||||
|
TempList.Add(BTLFeatureM.CreateBTLFeature(Nothing, nOutlineId))
|
||||||
|
End If
|
||||||
|
nOutlineId = EgtGetNext(nOutlineId)
|
||||||
|
End While
|
||||||
|
' Aggiungo feature
|
||||||
|
Dim nProcessingId As Integer = EgtGetFirstNameInGroup(nPartId, PROCESSINGS)
|
||||||
|
Dim nFeatureId As Integer = EgtGetFirstInGroup(nProcessingId)
|
||||||
|
While nFeatureId <> GDB_ID.NULL
|
||||||
|
' verifico che sia una feature
|
||||||
|
Dim nGRP As Integer
|
||||||
|
If EgtGetInfo(nFeatureId, BTL_FTR_GRP, nGRP) AndAlso Not EgtExistsInfo(nFeatureId, BTL_FTR_MAINID) Then
|
||||||
|
' creo la feature
|
||||||
|
TempList.Add(BTLFeatureM.CreateBTLFeature(Nothing, nFeatureId))
|
||||||
|
End If
|
||||||
|
nFeatureId = EgtGetNext(nFeatureId)
|
||||||
|
End While
|
||||||
|
Return TempList
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Sub UpdateOffset()
|
||||||
|
' calcolo offset
|
||||||
|
Dim nBeamIndex As Integer = ParentMachGroup.PartMList.IndexOf(Me)
|
||||||
|
If nBeamIndex > 0 Then
|
||||||
|
m_dOffset = dPOSX - (ParentMachGroup.PartMList(nBeamIndex - 1).dPOSX + ParentMachGroup.PartMList(nBeamIndex - 1).dL)
|
||||||
|
Else
|
||||||
|
m_dOffset = dPOSX
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class BeamMachGroupM
|
||||||
|
Inherits MyMachGroupM
|
||||||
|
|
||||||
|
Protected m_dStartCut As Double
|
||||||
|
Public Property dStartCut As Double
|
||||||
|
Get
|
||||||
|
Return m_dStartCut
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
m_dStartCut = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#Region "CONSTRUCTORS"
|
||||||
|
|
||||||
|
Protected Sub New()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Function CreateNewBeamMachGroup() As MachGroupM
|
||||||
|
Return New MachGroupM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CreateBeamMachGroup(nId As Integer, sName As String, sMachine As String) As MachGroupM
|
||||||
|
Dim NewMachGroupM As New BeamMachGroupM
|
||||||
|
NewMachGroupM.m_Id = nId
|
||||||
|
NewMachGroupM.m_Name = sName
|
||||||
|
NewMachGroupM.m_Machine = sMachine
|
||||||
|
' NewMachGroupM.SetMachineType(MachineType.BEAM)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARLEN, NewMachGroupM.m_dL)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARHEIGHT, NewMachGroupM.m_dH)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARWIDTH, NewMachGroupM.m_dW)
|
||||||
|
NewMachGroupM.m_dTotMat = NewMachGroupM.m_dL
|
||||||
|
NewMachGroupM.m_PartMList = LoadParts(NewMachGroupM)
|
||||||
|
For Each Part As BeamM In NewMachGroupM.m_PartMList
|
||||||
|
Part.UpdateOffset()
|
||||||
|
NewMachGroupM.m_dMatForPart += Part.dL
|
||||||
|
Next
|
||||||
|
ReadMachGroupData(NewMachGroupM)
|
||||||
|
Return NewMachGroupM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CreateBeamMachGroup(sName As String, sMachine As String) As MachGroupM
|
||||||
|
Dim NewMachGroupM As New BeamMachGroupM
|
||||||
|
' Creo il nuovo gruppo di lavorazione con i dati ottenuti a seconda del caso in cui mi trovo
|
||||||
|
NewMachGroupM.m_Id = EgtAddMachGroup(sName, sMachine)
|
||||||
|
If NewMachGroupM.m_Id = GDB_ID.NULL Then Return Nothing
|
||||||
|
NewMachGroupM.m_Name = sName
|
||||||
|
NewMachGroupM.m_Machine = sMachine
|
||||||
|
'NewMachGroupM.SetMachineType(MachineType.BEAM)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARLEN, NewMachGroupM.m_dL)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARHEIGHT, NewMachGroupM.m_dH)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARWIDTH, NewMachGroupM.m_dW)
|
||||||
|
NewMachGroupM.m_dTotMat = NewMachGroupM.m_dL
|
||||||
|
For Each Part In NewMachGroupM.m_PartMList
|
||||||
|
NewMachGroupM.m_dMatForPart += Part.dL
|
||||||
|
Next
|
||||||
|
ReadMachGroupData(NewMachGroupM)
|
||||||
|
Return NewMachGroupM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTORS
|
||||||
|
|
||||||
|
#Region "X DataLayer"
|
||||||
|
|
||||||
|
Public Shared Function CreateBeamMachGroupDL(nId As Integer, sName As String, sMachine As String, PartMList As List(Of PartM)) As MachGroupM
|
||||||
|
Dim NewMachGroupM As New BeamMachGroupM
|
||||||
|
NewMachGroupM.m_Id = nId
|
||||||
|
NewMachGroupM.m_Name = sName
|
||||||
|
NewMachGroupM.m_Machine = sMachine
|
||||||
|
'NewMachGroupM.SetMachineType(MachineType.BEAM)
|
||||||
|
'EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARLEN, NewMachGroupM.m_dL)
|
||||||
|
'EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARHEIGHT, NewMachGroupM.m_dH)
|
||||||
|
'EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_BARWIDTH, NewMachGroupM.m_dW)
|
||||||
|
'NewMachGroupM.m_dTotMat = NewMachGroupM.m_dL
|
||||||
|
NewMachGroupM.m_PartMList = PartMList
|
||||||
|
Return NewMachGroupM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Shared Function LoadParts(NewBeamMachGroupM As BeamMachGroupM) As List(Of PartM)
|
||||||
|
Dim TempList As New List(Of PartM)
|
||||||
|
Dim nRawPartId As Integer = EgtGetFirstRawPart()
|
||||||
|
While nRawPartId <> GDB_ID.NULL
|
||||||
|
Dim nPartId As Integer = EgtGetFirstPartInRawPart(nRawPartId)
|
||||||
|
If nPartId <> GDB_ID.NULL Then
|
||||||
|
Dim NewBeam As BeamM = BeamM.CreateBeam(NewBeamMachGroupM, nPartId, nRawPartId)
|
||||||
|
TempList.Add(NewBeam)
|
||||||
|
End If
|
||||||
|
nRawPartId = EgtGetNextRawPart(nRawPartId)
|
||||||
|
End While
|
||||||
|
Return TempList
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshPartList()
|
||||||
|
' leggo StartCut da posizione primo pezzo
|
||||||
|
Dim sInfo As String = ""
|
||||||
|
Dim sSplitInfo() As String
|
||||||
|
Dim bFound As Boolean = False
|
||||||
|
EgtGetInfo(Id, MGR_RPT_PART & 1, sInfo)
|
||||||
|
If Not String.IsNullOrWhiteSpace(sInfo) Then
|
||||||
|
sSplitInfo = sInfo.Split(","c)
|
||||||
|
StringToDouble(sSplitInfo(1), m_dStartCut)
|
||||||
|
Else
|
||||||
|
m_dStartCut = 0
|
||||||
|
End If
|
||||||
|
' aggiorno lista pezzi
|
||||||
|
RemoveAllParts()
|
||||||
|
Dim nRawPartId As Integer = EgtGetFirstRawPart()
|
||||||
|
While nRawPartId <> GDB_ID.NULL
|
||||||
|
Dim nPartId As Integer = EgtGetFirstPartInRawPart(nRawPartId)
|
||||||
|
If nPartId <> GDB_ID.NULL Then
|
||||||
|
Dim NewBeam As BeamM = BeamM.CreateBeam(Me, nPartId, nRawPartId)
|
||||||
|
AddPart(NewBeam)
|
||||||
|
NewBeam.UpdateOffset()
|
||||||
|
End If
|
||||||
|
nRawPartId = EgtGetNextRawPart(nRawPartId)
|
||||||
|
End While
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshGroupData()
|
||||||
|
EgtGetInfo(Id, MGR_RPT_BARLEN, dL)
|
||||||
|
EgtGetInfo(Id, MGR_RPT_BARHEIGHT, dH)
|
||||||
|
EgtGetInfo(Id, MGR_RPT_BARWIDTH, dW)
|
||||||
|
EgtGetInfo(Id, MGR_RPT_MATERIAL, sMATERIAL)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -88,6 +88,7 @@ Public Class MyMachGroupPanelM
|
|||||||
Return Nothing
|
Return Nothing
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
' funzione che restituisce solo i gruppi di lavorazione creati nel nesting
|
' funzione che restituisce solo i gruppi di lavorazione creati nel nesting
|
||||||
Public Shared Function UpdateFromNestingMyMachGroups(MachineList As List(Of Machine)) As List(Of MachGroupM)
|
Public Shared Function UpdateFromNestingMyMachGroups(MachineList As List(Of Machine)) As List(Of MachGroupM)
|
||||||
Dim TempList As New List(Of MachGroupM)
|
Dim TempList As New List(Of MachGroupM)
|
||||||
@@ -214,6 +215,7 @@ Public Class MyMachGroupPanelM
|
|||||||
Dim DuploArray() As Integer
|
Dim DuploArray() As Integer
|
||||||
Dim RotArray(DuploList.Count) As Integer
|
Dim RotArray(DuploList.Count) As Integer
|
||||||
Dim FlipArray(DuploList.Count) As Integer
|
Dim FlipArray(DuploList.Count) As Integer
|
||||||
|
Dim QArray(DuploList.Count) As Dictionary(Of String, Dictionary(Of String, String))
|
||||||
DuploArray = DuploList.ToArray()
|
DuploArray = DuploList.ToArray()
|
||||||
' recupero ROT (gradi) e FLIP (0/1) per non perderli
|
' recupero ROT (gradi) e FLIP (0/1) per non perderli
|
||||||
For Duploindex = 0 To DuploArray.Length - 1
|
For Duploindex = 0 To DuploArray.Length - 1
|
||||||
@@ -223,6 +225,8 @@ Public Class MyMachGroupPanelM
|
|||||||
EgtGetInfo(DuploArray(Duploindex), MGR_PRT_FLIP, FlipArray(Duploindex))
|
EgtGetInfo(DuploArray(Duploindex), MGR_PRT_FLIP, FlipArray(Duploindex))
|
||||||
If FlipArray(Duploindex) <> 0 Then FlipArray(Duploindex) = 180
|
If FlipArray(Duploindex) <> 0 Then FlipArray(Duploindex) = 180
|
||||||
If nBWType = BWType.WALL Then
|
If nBWType = BWType.WALL Then
|
||||||
|
' salvo parametri Q
|
||||||
|
QArray(Duploindex) = New Dictionary(Of String, Dictionary(Of String, String))
|
||||||
' ciclo sugli outline
|
' ciclo sugli outline
|
||||||
nOutlineLayer = EgtGetFirstNameInGroup(DuploArray(Duploindex), OUTLINE)
|
nOutlineLayer = EgtGetFirstNameInGroup(DuploArray(Duploindex), OUTLINE)
|
||||||
If nOutlineLayer <> GDB_ID.NULL Then
|
If nOutlineLayer <> GDB_ID.NULL Then
|
||||||
@@ -245,10 +249,42 @@ Public Class MyMachGroupPanelM
|
|||||||
nPRId = nGlobPRId
|
nPRId = nGlobPRId
|
||||||
nGlobPRId += 1
|
nGlobPRId += 1
|
||||||
End If
|
End If
|
||||||
|
Dim sKey As String = nPRId & "." & nPRC
|
||||||
|
QArray(Duploindex).Add(sKey, New Dictionary(Of String, String))
|
||||||
|
For QIndex = 1 To 10
|
||||||
|
Dim QKey As String = "Q" & QIndex.ToString("D2")
|
||||||
|
Dim QValue As Integer = 0
|
||||||
|
If EgtGetInfo(nOutlineId, QKey, QValue) Then
|
||||||
|
QArray(Duploindex)(sKey).Add(QKey, QValue)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
End If
|
End If
|
||||||
nOutlineId = EgtGetNext(nOutlineId)
|
nOutlineId = EgtGetNext(nOutlineId)
|
||||||
End While
|
End While
|
||||||
End If
|
End If
|
||||||
|
' ciclo sulle feature
|
||||||
|
Dim nFeatureLayer As Integer = EgtGetFirstNameInGroup(DuploArray(Duploindex), PROCESSINGS)
|
||||||
|
If nFeatureLayer <> GDB_ID.NULL Then
|
||||||
|
Dim nFeatureId As Integer = EgtGetFirstInGroup(nFeatureLayer)
|
||||||
|
While nFeatureId <> GDB_ID.NULL
|
||||||
|
' verifico che sia feature
|
||||||
|
Dim nPRC As Integer
|
||||||
|
If EgtGetInfo(nFeatureId, MGR_FTR_PRC, nPRC) Then
|
||||||
|
nPRId = 0
|
||||||
|
EgtGetInfo(nFeatureId, MGR_FTR_PRID, nPRId)
|
||||||
|
Dim sKey As String = nPRId & "." & nPRC
|
||||||
|
QArray(Duploindex).Add(sKey, New Dictionary(Of String, String))
|
||||||
|
For QIndex = 1 To 10
|
||||||
|
Dim QKey As String = "Q" & QIndex.ToString("D2")
|
||||||
|
Dim QValue As Integer = 0
|
||||||
|
If EgtGetInfo(nFeatureId, QKey, QValue) Then
|
||||||
|
QArray(Duploindex)(sKey).Add(QKey, QValue)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
nFeatureId = EgtGetNext(nFeatureId)
|
||||||
|
End While
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
' aggiornamento dei Duplo
|
' aggiornamento dei Duplo
|
||||||
@@ -258,13 +294,55 @@ Public Class MyMachGroupPanelM
|
|||||||
' ripristino info rot e flip
|
' ripristino info rot e flip
|
||||||
EgtSetInfo(DuploArray(Duploindex), MGR_PRT_ROT, RotArray(Duploindex))
|
EgtSetInfo(DuploArray(Duploindex), MGR_PRT_ROT, RotArray(Duploindex))
|
||||||
EgtSetInfo(DuploArray(Duploindex), MGR_PRT_FLIP, FlipArray(Duploindex))
|
EgtSetInfo(DuploArray(Duploindex), MGR_PRT_FLIP, FlipArray(Duploindex))
|
||||||
|
If nBWType = BWType.WALL Then
|
||||||
|
' ciclo sugli outline
|
||||||
|
nOutlineLayer = EgtGetFirstNameInGroup(DuploArray(Duploindex), OUTLINE)
|
||||||
|
If nOutlineLayer <> GDB_ID.NULL Then
|
||||||
|
Dim nOutlineId As Integer = EgtGetFirstInGroup(nOutlineLayer)
|
||||||
|
While nOutlineId <> GDB_ID.NULL
|
||||||
|
' verifico che sia feature
|
||||||
|
Dim nPRC As Integer
|
||||||
|
If EgtGetInfo(nOutlineId, MGR_FTR_PRC, nPRC) Then
|
||||||
|
nPRId = 0
|
||||||
|
EgtGetInfo(nOutlineId, MGR_FTR_PRID, nPRId)
|
||||||
|
Dim sKey As String = nPRId & "." & nPRC
|
||||||
|
' ripristino parametri Q
|
||||||
|
If QArray(Duploindex).ContainsKey(sKey) Then
|
||||||
|
For Each QPar In QArray(Duploindex)(sKey)
|
||||||
|
EgtSetInfo(nOutlineId, QPar.Key, QPar.Value)
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
nOutlineId = EgtGetNext(nOutlineId)
|
||||||
|
End While
|
||||||
|
End If
|
||||||
|
' ciclo sulle feature
|
||||||
|
Dim nFeatureLayer As Integer = EgtGetFirstNameInGroup(DuploArray(Duploindex), PROCESSINGS)
|
||||||
|
If nFeatureLayer <> GDB_ID.NULL Then
|
||||||
|
Dim nFeatureId As Integer = EgtGetFirstInGroup(nFeatureLayer)
|
||||||
|
While nFeatureId <> GDB_ID.NULL
|
||||||
|
' verifico che sia feature
|
||||||
|
Dim nPRC As Integer
|
||||||
|
If EgtGetInfo(nFeatureId, MGR_FTR_PRC, nPRC) Then
|
||||||
|
nPRId = 0
|
||||||
|
EgtGetInfo(nFeatureId, MGR_FTR_PRID, nPRId)
|
||||||
|
Dim sKey As String = nPRId & "." & nPRC
|
||||||
|
' ripristino parametri Q
|
||||||
|
If QArray(Duploindex).ContainsKey(sKey) Then
|
||||||
|
For Each QPar In QArray(Duploindex)(sKey)
|
||||||
|
EgtSetInfo(nFeatureId, QPar.Key, QPar.Value)
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
nFeatureId = EgtGetNext(nFeatureId)
|
||||||
|
End While
|
||||||
|
End If
|
||||||
|
End If
|
||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub SetDuploModified(nPartId As Integer)
|
Public Shared Sub SetDuploModified(nPartId As Integer)
|
||||||
Dim nDuploCount As Integer = 0
|
If Configuration.bOnlyProd Then
|
||||||
EgtDuploCount(nPartId, nDuploCount)
|
|
||||||
If nDuploCount > 0 Then
|
|
||||||
' segno modificato e aggiorno duplo
|
' segno modificato e aggiorno duplo
|
||||||
EgtDuploSetModified(nPartId)
|
EgtDuploSetModified(nPartId)
|
||||||
UpdateDuplo(nPartId)
|
UpdateDuplo(nPartId)
|
||||||
@@ -275,6 +353,8 @@ Public Class MyMachGroupPanelM
|
|||||||
For Each CurrMachGroup As MyMachGroupVM In DuploList
|
For Each CurrMachGroup As MyMachGroupVM In DuploList
|
||||||
CurrMachGroup.RefreshMachGroup()
|
CurrMachGroup.RefreshMachGroup()
|
||||||
Next
|
Next
|
||||||
|
Else
|
||||||
|
EgtDuploSetModified(nPartId)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,110 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class WallM
|
||||||
|
Inherits PartM
|
||||||
|
|
||||||
|
Protected m_dPOSY As Double
|
||||||
|
Public Property dPOSY As Double
|
||||||
|
Get
|
||||||
|
Return m_dPOSY
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
m_dPOSY = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Protected m_dROT As Double
|
||||||
|
Public Property dROT As Double
|
||||||
|
Get
|
||||||
|
Return m_dROT
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
m_dROT = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Protected m_bFLIP As Boolean
|
||||||
|
Public Property bFLIP As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bFLIP
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_bFLIP = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Protected Sub New(nParentMachGroup As MyMachGroupM, nPartId As Integer)
|
||||||
|
MyBase.New(nParentMachGroup, nPartId)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Function CreateWall(nParentMachGroup As MyMachGroupM, nPartId As Integer, nRawPartId As Integer) As WallM
|
||||||
|
Dim NewWallM As New WallM(nParentMachGroup, nPartId)
|
||||||
|
' leggo info pezzo
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_PROJ, NewWallM.m_nProjId)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_PDN, NewWallM.m_nPDN)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_NAM, NewWallM.m_sNAM)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_L, NewWallM.m_dBtlL)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_W, NewWallM.m_dBtlW)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_H, NewWallM.m_dBtlH)
|
||||||
|
EgtGetInfo(nPartId, BTL_PRT_CNT, NewWallM.m_nCNT)
|
||||||
|
Dim nTemp As Integer = 0
|
||||||
|
If Not EgtGetInfo(nPartId, BTL_PRT_ROTATED, nTemp) Then
|
||||||
|
nTemp = 0
|
||||||
|
End If
|
||||||
|
NewWallM.SetRotated(nTemp)
|
||||||
|
If Not EgtGetInfo(nPartId, BTL_PRT_INVERTED, nTemp) Then
|
||||||
|
nTemp = 0
|
||||||
|
End If
|
||||||
|
NewWallM.SetInverted(nTemp)
|
||||||
|
' leggo PosX, PosY, Rot e Flip
|
||||||
|
EgtGetInfo(nPartId, MGR_PRT_POSX, NewWallM.m_dPOSX)
|
||||||
|
EgtGetInfo(nPartId, MGR_PRT_POSY, NewWallM.m_dPOSY)
|
||||||
|
EgtGetInfo(nPartId, MGR_PRT_ROT, NewWallM.m_dROT)
|
||||||
|
EgtGetInfo(nPartId, MGR_PRT_FLIP, NewWallM.m_bFLIP)
|
||||||
|
' leggo feature
|
||||||
|
NewWallM.m_FeatureMList = LoadBTLFeatures(nPartId)
|
||||||
|
ReadMachGroupData(NewWallM)
|
||||||
|
Return NewWallM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Private Shared Function LoadBTLFeatures(nPartId As Integer) As List(Of BTLFeatureM)
|
||||||
|
Dim TempList As New List(Of BTLFeatureM)
|
||||||
|
' Aggiungo outline
|
||||||
|
Dim nOutLayerId As Integer = EgtGetFirstNameInGroup(nPartId, OUTLINE)
|
||||||
|
Dim nOutlineId As Integer = EgtGetFirstInGroup(nOutLayerId)
|
||||||
|
While nOutlineId <> GDB_ID.NULL
|
||||||
|
' verifico che sia una feature
|
||||||
|
Dim nGRP As Integer
|
||||||
|
If EgtGetInfo(nOutlineId, BTL_FTR_GRP, nGRP) AndAlso Not EgtExistsInfo(nOutlineId, BTL_FTR_MAINID) Then
|
||||||
|
' creo la feature
|
||||||
|
TempList.Add(BTLFeatureM.CreateBTLFeature(Nothing, nOutlineId))
|
||||||
|
End If
|
||||||
|
nOutlineId = EgtGetNext(nOutlineId)
|
||||||
|
End While
|
||||||
|
' Aggiungo feature
|
||||||
|
Dim nProcessingId As Integer = EgtGetFirstNameInGroup(nPartId, PROCESSINGS)
|
||||||
|
Dim nFeatureId As Integer = EgtGetFirstInGroup(nProcessingId)
|
||||||
|
While nFeatureId <> GDB_ID.NULL
|
||||||
|
' verifico che sia una feature
|
||||||
|
Dim nGRP As Integer
|
||||||
|
If EgtGetInfo(nFeatureId, BTL_FTR_GRP, nGRP) AndAlso Not EgtExistsInfo(nFeatureId, BTL_FTR_MAINID) Then
|
||||||
|
' creo la feature
|
||||||
|
TempList.Add(BTLFeatureM.CreateBTLFeature(Nothing, nFeatureId))
|
||||||
|
End If
|
||||||
|
nFeatureId = EgtGetNext(nFeatureId)
|
||||||
|
End While
|
||||||
|
Return TempList
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class WallMachGroupM
|
||||||
|
Inherits MyMachGroupM
|
||||||
|
|
||||||
|
Protected m_nRawPartId As Integer = GDB_ID.NULL
|
||||||
|
Public ReadOnly Property nRawPartId As Integer
|
||||||
|
Get
|
||||||
|
Return m_nRawPartId
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#Region "CONSTRUCTORS"
|
||||||
|
|
||||||
|
Protected Sub New()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Function CreateNewWallMachGroup() As MachGroupM
|
||||||
|
Return New MachGroupM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CreateWallMachGroup(nId As Integer, sName As String, sMachine As String) As MachGroupM
|
||||||
|
Dim NewMachGroupM As New WallMachGroupM
|
||||||
|
NewMachGroupM.m_Id = nId
|
||||||
|
NewMachGroupM.m_Name = sName
|
||||||
|
NewMachGroupM.m_Machine = sMachine
|
||||||
|
NewMachGroupM.m_nType = MachineType.WALL
|
||||||
|
NewMachGroupM.m_nRawPartId = EgtGetFirstRawPart()
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_PANELLEN, NewMachGroupM.m_dL)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_PANELWIDTH, NewMachGroupM.m_dW)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_PANELHEIGHT, NewMachGroupM.m_dH)
|
||||||
|
NewMachGroupM.m_dTotMat = NewMachGroupM.m_dL * NewMachGroupM.m_dW
|
||||||
|
NewMachGroupM.m_PartMList = LoadParts(NewMachGroupM)
|
||||||
|
For Each Part In NewMachGroupM.m_PartMList
|
||||||
|
NewMachGroupM.m_dMatForPart += (Part.dL * Part.dW)
|
||||||
|
Next
|
||||||
|
ReadMachGroupData(NewMachGroupM)
|
||||||
|
Return NewMachGroupM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CreateWallMachGroup(sName As String, sMachine As String) As MachGroupM
|
||||||
|
Dim NewMachGroupM As New WallMachGroupM
|
||||||
|
' Creo il nuovo gruppo di lavorazione con i dati ottenuti a seconda del caso in cui mi trovo
|
||||||
|
NewMachGroupM.m_Id = EgtAddMachGroup(sName, sMachine)
|
||||||
|
If NewMachGroupM.m_Id = GDB_ID.NULL Then Return Nothing
|
||||||
|
NewMachGroupM.m_Name = sName
|
||||||
|
NewMachGroupM.m_Machine = sMachine
|
||||||
|
NewMachGroupM.m_nType = MachineType.WALL
|
||||||
|
NewMachGroupM.m_nRawPartId = EgtGetFirstRawPart()
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_PANELLEN, NewMachGroupM.m_dL)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_PANELWIDTH, NewMachGroupM.m_dW)
|
||||||
|
EgtGetInfo(NewMachGroupM.m_Id, MGR_RPT_PANELHEIGHT, NewMachGroupM.m_dH)
|
||||||
|
NewMachGroupM.m_dTotMat = NewMachGroupM.m_dL * NewMachGroupM.m_dW
|
||||||
|
For Each Part In NewMachGroupM.m_PartMList
|
||||||
|
NewMachGroupM.m_dMatForPart += (Part.dL * Part.dW)
|
||||||
|
Next
|
||||||
|
ReadMachGroupData(NewMachGroupM)
|
||||||
|
Return NewMachGroupM
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTORS
|
||||||
|
|
||||||
|
Private Shared Function LoadParts(NewWallMachGroupM As WallMachGroupM) As List(Of PartM)
|
||||||
|
Dim TempList As New List(Of PartM)
|
||||||
|
Dim nWallId As Integer = EgtGetFirstPartInRawPart(NewWallMachGroupM.m_nRawPartId)
|
||||||
|
While nWallId <> GDB_ID.NULL
|
||||||
|
If nWallId <> GDB_ID.NULL Then
|
||||||
|
Dim NewWall As WallM = WallM.CreateWall(NewWallMachGroupM, nWallId, NewWallMachGroupM.m_nRawPartId)
|
||||||
|
TempList.Add(NewWall)
|
||||||
|
End If
|
||||||
|
nWallId = EgtGetNextPartInRawPart(nWallId)
|
||||||
|
End While
|
||||||
|
Return TempList
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshPartList()
|
||||||
|
' aggiorno lista pezzi
|
||||||
|
RemoveAllParts()
|
||||||
|
Dim nRawPartId As Integer = EgtGetFirstRawPart()
|
||||||
|
If nRawPartId <> GDB_ID.NULL Then
|
||||||
|
Me.m_nRawPartId = nRawPartId
|
||||||
|
End If
|
||||||
|
Dim nWallId As Integer = EgtGetFirstPartInRawPart(m_nRawPartId)
|
||||||
|
While nWallId <> GDB_ID.NULL
|
||||||
|
If nWallId <> GDB_ID.NULL Then
|
||||||
|
Dim NewWall As WallM = WallM.CreateWall(Me, nWallId, m_nRawPartId)
|
||||||
|
AddPart(NewWall)
|
||||||
|
End If
|
||||||
|
nWallId = EgtGetNextPartInRawPart(nWallId)
|
||||||
|
End While
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshGroupData()
|
||||||
|
EgtGetInfo(Id, MGR_RPT_PANELLEN, dL)
|
||||||
|
EgtGetInfo(Id, MGR_RPT_PANELWIDTH, dW)
|
||||||
|
EgtGetInfo(Id, MGR_RPT_PANELHEIGHT, dH)
|
||||||
|
EgtGetInfo(Id, MGR_RPT_MATERIAL, sMATERIAL)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.Collections.Specialized
|
||||||
|
Imports System.ComponentModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtBEAMWALL.Core
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public MustInherit Class BeamMachGroupVM
|
||||||
|
Inherits MyMachGroupVM
|
||||||
|
|
||||||
|
Public ReadOnly Property m_BeamMachGroupM As BeamMachGroupM
|
||||||
|
Get
|
||||||
|
Return m_MachGroupM
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Overridable Property sStartCut As String
|
||||||
|
Get
|
||||||
|
Return LenToString(m_BeamMachGroupM.dStartCut, 3)
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
StringToLen(value, m_BeamMachGroupM.dStartCut)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Public Property dStartCut As Double
|
||||||
|
Get
|
||||||
|
Return m_BeamMachGroupM.dStartCut
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
m_BeamMachGroupM.dStartCut = value
|
||||||
|
NotifyPropertyChanged(NameOf(sStartCut))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property SelBeam As BeamVM
|
||||||
|
Get
|
||||||
|
Return m_SelPart
|
||||||
|
End Get
|
||||||
|
Set(value As BeamVM)
|
||||||
|
m_SelPart = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#Region "CONSTRUCTORS"
|
||||||
|
|
||||||
|
Sub New(BeamMachGroupM As BeamMachGroupM)
|
||||||
|
MyBase.New(BeamMachGroupM)
|
||||||
|
AddHandler m_BeamMachGroupM.PartAdded, AddressOf OnBeamAdded
|
||||||
|
AddHandler m_BeamMachGroupM.PartRemoved, AddressOf OnBeamRemoved
|
||||||
|
CreateBeamVMList()
|
||||||
|
' Aggiorno stato da stati feature
|
||||||
|
CalcGlobalUpdate()
|
||||||
|
NotifyPropertyChanged(NameOf(CALC_FALL_Visibility))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTORS
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Protected MustOverride Sub CreateBeamVMList()
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshPartList()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshGroupData()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Protected MustOverride Sub OnBeamAdded(sender As Object, e As PartAddedEventArgs)
|
||||||
|
Private Sub OnBeamRemoved(sender As Object, e As PartAddedEventArgs)
|
||||||
|
Dim BeamVM As BeamVM = PartVMList.FirstOrDefault(Function(x) x.PartM Is e.m_NewPart)
|
||||||
|
If Not IsNothing(BeamVM) Then PartVMList.Remove(BeamVM)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub OnBeamVMListChanged(sender As Object, e As NotifyCollectionChangedEventArgs)
|
||||||
|
If e.Action = NotifyCollectionChangedAction.Add Then
|
||||||
|
If Not IsNothing(e.NewItems) AndAlso e.NewItems.Count > 0 Then
|
||||||
|
For Each BeamVM As BeamVM In e.NewItems
|
||||||
|
AddHandler BeamVM.PropertyChanged, AddressOf OnBeamVMPropertyChanged
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
If e.Action = NotifyCollectionChangedAction.Remove Then
|
||||||
|
If Not IsNothing(e.OldItems) AndAlso e.OldItems.Count > 0 Then
|
||||||
|
For Each BeamVM As BeamVM In e.OldItems
|
||||||
|
RemoveHandler BeamVM.PropertyChanged, AddressOf OnBeamVMPropertyChanged
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
If e.Action = NotifyCollectionChangedAction.Move Then
|
||||||
|
Dim ItemVM As PartVM = e.OldItems(0)
|
||||||
|
m_BeamMachGroupM.PartMList.RemoveAt(e.OldStartingIndex)
|
||||||
|
m_BeamMachGroupM.PartMList.Insert(e.NewStartingIndex, ItemVM.PartM)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overridable Sub OnBeamVMPropertyChanged(sender As Object, e As PropertyChangedEventArgs)
|
||||||
|
'Select Case e.PropertyName
|
||||||
|
' Case NameOf(sender.nSelGRP), NameOf(sender.nSelSIDE)
|
||||||
|
'End Select
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtBEAMWALL.Core
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public MustInherit Class BeamVM
|
||||||
|
Inherits PartVM
|
||||||
|
|
||||||
|
Public ReadOnly Property m_BeamM As BeamM
|
||||||
|
Get
|
||||||
|
Return m_PartM
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Overridable Property sOffset As String
|
||||||
|
Get
|
||||||
|
Return LenToString(m_BeamM.dOffset, 3)
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
StringToLen(value, m_BeamM.dOffset)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property dOffset As Double
|
||||||
|
Get
|
||||||
|
Return m_BeamM.dOffset
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New(BeamM As BeamM, ParentMachGroupVM As BeamMachGroupVM)
|
||||||
|
MyBase.New(BeamM, ParentMachGroupVM)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -538,7 +538,6 @@ Public MustInherit Class MyMachGroupVM
|
|||||||
MyMachGroupM.nCALC_ROT = 0
|
MyMachGroupM.nCALC_ROT = 0
|
||||||
MyMachGroupM.nCALC_FALL = 0
|
MyMachGroupM.nCALC_FALL = 0
|
||||||
MyMachGroupM.sCALC_MSG = ""
|
MyMachGroupM.sCALC_MSG = ""
|
||||||
MyMachGroupM.nCALC_TIME = 0
|
|
||||||
NotifyPropertyChanged(NameOf(Calc_Background))
|
NotifyPropertyChanged(NameOf(Calc_Background))
|
||||||
NotifyPropertyChanged(NameOf(CALC_FALL_Visibility))
|
NotifyPropertyChanged(NameOf(CALC_FALL_Visibility))
|
||||||
NotifyPropertyChanged(NameOf(CALC_ROT_Visibility))
|
NotifyPropertyChanged(NameOf(CALC_ROT_Visibility))
|
||||||
|
|||||||
@@ -195,14 +195,9 @@ Public MustInherit Class PartVM
|
|||||||
Return m_SelFeatureVM
|
Return m_SelFeatureVM
|
||||||
End Get
|
End Get
|
||||||
Set(value As BTLFeatureVM)
|
Set(value As BTLFeatureVM)
|
||||||
If Not IsNothing(m_SelFeatureVM) Then
|
|
||||||
Dim OldSelFeatureVM As BTLFeatureVM = m_SelFeatureVM
|
|
||||||
EgtResetMark(OldSelFeatureVM.nFeatureId)
|
|
||||||
End If
|
|
||||||
m_SelFeatureVM = value
|
m_SelFeatureVM = value
|
||||||
If Not IsNothing(m_SelFeatureVM) Then
|
If Not IsNothing(m_SelFeatureVM) Then
|
||||||
DirectCast(m_SelFeatureVM, BTLFeatureVM).SelGeomFeature()
|
DirectCast(m_SelFeatureVM, BTLFeatureVM).SelGeomFeature()
|
||||||
EgtSetMark(m_SelFeatureVM.nFeatureId)
|
|
||||||
Else
|
Else
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
End If
|
End If
|
||||||
@@ -483,12 +478,6 @@ Public MustInherit Class PartVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public ReadOnly Property ButtonIsEnabled As Boolean
|
|
||||||
Get
|
|
||||||
Return m_PartM.nProductionState < ItemState.Assigned
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region ' Supervisor
|
#End Region ' Supervisor
|
||||||
|
|
||||||
' definizione comandi
|
' definizione comandi
|
||||||
|
|||||||
@@ -0,0 +1,78 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.Collections.Specialized
|
||||||
|
Imports System.ComponentModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtBEAMWALL.Core
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public MustInherit Class WallMachGroupVM
|
||||||
|
Inherits MyMachGroupVM
|
||||||
|
|
||||||
|
Public ReadOnly Property m_WallMachGroupM As WallMachGroupM
|
||||||
|
Get
|
||||||
|
Return m_MachGroupM
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#Region "CONSTRUCTORS"
|
||||||
|
|
||||||
|
Sub New(WallMachGroupM As WallMachGroupM)
|
||||||
|
MyBase.New(WallMachGroupM)
|
||||||
|
AddHandler m_WallMachGroupM.PartAdded, AddressOf OnWallAdded
|
||||||
|
AddHandler m_WallMachGroupM.PartRemoved, AddressOf OnWallRemoved
|
||||||
|
CreateWallVMList()
|
||||||
|
' Aggiorno stato da stati feature
|
||||||
|
CalcGlobalUpdate()
|
||||||
|
NotifyPropertyChanged(NameOf(CALC_FALL_Visibility))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTORS
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Protected MustOverride Sub CreateWallVMList()
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshPartList()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub RefreshGroupData()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Protected MustOverride Sub OnWallAdded(sender As Object, e As PartAddedEventArgs)
|
||||||
|
|
||||||
|
Private Sub OnWallRemoved(sender As Object, e As PartAddedEventArgs)
|
||||||
|
Dim WallVM As WallVM = PartVMList.FirstOrDefault(Function(x) x.PartM Is e.m_NewPart)
|
||||||
|
If Not IsNothing(WallVM) Then PartVMList.Remove(WallVM)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub OnWallVMListChanged(sender As Object, e As NotifyCollectionChangedEventArgs)
|
||||||
|
If Not IsNothing(e.NewItems) AndAlso e.NewItems.Count > 0 Then
|
||||||
|
For Each WallVM As WallVM In e.NewItems
|
||||||
|
AddHandler WallVM.PropertyChanged, AddressOf OnWallVMPropertyChanged
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
If Not IsNothing(e.OldItems) AndAlso e.OldItems.Count > 0 Then
|
||||||
|
For Each WallVM As WallVM In e.OldItems
|
||||||
|
RemoveHandler WallVM.PropertyChanged, AddressOf OnWallVMPropertyChanged
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub OnWallVMPropertyChanged(sender As Object, e As PropertyChangedEventArgs)
|
||||||
|
'Select Case e.PropertyName
|
||||||
|
' Case NameOf(sender.nSelGRP), NameOf(sender.nSelSIDE)
|
||||||
|
'End Select
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports System.Windows.Input
|
||||||
|
Imports EgtBEAMWALL.Core
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public MustInherit Class WallVM
|
||||||
|
Inherits PartVM
|
||||||
|
|
||||||
|
Public ReadOnly Property m_WallM As WallM
|
||||||
|
Get
|
||||||
|
Return m_PartM
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Overrides Property sPOSX As String
|
||||||
|
Get
|
||||||
|
Return LenToString(m_WallM.dPOSX, 3)
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
StringToLen(value, m_WallM.dPOSX)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Overridable Property sPOSY As String
|
||||||
|
Get
|
||||||
|
Return LenToString(m_WallM.dPOSY, 3)
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
StringToLen(value, m_WallM.dPOSY)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property dPOSY As Double
|
||||||
|
Get
|
||||||
|
Return m_WallM.dPOSY
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property sROT As String
|
||||||
|
Get
|
||||||
|
Return LenToString(m_WallM.dROT, 3) & "°"
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
StringToLen(value, m_WallM.dROT)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property dROT As Double
|
||||||
|
Get
|
||||||
|
Return m_WallM.dROT
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Overridable Property bFLIP As Boolean
|
||||||
|
Get
|
||||||
|
Return m_WallM.bFLIP
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_WallM.bFLIP = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New(WallM As WallM, ParentMachGroupVM As WallMachGroupVM)
|
||||||
|
MyBase.New(WallM, ParentMachGroupVM)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -8,34 +8,42 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Grid Style="{StaticResource CalcPanel_Grid}">
|
<Grid Margin="0,0,5,0">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="Macchina corrente"
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="Macchina corrente" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
||||||
Style="{StaticResource CurrMach_TextBlock}"/>
|
|
||||||
<!--Combobox per selezionare la macchina corrente-->
|
<!--Combobox per selezionare la macchina corrente-->
|
||||||
<ComboBox Grid.Column="1"
|
<ComboBox ItemsSource="{Binding Path=MachineList}" DisplayMemberPath="Name"
|
||||||
ItemsSource="{Binding Path=MachineList}" DisplayMemberPath="Name"
|
|
||||||
SelectedItem="{Binding Path=SelectedMachine}" SelectedValuePath="Name"
|
SelectedItem="{Binding Path=SelectedMachine}" SelectedValuePath="Name"
|
||||||
Style="{StaticResource CalcPanel_ComboBox}"/>
|
Height="22" Width="150"
|
||||||
|
Grid.Row="0" Grid.Column="1"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<StackPanel Grid.Column="1"
|
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||||
Style="{StaticResource MachinePanel_StackPanel}">
|
<Button Command="{Binding ToolDbCommand}" ToolTip="{Binding ToolDBToolTip}"
|
||||||
<Button Content="{Binding ToolDBMsg}"
|
Style="{StaticResource ToolBar_TextButton}" Content="{Binding ToolDBMsg}"/>
|
||||||
ToolTip="{Binding ToolDBToolTip}"
|
<Button Command="{Binding MachDbCommand}" ToolTip="{Binding MachiningDbToolTip}"
|
||||||
Command="{Binding ToolDbCommand}"
|
Style="{StaticResource ToolBar_TextButton}" Margin="5,0,0,0" Content="{Binding MachiningDbMsg}"/>
|
||||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
<Button Command="{Binding SetUpCommand}" ToolTip="{Binding SetUpToolTip}"
|
||||||
<Button Content="{Binding SetUpMsg}"
|
Style="{StaticResource ToolBar_TextButton}" Margin="5,0,0,0" Content="{Binding SetUpMsg}"
|
||||||
Command="{Binding SetUpCommand}"
|
|
||||||
ToolTip="{Binding SetUpToolTip}"
|
|
||||||
Style="{StaticResource GeneralConfiguration_Button}"
|
|
||||||
Visibility="{Binding SetUp_Visibility}"/>
|
Visibility="{Binding SetUp_Visibility}"/>
|
||||||
|
<Button ToolTip="{Binding BeamTable_ToolTip}"
|
||||||
|
Style="{StaticResource ToolBar_Button}" Margin="5,0,0,0"
|
||||||
|
Command="{Binding BeamTable_Command}"
|
||||||
|
Visibility="{Binding BeamTable_Visibility}">
|
||||||
|
<Image Source="/Resources/Configuration/MachiningsTable.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="{Binding WallTable_ToolTip}"
|
||||||
|
Style="{StaticResource ToolBar_Button}" Margin="5,0,0,0"
|
||||||
|
Command="{Binding WallTable_Command}"
|
||||||
|
Visibility="{Binding WallTable_Visibility}">
|
||||||
|
<Image Source="/Resources/Configuration/MachiningsTable.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
<Button Content="{Binding ParameterMachineMsg}"
|
<Button Content="{Binding ParameterMachineMsg}"
|
||||||
ToolTip="{Binding ParameterMachineMsg}"
|
ToolTip="{Binding ParameterMachineMsg}"
|
||||||
Command="{Binding ParameterMachine_Command}"
|
Command="{Binding ParameterMachine_Command}"
|
||||||
Style="{StaticResource ParameterMachine_Button}"/>
|
Height="30" Width="120" Margin="5,0,0,0" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -0,0 +1,357 @@
|
|||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports EgtBEAMWALL.Core
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class MachinePanelVM
|
||||||
|
Inherits EgtWPFLib5.MachinePanelVM
|
||||||
|
|
||||||
|
#Region "FIELDS & PROPERTIES"
|
||||||
|
|
||||||
|
' Radice del direttorio delle macchine
|
||||||
|
Private m_sMachinesRoot As String
|
||||||
|
|
||||||
|
' Macchina correntemente selezionata e quindi attiva
|
||||||
|
Private m_SelectedMachine As Machine = Nothing
|
||||||
|
Public Overrides Property SelectedMachine As Machine
|
||||||
|
Get
|
||||||
|
Return m_SelectedMachine
|
||||||
|
End Get
|
||||||
|
Set(value As Machine)
|
||||||
|
If value IsNot m_SelectedMachine Then
|
||||||
|
' imposto macchina in DbGeometrico
|
||||||
|
If Not IsNothing(value) AndAlso EgtSetCurrMachine(value.Name) Then
|
||||||
|
m_SelectedMachine = value
|
||||||
|
End If
|
||||||
|
' Salvo impostazione macchina corrente
|
||||||
|
SaveCurrentMachine()
|
||||||
|
NotifyPropertyChanged(NameOf(SelectedMachine))
|
||||||
|
' inizializzo la macchina selezionata come macchina corrente
|
||||||
|
Dim nMachType As MachineType = DirectCast(m_SelectedMachine, MyMachine).nType
|
||||||
|
SectionXMaterial.SetType(nMachType)
|
||||||
|
If Not IsNothing(value) Then
|
||||||
|
InitCurrentMachine(Map.refMainWindowVM.MainWindowM.sMachinesRoot, value.Name, nMachType)
|
||||||
|
Else
|
||||||
|
InitCurrentMachine(Map.refMainWindowVM.MainWindowM.sMachinesRoot, m_SelectedMachine.Name, nMachType)
|
||||||
|
End If
|
||||||
|
' mostro bottone tabella beam o wall a seconda del tipo
|
||||||
|
m_BeamTable_Visibility = If(nMachType = MachineType.BEAM OrElse nMachType = MachineType.BOTH, Visibility.Visible, Visibility.Collapsed)
|
||||||
|
m_WallTable_Visibility = If(nMachType = MachineType.WALL OrElse nMachType = MachineType.BOTH, Visibility.Visible, Visibility.Collapsed)
|
||||||
|
NotifyPropertyChanged(NameOf(BeamTable_Visibility))
|
||||||
|
NotifyPropertyChanged(NameOf(WallTable_Visibility))
|
||||||
|
' carico i Parametri Q da mostrare (Beam, Wall o entrambi) in base al tipo di macchina selezionata
|
||||||
|
If Not IsNothing(Map.refConfigurationPageVM) Then
|
||||||
|
' carico i parametri Q dei Process letti dall'ini
|
||||||
|
Map.refConfigurationPageVM.GetQParamsList()
|
||||||
|
' carico la lista di tutti i parametri Q ciclando su ogni Process di PRCList
|
||||||
|
If Not IsNothing(Map.refConfigurationPageVM.QBTLParamVMList) Then
|
||||||
|
Map.refConfigurationPageVM.QBTLParamVMList.Clear()
|
||||||
|
End If
|
||||||
|
For Each PRCItem In Map.refConfigurationPageVM.PRCList
|
||||||
|
For Each QBTLParam In PRCItem.QBTLParamVMList
|
||||||
|
Map.refConfigurationPageVM.QBTLParamVMList.Add(QBTLParam)
|
||||||
|
Next
|
||||||
|
Next
|
||||||
|
NotifyPropertyChanged(NameOf(Map.refConfigurationPageVM.QBTLParamVMList))
|
||||||
|
End If
|
||||||
|
' aggiorno nome macchina in statusbar
|
||||||
|
Map.refMyStatusBarVM.RefreshMachName()
|
||||||
|
End If
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_MachPanel_IsEnabled As Boolean = True
|
||||||
|
Public Property MachPanel_IsEnabled As Boolean
|
||||||
|
Get
|
||||||
|
Return m_MachPanel_IsEnabled
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_MachPanel_IsEnabled = value
|
||||||
|
NotifyPropertyChanged("MachPanel_IsEnabled")
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_BeamTable_Visibility As Visibility
|
||||||
|
Public ReadOnly Property BeamTable_Visibility As Visibility
|
||||||
|
Get
|
||||||
|
Return m_BeamTable_Visibility
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_WallTable_Visibility As Visibility
|
||||||
|
Public ReadOnly Property WallTable_Visibility As Visibility
|
||||||
|
Get
|
||||||
|
Return m_WallTable_Visibility
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property SetUp_Visibility As Visibility
|
||||||
|
Get
|
||||||
|
Return If(Map.refMainWindowVM.MainWindowM.bModifySetup, Visibility.Visible, Visibility.Collapsed)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
#Region "Messages"
|
||||||
|
|
||||||
|
Public ReadOnly Property ToolDBMsg As String
|
||||||
|
Get
|
||||||
|
Return EgtMsg(MSG_MACHINEPAGEUC + 6)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property MachiningDbMsg As String
|
||||||
|
Get
|
||||||
|
Return EgtMsg(MSG_MACHINEPAGEUC + 7)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property SetUpMsg As String
|
||||||
|
Get
|
||||||
|
Return EgtMsg(MSG_ALARMSPAGEUC + 33)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' Messages
|
||||||
|
|
||||||
|
#Region "ToolTip"
|
||||||
|
|
||||||
|
Public ReadOnly Property ToolDBToolTip As String
|
||||||
|
Get
|
||||||
|
Return EgtMsg(5003)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property MachiningDbToolTip As String
|
||||||
|
Get
|
||||||
|
Return EgtMsg(5004)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property SetUpToolTip As String
|
||||||
|
Get
|
||||||
|
Return EgtMsg(31501)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' ToolTip
|
||||||
|
|
||||||
|
' Definizione comandi
|
||||||
|
Private m_cmdBeamTable As ICommand
|
||||||
|
Private m_cmdWallTable As ICommand
|
||||||
|
|
||||||
|
#End Region 'FIELDS & PROPERTIES
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
' Creo riferimento a questa classe in Map
|
||||||
|
Map.SetRefMachinePanelVM(Me)
|
||||||
|
' recupero cartella radice delle macchine
|
||||||
|
m_sMachinesRoot = Map.refMainWindowVM.MainWindowM.sMachinesRoot
|
||||||
|
' Carica macchine da cartella delle macchine
|
||||||
|
MyMachine.MachineListInit(m_sMachinesRoot, MachineList)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Friend Sub LoadCurrentMachine()
|
||||||
|
If MachineList.Count = 0 Then Return
|
||||||
|
Dim CurrMachine As Machine = Nothing
|
||||||
|
Dim CurrMachineName As String = String.Empty
|
||||||
|
GetMainPrivateProfileString(S_MACH, K_CURRMACH, String.Empty, CurrMachineName)
|
||||||
|
Dim bFound As Boolean = False
|
||||||
|
If Not String.IsNullOrEmpty(CurrMachineName) Then
|
||||||
|
For Each Mach In MachineList
|
||||||
|
If Mach.Name = CurrMachineName Then
|
||||||
|
bFound = True
|
||||||
|
CurrMachine = Mach
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
If Not bFound And MachineList.Count > 0 Then
|
||||||
|
CurrMachine = MachineList(0)
|
||||||
|
End If
|
||||||
|
If Not IsNothing(CurrMachine) Then
|
||||||
|
If EgtSetCurrMachine(CurrMachine.Name) Then
|
||||||
|
SelectedMachine = CurrMachine
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub SaveCurrentMachine()
|
||||||
|
If IsNothing(m_SelectedMachine) Then Return
|
||||||
|
WriteMainPrivateProfileString(S_MACH, K_CURRMACH, SelectedMachine.Name)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub UpdateCurrentMachine()
|
||||||
|
'EgtSetCurrentContext(IniFile.m_ProjectSceneContext)
|
||||||
|
Dim sMachName As String = String.Empty
|
||||||
|
If EgtGetCurrMachineName(sMachName) Then
|
||||||
|
For Each Mach In MachineList
|
||||||
|
If Mach.Name = sMachName Then
|
||||||
|
SelectedMachine = Mach
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Function BeamMachDb() As Boolean
|
||||||
|
' Assegno le path
|
||||||
|
Dim sBaseDir As String = m_sMachinesRoot & "\" & m_SelectedMachine.Name & "\" & "Beam"
|
||||||
|
' verifico se ci sono i file ini
|
||||||
|
Dim sMachTypePath As String = sBaseDir & "\MachiningTypes.ini"
|
||||||
|
Dim sTabTemplPath As String = sBaseDir & "\BeamTableTemplate.ini"
|
||||||
|
If File.Exists(sMachTypePath) AndAlso File.Exists(sTabTemplPath) Then
|
||||||
|
' apro finestra di gestione lavorazioni travi
|
||||||
|
Dim sTitle = EgtMsg(9000) 'Tabelle delle lavorazioni delle travi
|
||||||
|
Dim BeamMchsWinVM As New MyBeamMachiningsWindowVM(sTitle, sBaseDir, sMachTypePath, sTabTemplPath)
|
||||||
|
Dim BeamMchsWinV As New BeamMachiningsWindowV(Application.Current.MainWindow, BeamMchsWinVM)
|
||||||
|
BeamMchsWinV.ShowDialog()
|
||||||
|
Else
|
||||||
|
' Impossibile aprire l'Editor delle lavorazioni delle travi.<br/>Mancano i file di configurazione. - Errore
|
||||||
|
MessageBox.Show(EgtMsg(9009), EgtMsg(9008), MessageBoxButton.OK, MessageBoxImage.Stop)
|
||||||
|
End If
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Friend Function WallMachDb() As Boolean
|
||||||
|
' Assegno le path
|
||||||
|
Dim sBaseDir As String = m_sMachinesRoot & "\" & m_SelectedMachine.Name & "\" & "Wall"
|
||||||
|
' verifico se ci sono i file ini
|
||||||
|
Dim sMachTypePath As String = sBaseDir & "\MachiningTypes.ini"
|
||||||
|
Dim sTabTemplPath As String = sBaseDir & "\WallTableTemplate.ini"
|
||||||
|
If File.Exists(sMachTypePath) AndAlso File.Exists(sTabTemplPath) Then
|
||||||
|
' apro finestra di gestione lavorazioni pareti
|
||||||
|
Dim sTitle = EgtMsg(9010) 'Tabelle delle lavorazioni delle pareti
|
||||||
|
Dim WallMchsWinVM As New MyBeamMachiningsWindowVM(sTitle, sBaseDir, sMachTypePath, sTabTemplPath, False)
|
||||||
|
Dim WallMchsWinV As New BeamMachiningsWindowV(Application.Current.MainWindow, WallMchsWinVM)
|
||||||
|
WallMchsWinV.ShowDialog()
|
||||||
|
Else
|
||||||
|
' Impossibile aprire l'Editor delle lavorazioni delle pareti.<br/>Mancano i file di configurazione. - Errore
|
||||||
|
MessageBox.Show(EgtMsg(9011), EgtMsg(9008), MessageBoxButton.OK, MessageBoxImage.Stop)
|
||||||
|
End If
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Overrides Sub ToolDb(ByVal param As Object)
|
||||||
|
If Not VerifyMachinesDir(m_sMachinesRoot) Then Return
|
||||||
|
' ricarico il database per intercettare eventuali aggiornamenti fatti da altre istanze del programma (se la cartella Machines è condivisa)
|
||||||
|
If Not EgtTdbReload() Then
|
||||||
|
EgtOutLog("Impossible reloading tool Db")
|
||||||
|
MessageBox.Show(EgtMsg(MSG_TOOLDBERRORS + 30), EgtMsg(MSG_MESSAGEBOX + 1), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim ToolDbWindowVM As New MyToolDbWindowVM(CurrentMachine.sMachDir, CurrentMachine.sMachIniFile, Map.refSceneHostVM.MainScene.GetCtx(), "Beam")
|
||||||
|
Dim ToolDbWindowV As New ToolDbWindowV(Application.Current.MainWindow, ToolDbWindowVM)
|
||||||
|
If ToolDbWindowVM.MatType <> 0 Then
|
||||||
|
ToolDbWindowV.Height = 640
|
||||||
|
ToolDbWindowV.Width = 1024
|
||||||
|
ToolDbWindowV.ShowDialog()
|
||||||
|
Else
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub MachDb(ByVal param As Object)
|
||||||
|
If Not VerifyMachinesDir(m_sMachinesRoot) Then Return
|
||||||
|
' ricarico il database per intercettare eventuali aggiornamenti fatti da altre istanze del programma (se la cartella Machines è condivisa)
|
||||||
|
If Not EgtMdbReload() Then
|
||||||
|
EgtOutLog("Impossible reloading machining Db")
|
||||||
|
MessageBox.Show(EgtMsg(MSG_MACHININGDBERRORS + 8), EgtMsg(MSG_MESSAGEBOX + 1), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
Dim MachDbWindowVM As New EgtWPFLib5.MachiningDbWindowVM(CurrentMachine.sMachIniFile, Map.refSceneHostVM.MainScene.GetCtx(), "Stone")
|
||||||
|
Dim MachDbWindowV As New EgtWPFLib5.MachiningDbWindowV(Application.Current.MainWindow, MachDbWindowVM)
|
||||||
|
|
||||||
|
If EgtWPFLib5.MachiningTreeViewItem.m_MatType <> 0 Then
|
||||||
|
MachDbWindowV.Height = 768
|
||||||
|
MachDbWindowV.Width = 1024
|
||||||
|
MachDbWindowV.ShowDialog()
|
||||||
|
Else
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub SetUp(ByVal param As Object)
|
||||||
|
' verifico che il file di configurazione attrezzaggio (lua) della macchina esista
|
||||||
|
If Not File.Exists(CurrentMachine.sMachDir & "\Scripts\" & SETUP_LUA) Then
|
||||||
|
EgtOutLog("SetUp error: SetUp configuration file doesn't exist ")
|
||||||
|
MessageBox.Show(EgtMsg(MSG_SETUPERRORS + 7), EgtMsg(MSG_SETUPERRORS + 1), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
' carico Lua che contiene le funzioni per ottenere le posizioni valide dell'utensile selezionato,
|
||||||
|
' e testa e uscita dell'utensile attrezzato
|
||||||
|
EgtLuaExecFile(CurrentMachine.sMachDir & "\Scripts\" & SETUP_LUA)
|
||||||
|
' verifico che le teste riportate in configurazione esistano
|
||||||
|
Dim Index As Integer = 1
|
||||||
|
Dim nErr As Integer = 0
|
||||||
|
While nErr = 0
|
||||||
|
Dim sHead As String = String.Empty
|
||||||
|
nErr = 999
|
||||||
|
EgtLuaSetGlobIntVar("STU.INDEX", Index)
|
||||||
|
EgtLuaCallFunction("STU.GetTcPosHeadGroupFromPos")
|
||||||
|
' Leggo variabili
|
||||||
|
EgtLuaGetGlobStringVar("STU.HEAD", sHead)
|
||||||
|
EgtLuaGetGlobIntVar("STU.ERR", nErr)
|
||||||
|
If nErr = 0 Then
|
||||||
|
If EgtGetHeadExitCount(sHead) = 0 Then
|
||||||
|
MessageBox.Show(EgtMsg(MSG_SETUPERRORS + 8), EgtMsg(MSG_SETUPERRORS + 1), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Index += 1
|
||||||
|
End While
|
||||||
|
' Reset lua
|
||||||
|
EgtLuaResetGlobVar("STU")
|
||||||
|
|
||||||
|
Dim SetUpWindow As New SetUpWindowV(Application.Current.MainWindow, New SetUpWindowVM(CurrentMachine.sMachDir, CurrentMachine.sMachineName))
|
||||||
|
SetUpWindow.Height = 614
|
||||||
|
SetUpWindow.Width = 1024
|
||||||
|
SetUpWindow.ShowDialog()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "BeamTable"
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Returns a command that do Exec.
|
||||||
|
''' </summary>
|
||||||
|
Public ReadOnly Property BeamTable_Command As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdBeamTable Is Nothing Then
|
||||||
|
m_cmdBeamTable = New Command(AddressOf BeamMachDb)
|
||||||
|
End If
|
||||||
|
Return m_cmdBeamTable
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' BeamTable
|
||||||
|
|
||||||
|
#Region "WallTable"
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Returns a command that do Exec.
|
||||||
|
''' </summary>
|
||||||
|
Public ReadOnly Property WallTable_Command As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdWallTable Is Nothing Then
|
||||||
|
m_cmdWallTable = New Command(AddressOf WallMachDb)
|
||||||
|
End If
|
||||||
|
Return m_cmdWallTable
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
#End Region ' WallTable
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
<Grid x:Class="OnlyProdMachinePanelV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
IsEnabled="{Binding MachPanel_IsEnabled}">
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Grid Margin="0,0,5,0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Text="Macchina corrente"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="0,0,5,0"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<!--Combobox per selezionare la macchina corrente-->
|
||||||
|
<ComboBox Grid.Column="1"
|
||||||
|
ItemsSource="{Binding Path=MachineList}" DisplayMemberPath="Name"
|
||||||
|
SelectedItem="{Binding Path=SelectedMachine}" SelectedValuePath="Name"
|
||||||
|
Style="{StaticResource OnlyProdCalcPanel_ComboBox}"/>
|
||||||
|
</Grid>
|
||||||
|
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||||
|
<Button Content="{Binding ToolDBMsg}"
|
||||||
|
ToolTip="{Binding ToolDBToolTip}"
|
||||||
|
Command="{Binding ToolDbCommand}"
|
||||||
|
Style="{StaticResource GeneralConfigurationToolBar_TextButton}"/>
|
||||||
|
<Button Content="{Binding MachiningDbMsg}"
|
||||||
|
Command="{Binding MachDbCommand}"
|
||||||
|
ToolTip="{Binding MachiningDbToolTip}"
|
||||||
|
Style="{StaticResource GeneralConfigurationToolBar_TextButton}" Width="100"/>
|
||||||
|
<Button Content="{Binding SetUpMsg}"
|
||||||
|
Command="{Binding SetUpCommand}"
|
||||||
|
ToolTip="{Binding SetUpToolTip}"
|
||||||
|
Style="{StaticResource GeneralConfigurationToolBar_TextButton}"
|
||||||
|
Visibility="{Binding SetUp_Visibility}"/>
|
||||||
|
<Button ToolTip="{Binding BeamTable_ToolTip}"
|
||||||
|
Command="{Binding BeamTable_Command}"
|
||||||
|
Visibility="{Binding BeamTable_Visibility}"
|
||||||
|
Style="{StaticResource ToolBarWarehouse_Button}">
|
||||||
|
<Image Source="/Resources/Configuration/MachiningsTable.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
<Button ToolTip="{Binding WallTable_ToolTip}"
|
||||||
|
Command="{Binding WallTable_Command}"
|
||||||
|
Visibility="{Binding WallTable_Visibility}"
|
||||||
|
Style="{StaticResource ToolBarWarehouse_Button}">
|
||||||
|
<Image Source="/Resources/Configuration/MachiningsTable.png" Stretch="Uniform"/>
|
||||||
|
</Button>
|
||||||
|
<Button Content="{Binding ParameterMachineMsg}"
|
||||||
|
ToolTip="{Binding ParameterMachineMsg}"
|
||||||
|
Command="{Binding ParameterMachine_Command}"
|
||||||
|
Style="{StaticResource MachineToolBar_ParameterMachineButton}" Width="140"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Public Class OnlyProdMachinePanelV
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
<EgtBEAMWALLCORE:OptimizerWindow x:Class="MachiningDbWindowV"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
|
||||||
Title="{Binding Title}"
|
|
||||||
TitleBarHeight="30"
|
|
||||||
WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
|
||||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
|
||||||
|
|
||||||
<EgtBEAMWALLCORE:OptimizerWindow.InputBindings>
|
|
||||||
<KeyBinding Key="Escape" Command="{Binding ReloadMachiningCommand}"
|
|
||||||
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/>
|
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow.InputBindings>
|
|
||||||
|
|
||||||
<EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
|
||||||
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
|
|
||||||
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
|
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="0.75*"/>
|
|
||||||
<ColumnDefinition Width="2*"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition Height="10*"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<UniformGrid Columns="3">
|
|
||||||
<Button Content="{Binding NewMsg}"
|
|
||||||
Command="{Binding NewCommand}"
|
|
||||||
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
||||||
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}"
|
|
||||||
Style="{StaticResource MachiningDB_Button}"/>
|
|
||||||
<Button Content="{Binding SaveMsg}"
|
|
||||||
Command="{Binding SaveCommand}"
|
|
||||||
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
||||||
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}"
|
|
||||||
Style="{StaticResource MachiningDB_Button}"/>
|
|
||||||
<Button Content="{Binding RemoveMsg}"
|
|
||||||
Command="{Binding RemoveCommand}"
|
|
||||||
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
||||||
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}"
|
|
||||||
Style="{StaticResource MachiningDB_Button}"/>
|
|
||||||
</UniformGrid>
|
|
||||||
|
|
||||||
<TreeView Grid.Row="1"
|
|
||||||
Name="MachiningsTreeView"
|
|
||||||
ItemsSource="{Binding Path=MachiningsList}"
|
|
||||||
Style="{StaticResource MachiningDB_TreeView}">
|
|
||||||
<TreeView.ItemContainerStyle>
|
|
||||||
<Style TargetType="{x:Type TreeViewItem}">
|
|
||||||
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
|
||||||
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
|
||||||
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
|
|
||||||
</Style>
|
|
||||||
</TreeView.ItemContainerStyle>
|
|
||||||
<TreeView.Resources>
|
|
||||||
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyMachiningTreeViewItem}"
|
|
||||||
ItemsSource="{Binding Items}">
|
|
||||||
<Grid Style="{StaticResource MachiningDB_Grid}">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Image Source="{Binding PictureString}"
|
|
||||||
Style="{StaticResource MachiningDB_Image}"/>
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
Text="{Binding Name}"
|
|
||||||
Style="{StaticResource MachiningDB_TextBlock}"/>
|
|
||||||
<Ellipse Grid.Column="2"
|
|
||||||
Fill="{Binding FamilyColor}"
|
|
||||||
Style="{StaticResource SetUp_Ellipse}"/>
|
|
||||||
</Grid>
|
|
||||||
</HierarchicalDataTemplate>
|
|
||||||
<DataTemplate DataType="{x:Type EgtWPFLib5:MachiningTreeViewItem}">
|
|
||||||
<Grid Style="{StaticResource MachiningDB_Grid}">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
Text="{Binding NamePar}"
|
|
||||||
Style="{StaticResource MachiningDB_TextBlock}"/>
|
|
||||||
<Ellipse Grid.Column="2"
|
|
||||||
Fill="{Binding ToolColor}"
|
|
||||||
Style="{StaticResource SetUp_Ellipse}"/>
|
|
||||||
</Grid>
|
|
||||||
</DataTemplate>
|
|
||||||
</TreeView.Resources>
|
|
||||||
</TreeView>
|
|
||||||
|
|
||||||
<UniformGrid Grid.Row="2"
|
|
||||||
Columns="3">
|
|
||||||
<Button Content="{Binding ImportMsg}"
|
|
||||||
Command="{Binding ImportCommand}"
|
|
||||||
Style="{StaticResource MachiningDB_Button}"/>
|
|
||||||
<Button Content="{Binding ExportMsg}"
|
|
||||||
Command="{Binding ExportCommand}"
|
|
||||||
Style="{StaticResource MachiningDB_Button}"/>
|
|
||||||
<Button Content="{Binding ResetMsg}"
|
|
||||||
Command="{Binding ReloadMachiningCommand}"
|
|
||||||
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"
|
|
||||||
Style="{StaticResource MachiningDB_Button}"/>
|
|
||||||
</UniformGrid>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<ContentControl Grid.Column="1"
|
|
||||||
Grid.ColumnSpan="2"
|
|
||||||
Content="{Binding Path=ParamPageV}"/>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
|
||||||
@@ -0,0 +1,128 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdMachiningDbWindowV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||||
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
|
Title="{Binding Title}"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
|
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
||||||
|
CloseCommand="{Binding CloseMachiningsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}">
|
||||||
|
|
||||||
|
<EgtWPFLib5:EgtCustomWindow.InputBindings>
|
||||||
|
<KeyBinding Key="Escape" Command="{Binding ReloadMachiningCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow.InputBindings>
|
||||||
|
|
||||||
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
|
||||||
|
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="0.75*"/>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="10*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<UniformGrid Grid.Row="0" Columns="3">
|
||||||
|
<Button Content="{Binding NewMsg}" Command="{Binding NewCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
||||||
|
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding SaveMsg}" Command="{Binding SaveCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
||||||
|
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding RemoveMsg}" Command="{Binding RemoveCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
||||||
|
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
<TreeView Name="MachiningsTreeView" Grid.Row="1"
|
||||||
|
ItemsSource="{Binding Path=MachiningsList}">
|
||||||
|
<TreeView.Style>
|
||||||
|
<Style TargetType="{x:Type TreeView}">
|
||||||
|
<Setter Property="Background">
|
||||||
|
<Setter.Value>
|
||||||
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.35,0">
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</TreeView.Style>
|
||||||
|
|
||||||
|
<TreeView.ItemContainerStyle>
|
||||||
|
<Style TargetType="{x:Type TreeViewItem}">
|
||||||
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
||||||
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
||||||
|
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
|
||||||
|
</Style>
|
||||||
|
</TreeView.ItemContainerStyle>
|
||||||
|
|
||||||
|
<TreeView.Resources>
|
||||||
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyMachiningTreeViewItem}" ItemsSource="{Binding Items}">
|
||||||
|
|
||||||
|
<Grid Height="20">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Image Grid.Column="0" Source="{Binding PictureString}" Height="20" Width="20" Margin="0,0,5,0" />
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
||||||
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding FamilyColor}" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</HierarchicalDataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate DataType="{x:Type EgtWPFLib5:MachiningTreeViewItem}">
|
||||||
|
<Grid Height="20">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding NamePar}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
||||||
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding ToolColor}" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</TreeView.Resources>
|
||||||
|
|
||||||
|
</TreeView>
|
||||||
|
|
||||||
|
<UniformGrid Grid.Row="2" Columns="3">
|
||||||
|
<Button Content="{Binding ImportMsg}" Command="{Binding ImportCommand}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding ExportMsg}" Command="{Binding ExportCommand}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding ResetMsg}" Command="{Binding ReloadMachiningCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<ContentControl Content="{Binding Path=ParamPageV}" Grid.Column="1" Grid.ColumnSpan="2"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
+3
-2
@@ -1,11 +1,12 @@
|
|||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports System.Windows.Input
|
Imports System.Windows.Input
|
||||||
|
|
||||||
Public Class MachiningDbWindowV
|
Public Class OnlyProdMachiningDbWindowV
|
||||||
|
|
||||||
Private WithEvents m_MachiningDbWindowVM As MachiningDbWindowVM
|
Private WithEvents m_MachiningDbWindowVM As MachiningDbWindowVM
|
||||||
|
|
||||||
Sub New(Owner As System.Windows.Window, MachiningDbWindowVM As MachiningDbWindowVM)
|
Sub New(Owner As System.Windows.Window, MachiningDbWindowVM As MachiningDbWindowVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
' This call is required by the designer.
|
' This call is required by the designer.
|
||||||
InitializeComponent()
|
InitializeComponent()
|
||||||
Me.DataContext = MachiningDbWindowVM
|
Me.DataContext = MachiningDbWindowVM
|
||||||
@@ -13,7 +14,7 @@ Public Class MachiningDbWindowV
|
|||||||
m_MachiningDbWindowVM = MachiningDbWindowVM
|
m_MachiningDbWindowVM = MachiningDbWindowVM
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_MachiningDbWindowVM.OnCloseWindow
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_MachiningDbWindowVM.m_CloseWindow
|
||||||
Me.DataContext = Nothing
|
Me.DataContext = Nothing
|
||||||
Me.DialogResult = bDialogResult
|
Me.DialogResult = bDialogResult
|
||||||
Me.Close()
|
Me.Close()
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
Imports System
|
Imports System
|
||||||
Imports System.Reflection
|
Imports System.Reflection
|
||||||
Imports System.Runtime.InteropServices
|
Imports System.Runtime.InteropServices
|
||||||
Imports System.Windows
|
|
||||||
|
|
||||||
' General Information about an assembly is controlled through the following
|
' General Information about an assembly is controlled through the following
|
||||||
' set of attributes. Change these attribute values to modify the information
|
' set of attributes. Change these attribute values to modify the information
|
||||||
@@ -10,13 +9,13 @@ Imports System.Windows
|
|||||||
' Review the values of the assembly attributes
|
' Review the values of the assembly attributes
|
||||||
|
|
||||||
#If DEBUG Then
|
#If DEBUG Then
|
||||||
<Assembly: AssemblyTitle("Aedifica.Core Debug AnyCPU")>
|
<Assembly: AssemblyTitle("EgtBEAMWALL.Core Debug AnyCPU")>
|
||||||
#Else
|
#Else
|
||||||
<Assembly: AssemblyTitle("Aedifica.Core Release AnyCPU")>
|
<Assembly: AssemblyTitle("EgtBEAMWALL.Core Release AnyCPU")>
|
||||||
#End If
|
#End If
|
||||||
<Assembly: AssemblyDescription("")>
|
<Assembly: AssemblyDescription("")>
|
||||||
<Assembly: AssemblyCompany("Egalware s.r.l.")>
|
<Assembly: AssemblyCompany("Egalware s.r.l.")>
|
||||||
<Assembly: AssemblyProduct("Aedifica.Core")>
|
<Assembly: AssemblyProduct("EgtBEAMWALL.Core")>
|
||||||
<Assembly: AssemblyCopyright("Copyright © 2020-2025 by Egalware s.r.l.")>
|
<Assembly: AssemblyCopyright("Copyright © 2020-2025 by Egalware s.r.l.")>
|
||||||
<Assembly: AssemblyTrademark("")>
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
@@ -25,8 +24,6 @@ Imports System.Windows
|
|||||||
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
<Assembly: Guid("632ea0b1-10e2-4f07-8b1b-d9371ef8392e")>
|
<Assembly: Guid("632ea0b1-10e2-4f07-8b1b-d9371ef8392e")>
|
||||||
|
|
||||||
<Assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)>
|
|
||||||
|
|
||||||
' Version information for an assembly consists of the following four values:
|
' Version information for an assembly consists of the following four values:
|
||||||
'
|
'
|
||||||
' Major Version
|
' Major Version
|
||||||
@@ -38,5 +35,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("3.1.5.2")>
|
<Assembly: AssemblyVersion("2.7.1.1")>
|
||||||
<Assembly: AssemblyFileVersion("3.1.5.2")>
|
<Assembly: AssemblyFileVersion("2.7.1.1")>
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
<EgtBEAMWALLCORE:OptimizerWindow x:Class="NewOpenProjectFileDialogV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="NewOpenProjectFileDialogV"
|
||||||
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"
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib"
|
Title="{Binding Title}"
|
||||||
Title="{Binding Title}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
ResizeMode="NoResize" TitleBarHeight="30" IsResizable="True"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="True"
|
||||||
WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
MinHeight="500" MinWidth="500"
|
IsClosable="False"
|
||||||
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
MinHeight="500" MinWidth="500"
|
||||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
||||||
|
|
||||||
<EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<GroupBox Header="{Binding Filters_Msg}"
|
<GroupBox Header="{Binding Filters_Msg}"
|
||||||
Visibility="{Binding Filters_Visibility}"
|
Margin="5"
|
||||||
Style="{StaticResource NewOpenProjectFile_GroupBox}">
|
Visibility="{Binding Filters_Visibility}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
@@ -38,30 +38,30 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
||||||
SelectedIndex="{Binding SelBTLDateType}"
|
SelectedIndex="{Binding SelBTLDateType}"
|
||||||
Style="{StaticResource BTLDateTypeList_ComboBox}"/>
|
Width="105"
|
||||||
<StackPanel Grid.Column="1"
|
Margin="5"
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
Style="{StaticResource FeatureComboBox}"/>
|
||||||
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
||||||
<ComboBox ItemsSource="{Binding DayTypeList}"
|
<ComboBox ItemsSource="{Binding DayTypeList}"
|
||||||
SelectedIndex="{Binding SelDayType}"
|
SelectedIndex="{Binding SelDayType}"
|
||||||
Style="{StaticResource DayTypeList_ComboBox}"/>
|
Width="105"
|
||||||
<StackPanel Visibility="{Binding Date_Visibility}"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
Style="{StaticResource PartParam_ComboBox}"/>
|
||||||
|
<StackPanel Orientation="Horizontal" Visibility="{Binding Date_Visibility}">
|
||||||
<TextBlock Text="{Binding From_Msg}"
|
<TextBlock Text="{Binding From_Msg}"
|
||||||
Style="{StaticResource Filter_TextBlock}"/>
|
Style="{StaticResource Filter_TextBlock}"/>
|
||||||
<DatePicker SelectedDate="{Binding dtStartDate}"
|
<DatePicker SelectedDate="{Binding dtStartDate}"
|
||||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
|
||||||
Style="{StaticResource Filter_DatePicker}"/>
|
Style="{StaticResource Filter_DatePicker}"/>
|
||||||
<TextBlock Text="{Binding To_Msg}"
|
<TextBlock Text="{Binding To_Msg}"
|
||||||
Style="{StaticResource Filter_TextBlock}"/>
|
Style="{StaticResource Filter_TextBlock}"/>
|
||||||
<DatePicker SelectedDate="{Binding dtEndDate}"
|
<DatePicker SelectedDate="{Binding dtEndDate}"
|
||||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
|
||||||
Style="{StaticResource Filter_DatePicker}"/>
|
Style="{StaticResource Filter_DatePicker}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<CheckBox Grid.Column="2"
|
<CheckBox Grid.Column="2"
|
||||||
IsChecked="{Binding bViewArchived}"
|
IsChecked="{Binding bViewArchived}"
|
||||||
Content="{Binding ViewArchived_Msg}"
|
Content="{Binding ViewArchived_Msg}"
|
||||||
Style="{StaticResource PParameters_CheckBox}"/>
|
VerticalAlignment="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Grid.Row="1">
|
<Grid Grid.Row="1">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
@@ -71,46 +71,47 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
||||||
SelectedItem="{Binding SelFilterType}"
|
SelectedItem="{Binding SelFilterType}"
|
||||||
Style="{StaticResource NewOpenProjectFile_ComboBox}"/>
|
Width="105"
|
||||||
|
Margin="5"
|
||||||
|
Style="{StaticResource FeatureComboBox}"/>
|
||||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||||
Text="{Binding SearchText}"
|
Text="{Binding SearchText}"
|
||||||
Visibility="{Binding SearchText_Visibility}"
|
Margin="5"
|
||||||
Style="{StaticResource NewSearchText_TextBox}"/>
|
Visibility="{Binding SearchText_Visibility}"/>
|
||||||
<StackPanel Grid.Column="2"
|
<StackPanel Grid.Column="2"
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="{Binding Rows_Msg}"
|
<TextBlock Text="{Binding Rows_Msg}"
|
||||||
Style="{StaticResource Option_TextBlock}"/>
|
Style="{StaticResource OptionTextBlock}"/>
|
||||||
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
||||||
SelectedIndex="{Binding SelRowQuantity}"
|
SelectedIndex="{Binding SelRowQuantity}"
|
||||||
Style="{StaticResource OpenProjectFileDialog_ComboBox}"/>
|
Style="{StaticResource FeatureComboBox}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
||||||
<Border Grid.Row="1"
|
<EgtBEAMWALL:EgtDataGrid x:Name="MainDataGrid"
|
||||||
Style="{StaticResource NewOpenProjectFileDialog_Border}"/>
|
Grid.Row="1"
|
||||||
|
ItemsSource="{Binding ProjectList}"
|
||||||
<EgwWPFBaseLib:EgwDataGrid Grid.Row="1"
|
SelectedItem="{Binding SelProject}"
|
||||||
x:Name="MainDataGrid"
|
CanUserAddRows="False"
|
||||||
ItemsSource="{Binding ProjectList}"
|
AutoGenerateColumns="False"
|
||||||
SelectedItem="{Binding SelProject}"
|
CanUserResizeRows="False"
|
||||||
SelectionMode="Single"
|
SelectionMode="Single"
|
||||||
Margin="5"
|
ScrollViewer.CanContentScroll="True"
|
||||||
ColumnLayouts="{Binding ProdColumns}"
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
RowDetailsVisibilityMode="Visible"
|
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||||
CellEditEnding="MainDataGrid_CellEditEnding"
|
Margin="5"
|
||||||
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
RowDetailsVisibilityMode="Visible"
|
||||||
AlternationCount="2"
|
CellEditEnding="MainDataGrid_CellEditEnding"
|
||||||
ColumnHeaderStyle="{StaticResource Main_DataGridColumnHeader}"
|
ColumnHeaderBackground="{x:Null}"
|
||||||
Style="{StaticResource Optimizer_DataGrid}"
|
BindingColumns="{Binding ProdColumns}">
|
||||||
CellStyle="{StaticResource CellDataGrid_NewOpenProject}">
|
|
||||||
<DataGrid.Resources>
|
<DataGrid.Resources>
|
||||||
<!-- ProdId -->
|
<!-- ProdId -->
|
||||||
<DataGridTextColumn x:Key="colPRODID" Binding="{Binding sProdId}">
|
<DataGridTextColumn x:Key="colPRODID" Binding="{Binding sProdId}">
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
@@ -122,12 +123,13 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Name_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Name_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"/>
|
||||||
<ToggleButton Grid.Column="1"
|
<ToggleButton Grid.Column="1"
|
||||||
IsChecked="{Binding Path=DataContext.bIsEditNameActive,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
Margin="5,0,0,0"
|
||||||
Style="{StaticResource Small_ToggleButton}">
|
IsChecked="{Binding Path=DataContext.bIsEditNameActive,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"
|
||||||
<Image Source="{StaticResource Edit_Image}"
|
Style="{StaticResource OldToolBar_SmallToggleButton}">
|
||||||
Style="{StaticResource Lock_Image}"/>
|
<Image Source="\Resources\CalcPanel\Edit.png"
|
||||||
|
Style="{StaticResource LockImage}"/>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataGridTextColumn.Header>
|
</DataGridTextColumn.Header>
|
||||||
@@ -135,31 +137,33 @@
|
|||||||
<!-- Creation date -->
|
<!-- Creation date -->
|
||||||
<DataGridTextColumn x:Key="colCRTDATE" Binding="{Binding dtCreateDate}">
|
<DataGridTextColumn x:Key="colCRTDATE" Binding="{Binding dtCreateDate}">
|
||||||
<DataGridTextColumn.Header>
|
<DataGridTextColumn.Header>
|
||||||
<TextBlock Text="{Binding Path=DataContext.CreateDate_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.CreateDate_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"/>
|
||||||
</DataGridTextColumn.Header>
|
</DataGridTextColumn.Header>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<!-- Machine -->
|
<!-- Machine -->
|
||||||
<DataGridTextColumn x:Key="colMACHINE" Binding="{Binding sMachine}">
|
<DataGridTextColumn x:Key="colMACHINE" Binding="{Binding sMachine}">
|
||||||
<DataGridTextColumn.Header>
|
<DataGridTextColumn.Header>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Machine_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Machine_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"/>
|
||||||
</DataGridTextColumn.Header>
|
</DataGridTextColumn.Header>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<!-- Archived -->
|
<!-- Archived -->
|
||||||
<DataGridTemplateColumn x:Key="colARCHIVED">
|
<DataGridTemplateColumn x:Key="colARCHIVED">
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Image Source="{StaticResource Archived_Image}"
|
<Image Source="\Resources\OpenProjectFileDialog\Archived.png"
|
||||||
Visibility="{Binding Archived_Visibility}"
|
Visibility="{Binding Archived_Visibility}"
|
||||||
Style="{StaticResource Archived_Image}"/>
|
Height="15"
|
||||||
|
Width="15"
|
||||||
|
Stretch="UniformToFill"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
<DataGridTemplateColumn.Header>
|
<DataGridTemplateColumn.Header>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Archived_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Archived_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"/>
|
||||||
</DataGridTemplateColumn.Header>
|
</DataGridTemplateColumn.Header>
|
||||||
</DataGridTemplateColumn>
|
</DataGridTemplateColumn>
|
||||||
</DataGrid.Resources>
|
</DataGrid.Resources>
|
||||||
<DataGrid.RowStyle>
|
<DataGrid.RowStyle>
|
||||||
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
<Style TargetType="DataGridRow">
|
||||||
<Setter Property="FontWeight" Value="DemiBold"/>
|
<Setter Property="FontWeight" Value="DemiBold"/>
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
<EventSetter Event="MouseDoubleClick" Handler="ProjectList_MouseDoubleClick"/>
|
<EventSetter Event="MouseDoubleClick" Handler="ProjectList_MouseDoubleClick"/>
|
||||||
@@ -167,24 +171,29 @@
|
|||||||
</DataGrid.RowStyle>
|
</DataGrid.RowStyle>
|
||||||
<DataGrid.RowDetailsTemplate>
|
<DataGrid.RowDetailsTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<ItemsControl ItemsSource="{Binding ProjFileList}" HorizontalAlignment="Left" Margin="50,-1,0,0"
|
<ItemsControl ItemsSource="{Binding ProjFileList}"
|
||||||
Style="{StaticResource ProjFileList_ItemsControl}">
|
BorderThickness="0"
|
||||||
|
Margin="0,-1,0,0"
|
||||||
|
Padding="0">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Grid Style="{StaticResource ProjFileList_Grid}">
|
<Grid TextBlock.FontSize="12"
|
||||||
|
TextBlock.FontWeight="Normal">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="{Binding Path=DataContext.ProdColumns[0].ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
<ColumnDefinition Width="{Binding Path=DataContext.ProdColumns[0].ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"/>
|
||||||
<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>
|
||||||
<Grid Grid.ColumnSpan="2"
|
<Grid Grid.Row="0"
|
||||||
Style="{StaticResource Gray_Grid}"/>
|
Grid.ColumnSpan="2"
|
||||||
|
Background="Gray"
|
||||||
|
Margin="40,0,40,0"/>
|
||||||
<Grid Grid.Column="1"
|
<Grid Grid.Column="1"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Style="{StaticResource NewOpenProjectFile_Grid}">
|
Margin="2">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -195,18 +204,18 @@
|
|||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"
|
||||||
Style="{StaticResource OpenWnd_TextBlock}"/>
|
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
Text="{Binding sBTLFileName}"/>
|
Text="{Binding sBTLFileName}"/>
|
||||||
<TextBlock Grid.Row="1"
|
<TextBlock Grid.Row="1"
|
||||||
Text="{Binding Path=DataContext.ListName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
Text="{Binding Path=DataContext.ListName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"
|
||||||
Style="{StaticResource OpenWnd_TextBlock}"/>
|
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||||
<TextBlock Grid.Row="1"
|
<TextBlock Grid.Column="1"
|
||||||
Grid.Column="1"
|
Grid.Row="1"
|
||||||
Text="{Binding sListName}"/>
|
Text="{Binding sListName}"/>
|
||||||
<TextBlock Grid.Column="2"
|
<TextBlock Grid.Column="2"
|
||||||
Text="{Binding Path=DataContext.ExportDate_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
Text="{Binding Path=DataContext.ExportDate_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:NewOpenProjectFileDialogV}}}"
|
||||||
Style="{StaticResource OpenWnd_TextBlock}"/>
|
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||||
<TextBlock Grid.Column="3"
|
<TextBlock Grid.Column="3"
|
||||||
Text="{Binding dtExportDate}"/>
|
Text="{Binding dtExportDate}"/>
|
||||||
@@ -217,28 +226,25 @@
|
|||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGrid.RowDetailsTemplate>
|
</DataGrid.RowDetailsTemplate>
|
||||||
</EgwWPFBaseLib:EgwDataGrid>
|
</EgtBEAMWALL:EgtDataGrid>
|
||||||
|
|
||||||
<UniformGrid Grid.Row="2"
|
<UniformGrid Columns="4" Grid.Row="2" Margin="0,0,0,5">
|
||||||
Columns="4"
|
<Button IsDefault="True" Name="OpenBtn"
|
||||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
|
||||||
<Button Name="OpenBtn"
|
|
||||||
IsDefault="True"
|
|
||||||
Content="{Binding Open_Msg}"
|
Content="{Binding Open_Msg}"
|
||||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Content="{Binding Archive_Msg}"
|
<Button Content="{Binding Archive_Msg}"
|
||||||
Command="{Binding Archive_Command}"
|
Command="{Binding Archive_Command}"
|
||||||
IsEnabled="{Binding bArchived_IsEnabled}"
|
IsEnabled="{Binding bArchived_IsEnabled}"
|
||||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Content="{Binding Delete_Msg}"
|
<Button Content="{Binding Delete_Msg}"
|
||||||
Command="{Binding Delete_Command}"
|
Command="{Binding Delete_Command}"
|
||||||
IsEnabled="{Binding bDelete_IsEnabled}"
|
IsEnabled="{Binding bDelete_IsEnabled}"
|
||||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Command="{Binding Cancel_Command}"
|
<Button Command="{Binding Cancel_Command}"
|
||||||
Content="{Binding Cancel_Msg}"
|
Content="{Binding Cancel_Msg}"
|
||||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
Imports System.Windows
|
Imports System.ComponentModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports System.Windows
|
||||||
Imports System.Windows.Controls
|
Imports System.Windows.Controls
|
||||||
Imports System.Windows.Input
|
Imports System.Windows.Input
|
||||||
|
Imports EgtBEAMWALL.Core.ConstBeam
|
||||||
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
Imports EgtBEAMWALL
|
||||||
|
Imports System.Windows.Media
|
||||||
|
|
||||||
Public Class NewOpenProjectFileDialogV
|
Public Class NewOpenProjectFileDialogV
|
||||||
|
|
||||||
@@ -77,17 +83,4 @@ Public Class NewOpenProjectFileDialogV
|
|||||||
'm_OpenProjFileDialogVM.SetIsEditNameActive(False)
|
'm_OpenProjFileDialogVM.SetIsEditNameActive(False)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared ReadOnly IsSelectedProperty As DependencyProperty = DependencyProperty.Register("IsSelected",
|
End Class
|
||||||
GetType(Boolean),
|
|
||||||
GetType(ItemsControl))
|
|
||||||
|
|
||||||
Public Property IsSelected As Boolean
|
|
||||||
Get
|
|
||||||
Return DirectCast(GetValue(IsSelectedProperty), Boolean)
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
SetValue(IsSelectedProperty, value)
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -41,30 +41,40 @@ Public MustInherit Class NewOpenProjectFileDialogVM
|
|||||||
|
|
||||||
Friend Event m_CloseWindow(bDialogResult As Boolean)
|
Friend Event m_CloseWindow(bDialogResult As Boolean)
|
||||||
|
|
||||||
Protected m_ProdColumns As New ObservableCollection(Of EgwWPFBaseLib.ColumnLayout)
|
Protected m_ProdColumns As New ObservableCollection(Of EgtDataGridColumn)
|
||||||
Public Property ProdColumns As ObservableCollection(Of EgwWPFBaseLib.ColumnLayout)
|
Public Property ProdColumns As ObservableCollection(Of EgtDataGridColumn)
|
||||||
Get
|
Get
|
||||||
Return m_ProdColumns
|
Return m_ProdColumns
|
||||||
End Get
|
End Get
|
||||||
Set(value As ObservableCollection(Of EgwWPFBaseLib.ColumnLayout))
|
Set(value As ObservableCollection(Of EgtDataGridColumn))
|
||||||
m_ProdColumns = value
|
m_ProdColumns = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_colProdFile_Name As EgwWPFBaseLib.ColumnLayout
|
Private m_colProdFile_Name As EgtDataGridColumn
|
||||||
Public ReadOnly Property colProdFile_Name As EgwWPFBaseLib.ColumnLayout
|
Public ReadOnly Property colProdFile_Name As EgtDataGridColumn
|
||||||
Get
|
Get
|
||||||
Return m_colProdFile_Name
|
Return m_colProdFile_Name
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_colArchived_Name As EgwWPFBaseLib.ColumnLayout
|
Private m_colArchived_Name As EgtDataGridColumn
|
||||||
Public ReadOnly Property colArchived_Name As EgwWPFBaseLib.ColumnLayout
|
Public ReadOnly Property colArchived_Name As EgtDataGridColumn
|
||||||
Get
|
Get
|
||||||
Return m_colArchived_Name
|
Return m_colArchived_Name
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Protected m_ProjColumns As New ObservableCollection(Of EgtDataGridColumn)
|
||||||
|
Public Property ProjColumns As ObservableCollection(Of EgtDataGridColumn)
|
||||||
|
Get
|
||||||
|
Return m_ProjColumns
|
||||||
|
End Get
|
||||||
|
Set(value As ObservableCollection(Of EgtDataGridColumn))
|
||||||
|
m_ProjColumns = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Protected m_ProjectType As ProjectType
|
Protected m_ProjectType As ProjectType
|
||||||
|
|
||||||
Protected m_sFilter As String
|
Protected m_sFilter As String
|
||||||
@@ -378,9 +388,9 @@ Public MustInherit Class NewOpenProjectFileDialogVM
|
|||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
m_bViewArchived = value
|
m_bViewArchived = value
|
||||||
WriteMainPrivateProfileString(S_OPENFILEDIALOG, K_VIEWARCHIVED, If(bViewArchived, 1, 0))
|
WriteMainPrivateProfileString(S_OPENFILEDIALOG, K_VIEWARCHIVED, If(bViewArchived, 1, 0))
|
||||||
If Not IsNothing(m_colArchived_Name) Then
|
If Not IsNothing( m_colArchived_Name) Then
|
||||||
m_colArchived_Name.IsVisible = value
|
m_colArchived_Name.Visible = value
|
||||||
RefreshProjectList()
|
RefreshProjectList()
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
@@ -541,8 +551,8 @@ Public MustInherit Class NewOpenProjectFileDialogVM
|
|||||||
ProdItem.m_delIsModifiedSetUp = AddressOf SetIsEditNameActive
|
ProdItem.m_delIsModifiedSetUp = AddressOf SetIsEditNameActive
|
||||||
' carico colonne
|
' carico colonne
|
||||||
LoadColumns()
|
LoadColumns()
|
||||||
m_colProdFile_Name = m_ProdColumns.FirstOrDefault(Function(x) x.Key = COL_NAME)
|
m_colProdFile_Name = m_ProdColumns.FirstOrDefault(Function(x) x.Name = COL_NAME)
|
||||||
m_colArchived_Name = m_ProdColumns.FirstOrDefault(Function(x) x.Key = COL_ARCHIVED)
|
m_colArchived_Name = m_ProdColumns.FirstOrDefault(Function(x) x.Name = COL_ARCHIVED)
|
||||||
' leggo valori per filtri
|
' leggo valori per filtri
|
||||||
m_SelDayType = GetMainPrivateProfileInt(S_OPENFILEDIALOG, K_DAYTYPE, 0)
|
m_SelDayType = GetMainPrivateProfileInt(S_OPENFILEDIALOG, K_DAYTYPE, 0)
|
||||||
Select Case m_SelDayType
|
Select Case m_SelDayType
|
||||||
@@ -579,7 +589,7 @@ Public MustInherit Class NewOpenProjectFileDialogVM
|
|||||||
|
|
||||||
Protected Sub LoadColumns()
|
Protected Sub LoadColumns()
|
||||||
' carico le colonne della datagrid
|
' carico le colonne della datagrid
|
||||||
EgwWPFBaseLib.EgwDataGrid.ReadColumnLayout(DataGridColumnsIniFile.m_sDataGridColumnsIniFile, S_NEWOPENPROJFILEDLG_PROD, ProdColumns)
|
GetPrivateProfileColumns(S_NEWOPENPROJFILEDLG_PROD, ProdColumns)
|
||||||
' carico campi su cui eseguire il filtro di ricerca
|
' carico campi su cui eseguire il filtro di ricerca
|
||||||
m_BTLDateTypeList = New List(Of String)({CreateDate_Msg})
|
m_BTLDateTypeList = New List(Of String)({CreateDate_Msg})
|
||||||
m_SelBTLDateType = BTLDateTypes.CREATEDATE
|
m_SelBTLDateType = BTLDateTypes.CREATEDATE
|
||||||
@@ -591,14 +601,29 @@ Public MustInherit Class NewOpenProjectFileDialogVM
|
|||||||
New IdNameStruct(FilterTypes.MACHINE, Machine_Msg)})
|
New IdNameStruct(FilterTypes.MACHINE, Machine_Msg)})
|
||||||
m_SelFilterType = m_FilterTypeList.FirstOrDefault(Function(x) x.Id = FilterTypes.NULL)
|
m_SelFilterType = m_FilterTypeList.FirstOrDefault(Function(x) x.Id = FilterTypes.NULL)
|
||||||
NotifyPropertyChanged(NameOf(SelFilterType))
|
NotifyPropertyChanged(NameOf(SelFilterType))
|
||||||
|
'End If
|
||||||
|
' setto la visibilità delle colonne delle EgtDataGrid
|
||||||
|
For Each col In ProjColumns
|
||||||
|
col.ColumnVisibility = If(col.Visible, Visibility.Visible, Visibility.Collapsed)
|
||||||
|
Next
|
||||||
|
For Each col In ProdColumns
|
||||||
|
col.ColumnVisibility = If(col.Visible, Visibility.Visible, Visibility.Collapsed)
|
||||||
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Function VerifySelected() As Boolean
|
Friend Function VerifySelected() As Boolean
|
||||||
' Salvo modifiche a colonne
|
|
||||||
EgwWPFBaseLib.EgwDataGrid.WriteColumnLayout(DataGridColumnsIniFile.m_sDataGridColumnsIniFile, S_NEWOPENPROJFILEDLG_PROD, ProdColumns)
|
|
||||||
If IsNothing(SelProject) Then Return False
|
If IsNothing(SelProject) Then Return False
|
||||||
Dim AllFilesInDir As IEnumerable(Of String) = Nothing
|
Dim AllFilesInDir As IEnumerable(Of String) = Nothing
|
||||||
If m_ProjectType = Core.ConstBeam.ProjectType.PROD Then
|
If m_ProjectType = Core.ConstBeam.ProjectType.PROJ Then
|
||||||
|
If Not IsNothing(SelProject.ProdFileVM) Then
|
||||||
|
If String.IsNullOrWhiteSpace(SelProject.ProdFileVM.sProdDirPath) OrElse Not Directory.Exists(SelProject.ProdFileVM.sProdDirPath) Then Return False
|
||||||
|
AllFilesInDir = Directory.EnumerateFiles(SelProject.ProdFileVM.sProdDirPath)
|
||||||
|
ElseIf SelProject.ProjFileList.Count > 0 Then
|
||||||
|
If String.IsNullOrWhiteSpace(SelProject.ProjFileList(0).sProjDirPath) OrElse Not Directory.Exists(SelProject.ProjFileList(0).sProjDirPath) Then Return False
|
||||||
|
AllFilesInDir = Directory.EnumerateFiles(SelProject.ProjFileList(0).sProjDirPath)
|
||||||
|
Else Return False
|
||||||
|
End If
|
||||||
|
ElseIf m_ProjectType = Core.ConstBeam.ProjectType.PROD Then
|
||||||
If String.IsNullOrWhiteSpace(SelProject.ProdFileVM.sProdDirPath) OrElse Not Directory.Exists(SelProject.ProdFileVM.sProdDirPath) Then Return False
|
If String.IsNullOrWhiteSpace(SelProject.ProdFileVM.sProdDirPath) OrElse Not Directory.Exists(SelProject.ProdFileVM.sProdDirPath) Then Return False
|
||||||
AllFilesInDir = Directory.EnumerateFiles(SelProject.ProdFileVM.sProdDirPath)
|
AllFilesInDir = Directory.EnumerateFiles(SelProject.ProdFileVM.sProdDirPath)
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -0,0 +1,252 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdNewOpenProjectFileDialogV"
|
||||||
|
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:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
|
Title="{Binding Title}"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="True"
|
||||||
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
|
IsClosable="False"
|
||||||
|
MinHeight="500" MinWidth="500"
|
||||||
|
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
||||||
|
|
||||||
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="5*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<GroupBox Header="{Binding Filters_Msg}"
|
||||||
|
Visibility="{Binding Filters_Visibility}"
|
||||||
|
Margin="5">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
||||||
|
SelectedIndex="{Binding SelBTLDateType}"
|
||||||
|
Style="{StaticResource BTLDateTypeList_ComboBox}"/>
|
||||||
|
<StackPanel Grid.Column="1"
|
||||||
|
Orientation="Horizontal">
|
||||||
|
<ComboBox ItemsSource="{Binding DayTypeList}"
|
||||||
|
SelectedIndex="{Binding SelDayType}"
|
||||||
|
Style="{StaticResource DayTypeList_ComboBox}"/>
|
||||||
|
<StackPanel Orientation="Horizontal"
|
||||||
|
Visibility="{Binding Date_Visibility}">
|
||||||
|
<TextBlock Text="{Binding From_Msg}"
|
||||||
|
Style="{StaticResource Filter_TextBlock}"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<DatePicker SelectedDate="{Binding dtStartDate}"
|
||||||
|
Style="{StaticResource Filter_DatePicker}"
|
||||||
|
CalendarStyle="{StaticResource Filter_Calendar}"/>
|
||||||
|
<TextBlock Text="{Binding To_Msg}"
|
||||||
|
Style="{StaticResource Filter_TextBlock}"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<DatePicker SelectedDate="{Binding dtEndDate}"
|
||||||
|
Style="{StaticResource Filter_DatePicker}"
|
||||||
|
CalendarStyle="{StaticResource Filter_Calendar}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
<CheckBox Grid.Column="2"
|
||||||
|
IsChecked="{Binding bViewArchived}"
|
||||||
|
Content="{Binding ViewArchived_Msg}"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
||||||
|
SelectedItem="{Binding SelFilterType}"
|
||||||
|
Width="105"
|
||||||
|
Margin="5"
|
||||||
|
Style="{StaticResource OnlyProdCalcPanel_ComboBox}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||||
|
Text="{Binding SearchText}"
|
||||||
|
Visibility="{Binding SearchText_Visibility}"
|
||||||
|
Style="{StaticResource NewSearchText_TextBox}"/>
|
||||||
|
<StackPanel Grid.Column="2"
|
||||||
|
Orientation="Horizontal">
|
||||||
|
<TextBlock Text="{Binding Rows_Msg}"
|
||||||
|
Style="{StaticResource OptionTextBlock}"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
||||||
|
SelectedIndex="{Binding SelRowQuantity}"
|
||||||
|
Style="{StaticResource OnyProd_FeatureComboBox}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
|
|
||||||
|
<Border Grid.Row="1" Style="{StaticResource OnlyProdPage_Border}" Margin="1"/>
|
||||||
|
|
||||||
|
<EgtBEAMWALL:EgtDataGrid Grid.Row="1"
|
||||||
|
x:Name="MainDataGrid"
|
||||||
|
ItemsSource="{Binding ProjectList}"
|
||||||
|
SelectedItem="{Binding SelProject}"
|
||||||
|
SelectionMode="Single"
|
||||||
|
Margin="5"
|
||||||
|
BindingColumns="{Binding ProdColumns}"
|
||||||
|
RowDetailsVisibilityMode="Visible"
|
||||||
|
CellEditEnding="MainDataGrid_CellEditEnding"
|
||||||
|
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
||||||
|
AlternationCount="2"
|
||||||
|
ColumnHeaderBackground="{StaticResource BeamWall_Teal}"
|
||||||
|
ColumnHeaderForeground="{StaticResource BeamWall_White}"
|
||||||
|
ColumnHeaderHorizontalContentAlignment="Center"
|
||||||
|
ColumnHeaderFontWeight="Bold"
|
||||||
|
ColumnHeaderFontSize="15"
|
||||||
|
ColumnHeaderPadding="0,2,0,2"
|
||||||
|
Style="{StaticResource DataGrid_OnlyProd}"
|
||||||
|
CellStyle="{StaticResource CellDataGrid_CustomHighLight}">
|
||||||
|
<DataGrid.Resources>
|
||||||
|
<!-- ProdId -->
|
||||||
|
<DataGridTextColumn x:Key="colPRODID" Binding="{Binding sProdId}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!--Name-->
|
||||||
|
<DataGridTextColumn x:Key="colNAME" Binding="{Binding sName}">
|
||||||
|
<DataGridTextColumn.Header>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Name_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"/>
|
||||||
|
<ToggleButton Grid.Column="1"
|
||||||
|
IsChecked="{Binding Path=DataContext.bIsEditNameActive,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"
|
||||||
|
Style="{StaticResource ToolBar_SmallToggleButton}">
|
||||||
|
<Image Source="\Resources\CalcPanel\Edit.png"
|
||||||
|
Style="{StaticResource LockImage}"/>
|
||||||
|
</ToggleButton>
|
||||||
|
</Grid>
|
||||||
|
</DataGridTextColumn.Header>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Creation date -->
|
||||||
|
<DataGridTextColumn x:Key="colCRTDATE" Binding="{Binding dtCreateDate}">
|
||||||
|
<DataGridTextColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.CreateDate_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataGridTextColumn.Header>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Machine -->
|
||||||
|
<DataGridTextColumn x:Key="colMACHINE" Binding="{Binding sMachine}">
|
||||||
|
<DataGridTextColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Machine_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataGridTextColumn.Header>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Archived -->
|
||||||
|
<DataGridTemplateColumn x:Key="colARCHIVED">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Image Source="\Resources\OpenProjectFileDialog\Archived.png"
|
||||||
|
Visibility="{Binding Archived_Visibility}"
|
||||||
|
Style="{StaticResource Archived_Image}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataGridTemplateColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Archived_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataGridTemplateColumn.Header>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
</DataGrid.Resources>
|
||||||
|
<DataGrid.RowStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
||||||
|
<Setter Property="FontWeight" Value="DemiBold"/>
|
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
|
<EventSetter Event="MouseDoubleClick" Handler="ProjectList_MouseDoubleClick"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowStyle>
|
||||||
|
<DataGrid.RowDetailsTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ItemsControl ItemsSource="{Binding ProjFileList}"
|
||||||
|
Style="{StaticResource ProjFileList_ItemsControl}">
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid Style="{StaticResource ProjFileList_Grid}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="{Binding Path=DataContext.ProdColumns[0].ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Grid.Row="0"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Style="{StaticResource Gray_Grid}"/>
|
||||||
|
<Grid Grid.Column="1"
|
||||||
|
Grid.Row="1"
|
||||||
|
Margin="2">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"
|
||||||
|
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding sBTLFileName}"/>
|
||||||
|
<TextBlock Grid.Row="1"
|
||||||
|
Text="{Binding Path=DataContext.ListName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"
|
||||||
|
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Grid.Row="1"
|
||||||
|
Text="{Binding sListName}"/>
|
||||||
|
<TextBlock Grid.Column="2"
|
||||||
|
Text="{Binding Path=DataContext.ExportDate_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdNewOpenProjectFileDialogV}}}"
|
||||||
|
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||||
|
<TextBlock Grid.Column="3"
|
||||||
|
Text="{Binding dtExportDate}"/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGrid.RowDetailsTemplate>
|
||||||
|
</EgtBEAMWALL:EgtDataGrid>
|
||||||
|
|
||||||
|
<UniformGrid Columns="4" Grid.Row="2"
|
||||||
|
Margin="0,0,0,5">
|
||||||
|
<Button IsDefault="True" Name="OpenBtn"
|
||||||
|
Content="{Binding Open_Msg}"
|
||||||
|
Style="{DynamicResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Content="{Binding Archive_Msg}"
|
||||||
|
Command="{Binding Archive_Command}"
|
||||||
|
IsEnabled="{Binding bArchived_IsEnabled}"
|
||||||
|
Style="{DynamicResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Content="{Binding Delete_Msg}"
|
||||||
|
Command="{Binding Delete_Command}"
|
||||||
|
IsEnabled="{Binding bDelete_IsEnabled}"
|
||||||
|
Style="{DynamicResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Command="{Binding Cancel_Command}"
|
||||||
|
Content="{Binding Cancel_Msg}"
|
||||||
|
Style="{DynamicResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
Imports System.Windows
|
||||||
|
Imports System.Windows.Controls
|
||||||
|
Imports System.Windows.Input
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class OnlyProdNewOpenProjectFileDialogV
|
||||||
|
|
||||||
|
Private WithEvents m_OpenProjFileDialogVM As NewOpenProjectFileDialogVM
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New(Owner As Window, OpenProjFileDialogVM As NewOpenProjectFileDialogVM)
|
||||||
|
' Funzione che interpreta l'xaml
|
||||||
|
InitializeComponent()
|
||||||
|
Me.Owner = Owner
|
||||||
|
Me.DataContext = OpenProjFileDialogVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_OpenProjFileDialogVM = OpenProjFileDialogVM
|
||||||
|
AddHandler Me.Loaded, AddressOf OpenProjectFileDialog_Loaded
|
||||||
|
AddHandler Me.Closing, AddressOf OpenProjectFileDialog_Closing
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Public Function EgtShowDialog(ProjectType As ProjectType) As Boolean?
|
||||||
|
m_OpenProjFileDialogVM.Init(ProjectType)
|
||||||
|
' mostro la finestra di dialogo
|
||||||
|
Return Me.ShowDialog()
|
||||||
|
End Function
|
||||||
|
Public Function EgtShowDialog(ProjectType As ProjectType, ProjectList As List(Of ProjectFileVM)) As Boolean?
|
||||||
|
m_OpenProjFileDialogVM.Init(ProjectType, ProjectList)
|
||||||
|
' mostro la finestra di dialogo
|
||||||
|
Return Me.ShowDialog()
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function EgtShowDialog(ProjectType As ProjectType, GoToProd As Boolean) As Boolean?
|
||||||
|
m_OpenProjFileDialogVM.Init(ProjectType, Nothing, GoToProd)
|
||||||
|
' mostro la finestra di dialogo
|
||||||
|
Return Me.ShowDialog()
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub OpenProjectFileDialog_Loaded(sender As Object, e As RoutedEventArgs)
|
||||||
|
' Carico e imposto posizione finestra
|
||||||
|
WinPosFromIniToWindow(S_OPENFILEDIALOG, K_VIEWOPTIMWINPLACE, Me)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub OpenProjectFileDialog_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs)
|
||||||
|
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
||||||
|
e.Cancel = True
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
' Salvo posizione finestra (se non minimizzata)
|
||||||
|
WinPosFromWindowToIni(Me, S_OPENFILEDIALOG, K_VIEWOPTIMWINPLACE)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Private Sub ProjectList_MouseDoubleClick(sender As Object, e As MouseButtonEventArgs)
|
||||||
|
m_OpenProjFileDialogVM.ProjDoubleClick()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' EVENTS
|
||||||
|
|
||||||
|
Private Sub OpenBtn_Click(sender As Object, e As RoutedEventArgs) Handles OpenBtn.Click
|
||||||
|
DialogResult = m_OpenProjFileDialogVM.VerifySelected()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_OpenProjFileDialogVM.m_CloseWindow
|
||||||
|
Me.DialogResult = bDialogResult
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub MainDataGrid_CellEditEnding(sender As Object, e As DataGridCellEditEndingEventArgs)
|
||||||
|
'm_OpenProjFileDialogVM.SetIsEditNameActive(False)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared ReadOnly IsSelectedProperty As DependencyProperty = DependencyProperty.Register("IsSelected",
|
||||||
|
GetType(Boolean),
|
||||||
|
GetType(ItemsControl))
|
||||||
|
|
||||||
|
Public Property IsSelected As Boolean
|
||||||
|
Get
|
||||||
|
Return DirectCast(GetValue(IsSelectedProperty), Boolean)
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
SetValue(IsSelectedProperty, value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,203 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdOpenProjectFileDialogV"
|
||||||
|
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:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
|
Title="{Binding Title}"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="True"
|
||||||
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
|
MinHeight="500" MinWidth="500"
|
||||||
|
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
||||||
|
|
||||||
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="5*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<GroupBox Header="Filters"
|
||||||
|
Margin="5"
|
||||||
|
Visibility="{Binding Filters_Visibility}"
|
||||||
|
BorderBrush="{StaticResource BeamWall_RegentStBlue}">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
||||||
|
SelectedIndex="{Binding SelBTLDateType}"
|
||||||
|
Width="105"
|
||||||
|
Margin="5"
|
||||||
|
Style="{StaticResource OnlyProdCalcPanel_ComboBox}"/>
|
||||||
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
||||||
|
<ComboBox ItemsSource="{Binding DayTypeList}"
|
||||||
|
SelectedIndex="{Binding SelDayType}"
|
||||||
|
Width="105"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource OnlyProdCalcPanel_ComboBox}"/>
|
||||||
|
<StackPanel Orientation="Horizontal" Visibility="{Binding Date_Visibility}">
|
||||||
|
<TextBlock Text="{Binding From_Msg}"
|
||||||
|
Style="{StaticResource Filter_TextBlock}"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<DatePicker SelectedDate="{Binding dtStartDate}"
|
||||||
|
Style="{StaticResource Filter_DatePicker}"
|
||||||
|
CalendarStyle="{StaticResource Filter_Calendar}"/>
|
||||||
|
<TextBlock Text="{Binding To_Msg}"
|
||||||
|
Style="{StaticResource Filter_TextBlock}"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<DatePicker SelectedDate="{Binding dtEndDate}"
|
||||||
|
Style="{StaticResource Filter_DatePicker}"
|
||||||
|
CalendarStyle="{StaticResource Filter_Calendar}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Row="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
||||||
|
SelectedItem="{Binding SelFilterType}"
|
||||||
|
Width="105"
|
||||||
|
Margin="5"
|
||||||
|
Style="{StaticResource OnlyProdCalcPanel_ComboBox}"/>
|
||||||
|
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||||
|
Text="{Binding SearchText}"
|
||||||
|
Margin="5"
|
||||||
|
Visibility="{Binding SearchText_Visibility}"
|
||||||
|
Style="{StaticResource NewSearchText_TextBox}"/>
|
||||||
|
<StackPanel Grid.Column="2"
|
||||||
|
Orientation="Horizontal">
|
||||||
|
<TextBlock Text="Rows"
|
||||||
|
Style="{StaticResource OptionTextBlock}"
|
||||||
|
Foreground="{StaticResource BeamWall_Corduroy}"/>
|
||||||
|
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
||||||
|
SelectedIndex="{Binding SelRowQuantity}"
|
||||||
|
Width="55"
|
||||||
|
Style="{StaticResource OnlyProdCalcPanel_ComboBox}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
|
|
||||||
|
<Border Grid.Row="1" Style="{StaticResource OnlyProdPage_Border}" Margin="1"/>
|
||||||
|
|
||||||
|
<EgtBEAMWALL:EgtDataGrid Grid.Row="1"
|
||||||
|
ItemsSource="{Binding ProjectList}"
|
||||||
|
SelectedItem="{Binding SelProject}"
|
||||||
|
SelectionMode="Single"
|
||||||
|
Margin="5"
|
||||||
|
BindingColumns="{Binding ProjectColumns}"
|
||||||
|
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
||||||
|
AlternationCount="2"
|
||||||
|
ColumnHeaderBackground="{StaticResource BeamWall_Teal}"
|
||||||
|
ColumnHeaderForeground="{StaticResource BeamWall_White}"
|
||||||
|
ColumnHeaderHorizontalContentAlignment="Center"
|
||||||
|
ColumnHeaderFontWeight="Bold"
|
||||||
|
ColumnHeaderFontSize="15"
|
||||||
|
ColumnHeaderPadding="0,2,0,2"
|
||||||
|
Style="{StaticResource DataGrid_OnlyProd}"
|
||||||
|
CellStyle="{StaticResource CellDataGrid_CustomHighLight}">
|
||||||
|
<DataGrid.RowStyle>
|
||||||
|
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
||||||
|
<Setter Property="IsEnabled" Value="{Binding bIsEnabled}"/>
|
||||||
|
<EventSetter Event="MouseDoubleClick" Handler="ProjectList_MouseDoubleClick"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowStyle>
|
||||||
|
<DataGrid.Resources>
|
||||||
|
<!-- ProjId -->
|
||||||
|
<DataGridTextColumn x:Key="colPROJID" Binding="{Binding sProjId}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- ProdId -->
|
||||||
|
<DataGridTextColumn x:Key="colPRODID" Binding="{Binding sProdId}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Project Name -->
|
||||||
|
<DataGridTextColumn x:Key="colPROJNAME" Binding="{Binding sDescription}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- BTL FileName -->
|
||||||
|
<DataGridTextColumn x:Key="colBTLNAME" Binding="{Binding sBTLFileName}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- ListName -->
|
||||||
|
<DataGridTextColumn x:Key="colLISTNAME" Binding="{Binding sListName}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.ListName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Exported date -->
|
||||||
|
<DataGridTextColumn x:Key="colEXPDATE" Binding="{Binding dtExportDate}">
|
||||||
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.ExportDate_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Creation date -->
|
||||||
|
<DataGridTextColumn x:Key="colCRTDATE" Binding="{Binding dtCreateDate}">
|
||||||
|
<DataGridTextColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.CreateDate_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataGridTextColumn.Header>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Machine -->
|
||||||
|
<DataGridTextColumn x:Key="colMACHINE" Binding="{Binding sMachine}">
|
||||||
|
<DataGridTextColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Machine_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataGridTextColumn.Header>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
<!-- Name (per Prod) -->
|
||||||
|
<DataGridTextColumn x:Key="colNAME" Binding="{Binding sName}">
|
||||||
|
<DataGridTextColumn.Header>
|
||||||
|
<TextBlock Text="{Binding Path=DataContext.Name_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OnlyProdOpenProjectFileDialogV}}}"/>
|
||||||
|
</DataGridTextColumn.Header>
|
||||||
|
</DataGridTextColumn>
|
||||||
|
</DataGrid.Resources>
|
||||||
|
</EgtBEAMWALL:EgtDataGrid>
|
||||||
|
|
||||||
|
<UniformGrid Columns="3" Grid.Row="2" Margin="0,0,0,5">
|
||||||
|
<Button IsDefault="True" Name="OpenBtn"
|
||||||
|
Content="{Binding Open_Msg}"
|
||||||
|
Style="{DynamicResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button Content="{Binding Delete_Msg}"
|
||||||
|
Command="{Binding Delete_Command}"
|
||||||
|
Style="{DynamicResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
<Button IsCancel="True"
|
||||||
|
Content="{Binding Cancel_Msg}"
|
||||||
|
Style="{DynamicResource OnlyProdEgtWPFLib5_InputButton}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
Imports System.Windows
|
||||||
|
Imports System.Windows.Input
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class OnlyProdOpenProjectFileDialogV
|
||||||
|
|
||||||
|
Private WithEvents m_OpenProjFileDialogVM As OpenProjectFileDialogVM
|
||||||
|
|
||||||
|
#Region "CONSTRUCTOR"
|
||||||
|
|
||||||
|
Sub New(Owner As Window, OpenProjFileDialogVM As OpenProjectFileDialogVM)
|
||||||
|
' Funzione che interpreta l'xaml
|
||||||
|
InitializeComponent()
|
||||||
|
Me.Owner = Owner
|
||||||
|
Me.DataContext = OpenProjFileDialogVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_OpenProjFileDialogVM = OpenProjFileDialogVM
|
||||||
|
AddHandler Me.Loaded, AddressOf OpenProjectFileDialog_Loaded
|
||||||
|
AddHandler Me.Closing, AddressOf OpenProjectFileDialog_Closing
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' CONSTRUCTOR
|
||||||
|
|
||||||
|
#Region "METHODS"
|
||||||
|
|
||||||
|
Public Function EgtShowDialog(ProjectType As ProjectType) As Boolean?
|
||||||
|
m_OpenProjFileDialogVM.Init(ProjectType)
|
||||||
|
' mostro la finestra di dialogo
|
||||||
|
Return Me.ShowDialog()
|
||||||
|
End Function
|
||||||
|
Public Function EgtShowDialog(ProjectType As ProjectType, ProjectList As List(Of ProjectFileVM)) As Boolean?
|
||||||
|
m_OpenProjFileDialogVM.Init(ProjectType, ProjectList)
|
||||||
|
' mostro la finestra di dialogo
|
||||||
|
Return Me.ShowDialog()
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function EgtShowDialog(ProjectType As ProjectType, GoToProd As Boolean) As Boolean?
|
||||||
|
m_OpenProjFileDialogVM.Init(ProjectType, Nothing, GoToProd)
|
||||||
|
' mostro la finestra di dialogo
|
||||||
|
Return Me.ShowDialog()
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub OpenProjectFileDialog_Loaded(sender As Object, e As RoutedEventArgs)
|
||||||
|
' Carico e imposto posizione finestra
|
||||||
|
WinPosFromIniToWindow(S_OPENFILEDIALOG, K_VIEWOPTIMWINPLACE, Me)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub OpenProjectFileDialog_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs)
|
||||||
|
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
||||||
|
e.Cancel = True
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
' Salvo posizione finestra (se non minimizzata)
|
||||||
|
WinPosFromWindowToIni(Me, S_OPENFILEDIALOG, K_VIEWOPTIMWINPLACE)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' METHODS
|
||||||
|
|
||||||
|
#Region "EVENTS"
|
||||||
|
|
||||||
|
Private Sub ProjectList_MouseDoubleClick(sender As Object, e As MouseButtonEventArgs)
|
||||||
|
m_OpenProjFileDialogVM.ProjDoubleClick()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' EVENTS
|
||||||
|
|
||||||
|
Private Sub OpenBtn_Click(sender As Object, e As RoutedEventArgs) Handles OpenBtn.Click
|
||||||
|
DialogResult = m_OpenProjFileDialogVM.VerifySelected()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_OpenProjFileDialogVM.m_CloseWindow
|
||||||
|
Me.DialogResult = bDialogResult
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,19 +1,18 @@
|
|||||||
<EgtBEAMWALLCORE:OptimizerWindow x:Class="OpenProjectFileDialogV"
|
<EgtWPFLib5:EgtCustomWindow x:Class="OpenProjectFileDialogV"
|
||||||
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"
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core"
|
xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core"
|
||||||
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib"
|
Title="{Binding Title}"
|
||||||
Title="{Binding Title}"
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
||||||
ResizeMode="NoResize" TitleBarHeight="30"
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="True"
|
||||||
WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
IsMinimizable="False" WindowStartupLocation="CenterScreen" ShowInTaskbar="False"
|
||||||
MinHeight="500" MinWidth="500"
|
MinHeight="500" MinWidth="500"
|
||||||
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
DataContext="{Binding RelativeSource={RelativeSource Self}}">
|
||||||
Style="{StaticResource OptimizerWindow.Dialog}">
|
|
||||||
|
|
||||||
<EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
<EgtWPFLib5:FileNameConverter x:Key="FileNameConverter"/>
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow.Resources>
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -23,8 +22,8 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<GroupBox Header="Filters"
|
<GroupBox Header="Filters"
|
||||||
Visibility="{Binding Filters_Visibility}"
|
Margin="5"
|
||||||
Style="{StaticResource OpenProjectFile_GroupBox}">
|
Visibility="{Binding Filters_Visibility}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
@@ -37,23 +36,23 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
||||||
SelectedIndex="{Binding SelBTLDateType}"
|
SelectedIndex="{Binding SelBTLDateType}"
|
||||||
Style="{StaticResource NewOpenProjectFile_ComboBox}"/>
|
Width="105"
|
||||||
<StackPanel Grid.Column="1"
|
Margin="5"
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
Style="{StaticResource FeatureComboBox}"/>
|
||||||
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
||||||
<ComboBox ItemsSource="{Binding DayTypeList}"
|
<ComboBox ItemsSource="{Binding DayTypeList}"
|
||||||
SelectedIndex="{Binding SelDayType}"
|
SelectedIndex="{Binding SelDayType}"
|
||||||
Style="{StaticResource OpenProjectFile_ComboBox}"/>
|
Width="105"
|
||||||
<StackPanel Visibility="{Binding Date_Visibility}"
|
Margin="0,0,2.5,0"
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
Style="{StaticResource PartParam_ComboBox}"/>
|
||||||
|
<StackPanel Orientation="Horizontal" Visibility="{Binding Date_Visibility}">
|
||||||
<TextBlock Text="{Binding From_Msg}"
|
<TextBlock Text="{Binding From_Msg}"
|
||||||
Style="{StaticResource Filter_TextBlock}"/>
|
Style="{StaticResource Filter_TextBlock}"/>
|
||||||
<DatePicker SelectedDate="{Binding dtStartDate}"
|
<DatePicker SelectedDate="{Binding dtStartDate}"
|
||||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
|
||||||
Style="{StaticResource Filter_DatePicker}"/>
|
Style="{StaticResource Filter_DatePicker}"/>
|
||||||
<TextBlock Text="{Binding To_Msg}"
|
<TextBlock Text="{Binding To_Msg}"
|
||||||
Style="{StaticResource Filter_TextBlock}"/>
|
Style="{StaticResource Filter_TextBlock}"/>
|
||||||
<DatePicker SelectedDate="{Binding dtEndDate}"
|
<DatePicker SelectedDate="{Binding dtEndDate}"
|
||||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
|
||||||
Style="{StaticResource Filter_DatePicker}"/>
|
Style="{StaticResource Filter_DatePicker}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
@@ -66,128 +65,125 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
||||||
SelectedItem="{Binding SelFilterType}"
|
SelectedItem="{Binding SelFilterType}"
|
||||||
Style="{StaticResource NewOpenProjectFile_ComboBox}"/>
|
Width="105"
|
||||||
|
Margin="5"
|
||||||
|
Style="{StaticResource FeatureComboBox}"/>
|
||||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||||
Text="{Binding SearchText}"
|
Text="{Binding SearchText}"
|
||||||
Visibility="{Binding SearchText_Visibility}"
|
Margin="5"
|
||||||
Style="{StaticResource NewSearchText_TextBox}"/>
|
Visibility="{Binding SearchText_Visibility}"/>
|
||||||
<StackPanel Grid.Column="2"
|
<StackPanel Grid.Column="2"
|
||||||
Style="{StaticResource PartManager_StackPanel}">
|
Orientation="Horizontal">
|
||||||
<TextBlock Text="Rows"
|
<TextBlock Text="Rows"
|
||||||
Style="{StaticResource Option_TextBlock}"/>
|
Style="{StaticResource OptionTextBlock}"/>
|
||||||
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
||||||
SelectedIndex="{Binding SelRowQuantity}"
|
SelectedIndex="{Binding SelRowQuantity}"
|
||||||
Style="{StaticResource RowQTY_ComboBox}"/>
|
Style="{StaticResource FeatureComboBox}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
||||||
<Border Grid.Row="1"
|
<EgtBEAMWALL:EgtDataGrid Grid.Row="1"
|
||||||
Style="{StaticResource NewOpenProjectFileDialog_Border}"/>
|
ItemsSource="{Binding ProjectList}"
|
||||||
|
SelectedItem="{Binding SelProject}"
|
||||||
<EgwWPFBaseLib:EgwDataGrid Grid.Row="1"
|
CanUserAddRows="False"
|
||||||
ItemsSource="{Binding ProjectList}"
|
AutoGenerateColumns="False"
|
||||||
SelectedItem="{Binding SelProject}"
|
CanUserResizeRows="False"
|
||||||
SelectionMode="Single"
|
SelectionMode="Single"
|
||||||
Margin="5"
|
ScrollViewer.CanContentScroll="True"
|
||||||
ColumnLayouts="{Binding ProjectColumns}"
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||||||
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||||
AlternationCount="2"
|
ColumnHeaderBackground="{x:Null}"
|
||||||
ColumnHeaderStyle="{StaticResource Main_DataGridColumnHeader}"
|
Margin="5"
|
||||||
Style="{StaticResource Optimizer_DataGrid}"
|
BindingColumns="{Binding ProjectColumns}">
|
||||||
CellStyle="{StaticResource CellDataGrid_CustomHighLight}">
|
|
||||||
<DataGrid.RowStyle>
|
|
||||||
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
|
||||||
<Setter Property="IsEnabled" Value="{Binding bIsEnabled}"/>
|
|
||||||
<EventSetter Event="MouseDoubleClick" Handler="ProjectList_MouseDoubleClick"/>
|
|
||||||
</Style>
|
|
||||||
</DataGrid.RowStyle>
|
|
||||||
<DataGrid.Resources>
|
<DataGrid.Resources>
|
||||||
<!-- ProjId --><!--
|
<!-- ProjId -->
|
||||||
<DataGridTextColumn x:Key="colPROJID" Binding="{Binding sProjId}">
|
<DataGridTextColumn x:Key="colPROJID" Binding="{Binding sProjId}">
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
</DataGridTextColumn>-->
|
</DataGridTextColumn>
|
||||||
<!-- ProdId -->
|
<!-- ProdId -->
|
||||||
<DataGridTextColumn x:Key="colPRODID" Binding="{Binding sProdId}">
|
<DataGridTextColumn x:Key="colPRODID" Binding="{Binding sProdId}">
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Id_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<!-- Project Name --><!--
|
<!-- Project Name -->
|
||||||
<DataGridTextColumn x:Key="colPROJNAME" Binding="{Binding sDescription}">
|
<DataGridTextColumn x:Key="colPROJNAME" Binding="{Binding sDescription}">
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
</DataGridTextColumn>-->
|
</DataGridTextColumn>
|
||||||
<!-- BTL FileName -->
|
<!-- BTL FileName -->
|
||||||
<DataGridTextColumn x:Key="colBTLNAME" Binding="{Binding sBTLFileName}">
|
<DataGridTextColumn x:Key="colBTLNAME" Binding="{Binding sBTLFileName}">
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<!-- ListName --><!--
|
<!-- ListName -->
|
||||||
<DataGridTextColumn x:Key="colLISTNAME" Binding="{Binding sListName}">
|
<DataGridTextColumn x:Key="colLISTNAME" Binding="{Binding sListName}">
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.ListName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.ListName_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
</DataGridTextColumn>-->
|
</DataGridTextColumn>
|
||||||
<!-- Exported date --><!--
|
<!-- Exported date -->
|
||||||
<DataGridTextColumn x:Key="colEXPDATE" Binding="{Binding dtExportDate}">
|
<DataGridTextColumn x:Key="colEXPDATE" Binding="{Binding dtExportDate}">
|
||||||
<DataGridTextColumn.HeaderTemplate>
|
<DataGridTextColumn.HeaderTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding Path=DataContext.ExportDate_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.ExportDate_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGridTextColumn.HeaderTemplate>
|
</DataGridTextColumn.HeaderTemplate>
|
||||||
</DataGridTextColumn>-->
|
</DataGridTextColumn>
|
||||||
<!-- Creation date -->
|
<!-- Creation date -->
|
||||||
<DataGridTextColumn x:Key="colCRTDATE" Binding="{Binding dtCreateDate}">
|
<DataGridTextColumn x:Key="colCRTDATE" Binding="{Binding dtCreateDate}">
|
||||||
<DataGridTextColumn.Header>
|
<DataGridTextColumn.Header>
|
||||||
<TextBlock Text="{Binding Path=DataContext.CreateDate_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.CreateDate_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataGridTextColumn.Header>
|
</DataGridTextColumn.Header>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<!-- Machine -->
|
<!-- Machine -->
|
||||||
<DataGridTextColumn x:Key="colMACHINE" Binding="{Binding sMachine}">
|
<DataGridTextColumn x:Key="colMACHINE" Binding="{Binding sMachine}">
|
||||||
<DataGridTextColumn.Header>
|
<DataGridTextColumn.Header>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Machine_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Machine_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataGridTextColumn.Header>
|
</DataGridTextColumn.Header>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
<!-- Name (per Prod) --><!--
|
<!-- Name (per Prod) -->
|
||||||
<DataGridTextColumn x:Key="colNAME" Binding="{Binding sName}">
|
<DataGridTextColumn x:Key="colNAME" Binding="{Binding sName}">
|
||||||
<DataGridTextColumn.Header>
|
<DataGridTextColumn.Header>
|
||||||
<TextBlock Text="{Binding Path=DataContext.Name_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:OpenProjectFileDialogV}}}"/>
|
<TextBlock Text="{Binding Path=DataContext.Name_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALL:OpenProjectFileDialogV}}}"/>
|
||||||
</DataGridTextColumn.Header>
|
</DataGridTextColumn.Header>
|
||||||
</DataGridTextColumn>-->
|
</DataGridTextColumn>
|
||||||
</DataGrid.Resources>
|
</DataGrid.Resources>
|
||||||
</EgwWPFBaseLib:EgwDataGrid>
|
<DataGrid.RowStyle>
|
||||||
|
<Style TargetType="DataGridRow">
|
||||||
|
<Setter Property="IsEnabled" Value="{Binding bIsEnabled}"/>
|
||||||
|
<EventSetter Event="MouseDoubleClick" Handler="ProjectList_MouseDoubleClick"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.RowStyle>
|
||||||
|
</EgtBEAMWALL:EgtDataGrid>
|
||||||
|
|
||||||
<UniformGrid Grid.Row="2"
|
<UniformGrid Columns="3" Grid.Row="2" Margin="0,0,0,5">
|
||||||
Columns="3"
|
<Button IsDefault="True" Name="OpenBtn"
|
||||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
Content="{Binding Open_Msg}" Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button Name="OpenBtn"
|
|
||||||
IsDefault="True"
|
|
||||||
Content="{Binding Open_Msg}"
|
|
||||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
|
||||||
<Button Content="{Binding Delete_Msg}"
|
<Button Content="{Binding Delete_Msg}"
|
||||||
Command="{Binding Delete_Command}"
|
Command="{Binding Delete_Command}"
|
||||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
||||||
<Button IsCancel="True"
|
<Button IsCancel="True"
|
||||||
Content="{Binding Cancel_Msg}"
|
Content="{Binding Cancel_Msg}"
|
||||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
Style="{DynamicResource EgtWPFLib5_InputButton}"/>
|
||||||
</UniformGrid>
|
</UniformGrid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
Imports System.Windows
|
Imports System.ComponentModel
|
||||||
|
Imports System.IO
|
||||||
|
Imports System.Windows
|
||||||
|
Imports System.Windows.Controls
|
||||||
Imports System.Windows.Input
|
Imports System.Windows.Input
|
||||||
|
Imports EgtBEAMWALL.Core.ConstBeam
|
||||||
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
Imports EgtBEAMWALL
|
||||||
|
|
||||||
Public Class OpenProjectFileDialogV
|
Public Class OpenProjectFileDialogV
|
||||||
|
|
||||||
@@ -69,9 +75,7 @@ Public Class OpenProjectFileDialogV
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_OpenProjFileDialogVM.m_CloseWindow
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_OpenProjFileDialogVM.m_CloseWindow
|
||||||
' Salvo modifiche a colonne
|
|
||||||
EgwWPFBaseLib.EgwDataGrid.WriteColumnLayout(DataGridColumnsIniFile.m_sDataGridColumnsIniFile, S_OPENPROJFILEDLG_PROD, m_OpenProjFileDialogVM.ProjectColumns)
|
|
||||||
Me.DialogResult = bDialogResult
|
Me.DialogResult = bDialogResult
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -42,12 +42,12 @@ Public MustInherit Class OpenProjectFileDialogVM
|
|||||||
|
|
||||||
Protected m_GoToProd As Boolean = False
|
Protected m_GoToProd As Boolean = False
|
||||||
|
|
||||||
Protected m_ProjectColumns As New ObservableCollection(Of EgwWPFBaseLib.ColumnLayout)
|
Protected m_ProjectColumns As New ObservableCollection(Of EgtDataGridColumn)
|
||||||
Public Property ProjectColumns As ObservableCollection(Of EgwWPFBaseLib.ColumnLayout)
|
Public Property ProjectColumns As ObservableCollection(Of EgtDataGridColumn)
|
||||||
Get
|
Get
|
||||||
Return m_ProjectColumns
|
Return m_ProjectColumns
|
||||||
End Get
|
End Get
|
||||||
Set(value As ObservableCollection(Of EgwWPFBaseLib.ColumnLayout))
|
Set(value As ObservableCollection(Of EgtDataGridColumn))
|
||||||
m_ProjectColumns = value
|
m_ProjectColumns = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
@@ -408,8 +408,6 @@ Public MustInherit Class OpenProjectFileDialogVM
|
|||||||
#End Region ' FIELDS & PROPERTIES
|
#End Region ' FIELDS & PROPERTIES
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
' carico colonne
|
|
||||||
LoadColumns()
|
|
||||||
' leggo valori per filtri
|
' leggo valori per filtri
|
||||||
m_SelDayType = GetMainPrivateProfileInt(S_OPENFILEDIALOG, K_DAYTYPE, 0)
|
m_SelDayType = GetMainPrivateProfileInt(S_OPENFILEDIALOG, K_DAYTYPE, 0)
|
||||||
Select Case m_SelDayType
|
Select Case m_SelDayType
|
||||||
@@ -443,28 +441,51 @@ Public MustInherit Class OpenProjectFileDialogVM
|
|||||||
Public Overridable Sub RefreshProjectList()
|
Public Overridable Sub RefreshProjectList()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub LoadColumns()
|
Protected Sub LoadColumns(ProjectType As ProjectType)
|
||||||
' carico le colonne della datagrid
|
If ProjectType = ProjectType.PROJ Then
|
||||||
EgwWPFBaseLib.EgwDataGrid.ReadColumnLayout(DataGridColumnsIniFile.m_sDataGridColumnsIniFile, S_OPENPROJFILEDLG_PROD, ProjectColumns)
|
' carico le colonne della datagrid
|
||||||
' carico campi su cui eseguire il filtro di ricerca
|
GetPrivateProfileColumns(S_OPENPROJFILEDLG_PROJ, ProjectColumns)
|
||||||
m_BTLDateTypeList = New List(Of String)({CreateDate_Msg})
|
' carico campi su cui eseguire il filtro di ricerca
|
||||||
m_SelBTLDateType = BTLDateTypes.CREATEDATE
|
m_BTLDateTypeList = New List(Of String)({CreateDate_Msg, ExportDate_Msg})
|
||||||
NotifyPropertyChanged(NameOf(BTLDateTypeList))
|
m_SelBTLDateType = BTLDateTypes.CREATEDATE
|
||||||
NotifyPropertyChanged(NameOf(SelBTLDateType))
|
NotifyPropertyChanged(NameOf(BTLDateTypeList))
|
||||||
m_FilterTypeList = New ObservableCollection(Of IdNameStruct)({New IdNameStruct(FilterTypes.NULL, ""),
|
NotifyPropertyChanged(NameOf(SelBTLDateType))
|
||||||
New IdNameStruct(FilterTypes.ID, Id_Msg),
|
m_FilterTypeList = New ObservableCollection(Of IdNameStruct)({New IdNameStruct(FilterTypes.NULL, ""),
|
||||||
New IdNameStruct(FilterTypes.BTLFILENAME, BTLFileName_Msg),
|
New IdNameStruct(FilterTypes.ID, Id_Msg),
|
||||||
New IdNameStruct(FilterTypes.MACHINE, Machine_Msg)})
|
New IdNameStruct(FilterTypes.BTLFILENAME, BTLFileName_Msg),
|
||||||
m_SelFilterType = m_FilterTypeList.FirstOrDefault(Function(x) x.Id = FilterTypes.NULL)
|
New IdNameStruct(FilterTypes.LISTNAME, ListName_Msg),
|
||||||
NotifyPropertyChanged(NameOf(SelFilterType))
|
New IdNameStruct(FilterTypes.MACHINE, Machine_Msg)})
|
||||||
|
m_SelFilterType = m_FilterTypeList.FirstOrDefault(Function(x) x.Id = FilterTypes.NULL)
|
||||||
|
NotifyPropertyChanged(NameOf(SelFilterType))
|
||||||
|
ElseIf ProjectType = ProjectType.PROD Then
|
||||||
|
' carico le colonne della datagrid
|
||||||
|
GetPrivateProfileColumns(S_OPENPROJFILEDLG_PROD, ProjectColumns)
|
||||||
|
' carico campi su cui eseguire il filtro di ricerca
|
||||||
|
m_BTLDateTypeList = New List(Of String)({CreateDate_Msg})
|
||||||
|
m_SelBTLDateType = BTLDateTypes.CREATEDATE
|
||||||
|
NotifyPropertyChanged(NameOf(BTLDateTypeList))
|
||||||
|
NotifyPropertyChanged(NameOf(SelBTLDateType))
|
||||||
|
m_FilterTypeList = New ObservableCollection(Of IdNameStruct)({New IdNameStruct(FilterTypes.NULL, ""),
|
||||||
|
New IdNameStruct(FilterTypes.ID, Id_Msg),
|
||||||
|
New IdNameStruct(FilterTypes.BTLFILENAME, BTLFileName_Msg),
|
||||||
|
New IdNameStruct(FilterTypes.MACHINE, Machine_Msg)})
|
||||||
|
m_SelFilterType = m_FilterTypeList.FirstOrDefault(Function(x) x.Id = FilterTypes.NULL)
|
||||||
|
NotifyPropertyChanged(NameOf(SelFilterType))
|
||||||
|
End If
|
||||||
|
' setto la visibilità delle colonne delle EgtDataGrid
|
||||||
|
For Each col In ProjectColumns
|
||||||
|
col.ColumnVisibility = If(col.Visible, Visibility.Visible, Visibility.Collapsed)
|
||||||
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Function VerifySelected() As Boolean
|
Friend Function VerifySelected() As Boolean
|
||||||
' Salvo modifiche a colonne
|
|
||||||
EgwWPFBaseLib.EgwDataGrid.WriteColumnLayout(DataGridColumnsIniFile.m_sDataGridColumnsIniFile, S_OPENPROJFILEDLG_PROD, ProjectColumns)
|
|
||||||
If IsNothing(SelProject) Then Return False
|
If IsNothing(SelProject) Then Return False
|
||||||
Dim AllFilesInDir As IEnumerable(Of String) = Nothing
|
Dim AllFilesInDir As IEnumerable(Of String) = Nothing
|
||||||
If m_ProjectType = Core.ConstBeam.ProjectType.PROD Then
|
If m_ProjectType = Core.ConstBeam.ProjectType.PROJ Then
|
||||||
|
If String.IsNullOrWhiteSpace(SelProject.sProjDirPath) OrElse Not Directory.Exists(SelProject.sProjDirPath) Then Return False
|
||||||
|
' verifico se esiste ProdId
|
||||||
|
AllFilesInDir = Directory.EnumerateFiles(SelProject.sProjDirPath)
|
||||||
|
ElseIf m_ProjectType = Core.ConstBeam.ProjectType.PROD Then
|
||||||
If String.IsNullOrWhiteSpace(SelProject.sProdDirPath) OrElse Not Directory.Exists(SelProject.sProdDirPath) Then Return False
|
If String.IsNullOrWhiteSpace(SelProject.sProdDirPath) OrElse Not Directory.Exists(SelProject.sProdDirPath) Then Return False
|
||||||
AllFilesInDir = Directory.EnumerateFiles(SelProject.sProdDirPath)
|
AllFilesInDir = Directory.EnumerateFiles(SelProject.sProdDirPath)
|
||||||
Else
|
Else
|
||||||
@@ -480,13 +501,25 @@ Public MustInherit Class OpenProjectFileDialogVM
|
|||||||
|
|
||||||
Protected Function ProjectFilter(Proj As Object) As Boolean
|
Protected Function ProjectFilter(Proj As Object) As Boolean
|
||||||
Dim bProjectOk As Boolean = True
|
Dim bProjectOk As Boolean = True
|
||||||
Dim CurrProj As ProdFileVM = DirectCast(Proj, ProdFileVM)
|
If m_ProjectType = ProjectType.PROJ Then
|
||||||
If m_SelFilterType.Id <> FilterTypes.NULL AndAlso (
|
Dim CurrProj As ProjFileVM = DirectCast(Proj, ProjFileVM)
|
||||||
(m_SelFilterType.Id = BTLDateTypes.CREATEDATE AndAlso Not SearchDate.Contains(CurrProj.dtCreateDate.Date))) Then bProjectOk = False
|
If m_SelFilterType.Id <> FilterTypes.NULL AndAlso (
|
||||||
If m_SelFilterType.Id <> FilterTypes.NULL AndAlso m_SearchText <> String.Empty AndAlso (
|
(m_SelFilterType.Id = BTLDateTypes.EXPORTDATE AndAlso Not SearchDate.Contains(CurrProj.dtExportDate.Date)) OrElse
|
||||||
(m_SelFilterType.Id = FilterTypes.ID AndAlso CurrProj.sProdId.ToString.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0) OrElse
|
(m_SelFilterType.Id = BTLDateTypes.CREATEDATE AndAlso Not SearchDate.Contains(CurrProj.dtCreateDate.Date))) Then bProjectOk = False
|
||||||
(m_SelFilterType.Id = FilterTypes.BTLFILENAME AndAlso CurrProj.sBTLFileName.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0) OrElse
|
If m_SelFilterType.Id <> FilterTypes.NULL AndAlso m_SearchText <> String.Empty AndAlso (
|
||||||
(m_SelFilterType.Id = FilterTypes.MACHINE AndAlso CurrProj.sMachine.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0)) Then bProjectOk = False
|
(m_SelFilterType.Id = FilterTypes.ID AndAlso CurrProj.sProjId.ToString.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0) OrElse
|
||||||
|
(m_SelFilterType.Id = FilterTypes.BTLFILENAME AndAlso CurrProj.sBTLFileName.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0) OrElse
|
||||||
|
(m_SelFilterType.Id = FilterTypes.LISTNAME AndAlso CurrProj.sListName.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0) OrElse
|
||||||
|
(m_SelFilterType.Id = FilterTypes.MACHINE AndAlso CurrProj.sMachine.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0)) Then bProjectOk = False
|
||||||
|
ElseIf m_ProjectType = ProjectType.PROD Then
|
||||||
|
Dim CurrProj As ProdFileVM = DirectCast(Proj, ProdFileVM)
|
||||||
|
If m_SelFilterType.Id <> FilterTypes.NULL AndAlso (
|
||||||
|
(m_SelFilterType.Id = BTLDateTypes.CREATEDATE AndAlso Not SearchDate.Contains(CurrProj.dtCreateDate.Date))) Then bProjectOk = False
|
||||||
|
If m_SelFilterType.Id <> FilterTypes.NULL AndAlso m_SearchText <> String.Empty AndAlso (
|
||||||
|
(m_SelFilterType.Id = FilterTypes.ID AndAlso CurrProj.sProdId.ToString.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0) OrElse
|
||||||
|
(m_SelFilterType.Id = FilterTypes.BTLFILENAME AndAlso CurrProj.sBTLFileName.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0) OrElse
|
||||||
|
(m_SelFilterType.Id = FilterTypes.MACHINE AndAlso CurrProj.sMachine.IndexOf(SearchText, StringComparison.InvariantCultureIgnoreCase) < 0)) Then bProjectOk = False
|
||||||
|
End If
|
||||||
Return bProjectOk
|
Return bProjectOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
Imports System.Windows
|
|
||||||
|
|
||||||
Public Class OptimizerWindow
|
|
||||||
Inherits EgwWPFBaseLib.EgtWindow
|
|
||||||
|
|
||||||
Shared Sub New()
|
|
||||||
DefaultStyleKeyProperty.OverrideMetadata(GetType(OptimizerWindow), New FrameworkPropertyMetadata(GetType(OptimizerWindow)))
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
Imports System.IO
|
||||||
|
|
||||||
|
Public Class ProdFile
|
||||||
|
|
||||||
|
'Private m_nProjId As Integer = 0
|
||||||
|
'Public ReadOnly Property nProjId As Integer
|
||||||
|
' Get
|
||||||
|
' Return m_nProjId
|
||||||
|
' End Get
|
||||||
|
'End Property
|
||||||
|
|
||||||
|
'Friend ReadOnly Property sProjPath As String
|
||||||
|
' Get
|
||||||
|
' Dim sPath As String = String.Empty
|
||||||
|
' If IsNothing(m_nProjId) OrElse m_nProjId = 0 Then Return String.Empty
|
||||||
|
' sPath = refMainWindowVM.MainWindowM.sProjsDir & "\" & nProjId.ToString("0000") & "\" & nProjId.ToString("0000") & FILENAMESEPARATOR
|
||||||
|
' If Not IsNothing(m_nProdId) AndAlso m_nProdId > 0 Then
|
||||||
|
' sPath &= nProjId.ToString("0000")
|
||||||
|
' End If
|
||||||
|
' sPath &= FILENAMESEPARATOR & BTLFileName & ".nge"
|
||||||
|
' Return sPath
|
||||||
|
' End Get
|
||||||
|
'End Property
|
||||||
|
|
||||||
|
Private m_nProdId As Integer = 0
|
||||||
|
Public ReadOnly Property nProdId As Integer
|
||||||
|
Get
|
||||||
|
Return m_nProdId
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Friend ReadOnly Property sProdPath As String
|
||||||
|
Get
|
||||||
|
Dim sPath As String = String.Empty
|
||||||
|
If IsNothing(m_nProdId) OrElse m_nProdId = 0 Then Return String.Empty
|
||||||
|
Return refMainWindowVM.MainWindowM.sProdsDir & "\" & nProdId.ToString("0000") & "\" & nProdId.ToString("0000") & ".nge"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'Private m_BTLFileName As String = String.Empty
|
||||||
|
'Public ReadOnly Property BTLFileName As String
|
||||||
|
' Get
|
||||||
|
' Return m_BTLFileName
|
||||||
|
' End Get
|
||||||
|
'End Property
|
||||||
|
|
||||||
|
Private m_NewProd As Boolean
|
||||||
|
Friend Property NewProd As Boolean
|
||||||
|
Get
|
||||||
|
Return m_NewProd
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_NewProd = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Public ReadOnly Property ProjectFileName As String
|
||||||
|
Get
|
||||||
|
Return m_nProdId.ToString("0000")
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Sub New(ProdFileName As String)
|
||||||
|
Integer.TryParse(Path.GetFileNameWithoutExtension(ProdFileName), m_nProdId)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub SetProdId(nProdId As Integer)
|
||||||
|
m_nProdId = nProdId
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9.1 KiB |
@@ -0,0 +1,208 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdSetUpWindowV"
|
||||||
|
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"
|
||||||
|
Title="{Binding TitleMsg}"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
|
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
||||||
|
CloseCommand="{Binding CloseSetUpCommand, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}">
|
||||||
|
|
||||||
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
<Style x:Key="HorizontalScrollViewerItemsControlStyle" TargetType="{x:Type ItemsControl}">
|
||||||
|
<Setter Property="ItemsPanel">
|
||||||
|
<Setter.Value>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<WrapPanel Orientation="Vertical"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type ItemsControl}">
|
||||||
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" >
|
||||||
|
<ItemsPresenter/>
|
||||||
|
</ScrollViewer>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="3*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<UniformGrid Columns="4">
|
||||||
|
<Button Content="{Binding ApplyMsg}" Command="{Binding ApplyCommand}"
|
||||||
|
IsEnabled="{Binding IsEnabledApplyBtn}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding ArchiveMsg}" Command="{Binding ArchiveCommand}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding RetrievesMsg}" Command="{Binding RetrievesCommand}" Height="30"
|
||||||
|
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding AutomaticMsg}" Command="{Binding AutomaticCommand}" Height="30"
|
||||||
|
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
<TreeView Grid.Row="1" Name="ToolsTreeView" ItemsSource="{Binding ToolsList}">
|
||||||
|
<TreeView.Style>
|
||||||
|
<Style TargetType="{x:Type TreeView}">
|
||||||
|
<Setter Property="Background">
|
||||||
|
<Setter.Value>
|
||||||
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.35,0">
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</TreeView.Style>
|
||||||
|
|
||||||
|
<TreeView.ItemContainerStyle>
|
||||||
|
<Style TargetType="{x:Type TreeViewItem}">
|
||||||
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
||||||
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
||||||
|
<EventSetter Event="MouseDoubleClick" Handler="Tool_DoubleClick"/>
|
||||||
|
</Style>
|
||||||
|
</TreeView.ItemContainerStyle>
|
||||||
|
|
||||||
|
<TreeView.Resources>
|
||||||
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyToolItem}" ItemsSource="{Binding Items}">
|
||||||
|
|
||||||
|
<Grid Height="20">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Image Grid.Column="0" Source="{Binding PictureString}" Height="20" Width="20" Margin="0,0,5,0" />
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
||||||
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding FamilyColor}" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</HierarchicalDataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate DataType="{x:Type EgtWPFLib5:ToolItem}">
|
||||||
|
<Grid Height="20" ToolTip="{Binding ToolTipMsg}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
||||||
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding ToolColor}" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
</TreeView.Resources>
|
||||||
|
|
||||||
|
</TreeView>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid Grid.Column="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Image Source="{Binding SetUpImage}" MaxWidth="300"/>
|
||||||
|
|
||||||
|
<ItemsControl Grid.Column="1" ItemsSource="{Binding PositionGroupList}"
|
||||||
|
Style="{DynamicResource HorizontalScrollViewerItemsControlStyle}">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<StackPanel Orientation="Horizontal"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
|
||||||
|
<ItemsControl Grid.Column="1" ItemsSource="{Binding PositionList}" Margin="0,0,20,0">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<WrapPanel Orientation="Vertical"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid Margin="5,5,15,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="30"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Text="{Binding TcPos}"/>
|
||||||
|
<ItemsControl Grid.Column="1" ItemsSource="{Binding ExitToolAssociationList}"
|
||||||
|
HorizontalAlignment="Left">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<!--<WrapPanel Orientation="Horizontal" MaxWidth="200"/>-->
|
||||||
|
<UniformGrid Columns="1"/>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid Margin="10,0,0,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<ToggleButton Content="{Binding ExitPar}" Name="ExitBtn"
|
||||||
|
CommandParameter="{Binding SelectedItem,ElementName=ToolsTreeView}"
|
||||||
|
IsChecked="{Binding IsOccupied}" Height="25" Width="25" Margin="0,0,5,0"
|
||||||
|
Command="{Binding SetUpToolCommand}"
|
||||||
|
IsEnabled="{Binding IsEnabledPos}"
|
||||||
|
Background="{Binding ExitBtnBackgroundCol}"/>
|
||||||
|
<Border x:Name="ToolBorder" Grid.Column="1" BorderBrush="#4D84C4"
|
||||||
|
BorderThickness="1" ToolTip="{Binding ToolTipMsg}">
|
||||||
|
<Border.Style>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="Visibility" Value="Hidden"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding ElementName=ExitBtn, Path=IsChecked}" Value="True">
|
||||||
|
<Setter Property="Visibility" Value="Visible"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Border.Style>
|
||||||
|
<TextBlock Text="{Binding Tool.Name}" Margin="3"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
Imports EgtWPFLib5
|
||||||
|
Imports System.Windows.Controls
|
||||||
|
Imports System.Windows.Input
|
||||||
|
|
||||||
|
Public Class OnlyProdSetUpWindowV
|
||||||
|
|
||||||
|
Private WithEvents m_SetUpWindowVM As SetUpWindowVM
|
||||||
|
|
||||||
|
Sub New(Owner As System.Windows.Window, SetUpWindowVM As SetUpWindowVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
' This call is required by the designer.
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = SetUpWindowVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_SetUpWindowVM = SetUpWindowVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Tool_DoubleClick(sender As Object, e As MouseButtonEventArgs)
|
||||||
|
Dim TreeViewItem As TreeViewItem = DirectCast(sender, TreeViewItem)
|
||||||
|
If TypeOf TreeViewItem.DataContext Is ToolItem Then
|
||||||
|
Dim SelTool As ToolItem = DirectCast(TreeViewItem.DataContext, ToolItem)
|
||||||
|
m_SetUpWindowVM.ToolDoubleClick(SelTool)
|
||||||
|
e.Handled = True
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_SetUpWindowVM.m_CloseWindow
|
||||||
|
Me.DialogResult = bDialogResult
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,552 +0,0 @@
|
|||||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core;assembly=EgtBEAMWALL.Core"
|
|
||||||
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib"
|
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
||||||
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
|
||||||
|
|
||||||
<ResourceDictionary.MergedDictionaries>
|
|
||||||
<ResourceDictionary Source="/EgtBEAMWALL.Core;component/Themes/Generic.xaml"/>
|
|
||||||
</ResourceDictionary.MergedDictionaries>
|
|
||||||
|
|
||||||
<!--#region Colori per EgtWPFLib5-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBox.Static.Border" Color="{StaticResource BeamWall_Bombay_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori per EgtWPFLib5-->
|
|
||||||
|
|
||||||
<!--#region Colori Button-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Static.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Static.Border" Color="{StaticResource BeamWall_DoveGray_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.MouseOver.Background" Color="{StaticResource BeamWall_FrenchPass_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.MouseOver.Border" Color="{StaticResource BeamWall_BostonBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Pressed.Background" Color="{StaticResource BeamWall_TropicalBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Pressed.Border" Color="{StaticResource BeamWall_Calypso_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Disabled.Background" Color="{StaticResource BeamWall_WildSand_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Disabled.Border" Color="{StaticResource BeamWall_Bombay_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Disabled.Foreground" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.Static.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Pressed.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Pressed.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Disabled.Background" Color="{StaticResource BeamWall_Glacier_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Disabled.Border" Color="{StaticResource BeamWall_Glacier_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="{StaticResource BeamWall_White_Color}" Opacity="0.5"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.TitleBar.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Button.MainMenu.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.65"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="Button.MainMenu.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.General.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.PrManagerNew.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Button-->
|
|
||||||
|
|
||||||
<!--#region Colori ScrollBar-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Glyph" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Thumb" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Thumb" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Thumb" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Disabled.Background" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Disabled.Border" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Disabled.Glyph" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Button.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ScrollBar-->
|
|
||||||
|
|
||||||
<!--#region Colori ComboBox-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="{StaticResource BeamWall_Bombay_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="{StaticResource BeamWall_Seagull_Color}"/>
|
|
||||||
<LinearGradientBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Selago_Color}" Offset="0.0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_HawkesBlue_Color}" Offset="1.0"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="{StaticResource BeamWall_Seagull_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="{StaticResource BeamWall_CornflowerBlue_Color}"/>
|
|
||||||
<LinearGradientBrush x:Key="ComboBox.Pressed.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_HawkesBlue_Color}" Offset="0.0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_FrenchPass_Color}" Offset="1.0"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="{StaticResource BeamWall_CornflowerBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="{StaticResource BeamWall_Silver_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="{StaticResource BeamWall_Silver_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ComboBox-->
|
|
||||||
|
|
||||||
<!--#region Colori Expander-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Circle.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Circle.Fill" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Fill" Color="{StaticResource BeamWall_AliceBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Pressed.Circle.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Pressed.Circle.Fill" Color="{StaticResource BeamWall_PattensBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Pressed.Arrow.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Disabled.Circle.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Disabled.Circle.Fill" Color="{StaticResource BeamWall_Mercury_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}" Opacity="0.5"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Expander-->
|
|
||||||
|
|
||||||
<!--#region Colori ListBox-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeature.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureNotSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureNotSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.MacroCustom.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.MacroDefault.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.FeatureManager.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.LeftPanel.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.Strategy.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTL.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Item.MouseOver.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.MouseOver.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.MouseOver.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedActive.Background" Color="{StaticResource BeamWall_Keppel_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedActive.Border" Color="{StaticResource BeamWall_Keppel_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedActive.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ListBox-->
|
|
||||||
|
|
||||||
<!--#region Colori TabItem-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="0.85"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<LinearGradientBrush x:Key="TabItem.Selected.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.85"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Selected.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Disabled.Background" Color="{StaticResource BeamWall_Gallery_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Disabled.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori TabItem-->
|
|
||||||
|
|
||||||
<!--#region Colori TabControl-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TabControl.Static.EgtManageDialog.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="TabControl.Static.EgtManageDialog.Border" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TabControl.Static.Generic.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TabControl.Optimizer.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<!--#endregion Colori TabControl-->
|
|
||||||
|
|
||||||
<!--#region Colori ScrollViewer-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="ScrollViewer.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Silver_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Alto_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<!--#endregion Colori ScrollViewer-->
|
|
||||||
|
|
||||||
<!--#region Colori Grid-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Grid.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.65"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Grid.Static.ExpanderDown.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Grid.Static.ExpanderUp.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Grid.Statistics.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Grid.UserAdmin.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Grid-->
|
|
||||||
|
|
||||||
<!--#region Colori GridSplitter-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GridSplitter.Width.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GridSplitter.Height.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori GridSplitter-->
|
|
||||||
|
|
||||||
<!--#region Colori TreeView-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TreeView.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TreeView.Static.EgtManageDialog.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori TreeView-->
|
|
||||||
|
|
||||||
<!--#region Colori TextBlock-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.First.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.Second.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.Third.Foreground" Color="{StaticResource BeamWall_DarkGray_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.Fouth.Foreground" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.UserAdmin.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.StrategyModify.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.CALC_ROT.Foreground" Color="{StaticResource BeamWall_Blue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Prod.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Prod.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.RawPartList.Foreground" Color="{StaticResource BeamWall_Orange_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Error.Foreground" Color="{StaticResource BeamWall_Red_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.AlternationIndex_0.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.AlternationIndex_1.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.AlternationIndexIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion TextBlock-->
|
|
||||||
|
|
||||||
<!--#region Colori StackPanel-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.BTLTotParts.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="StackPanel.BTLTotTime.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="StackPanel.BTLRemainingTime.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.RawPart.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.Statistics.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori StackPanel-->
|
|
||||||
|
|
||||||
<!--#region Colori GroupBox-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.Static.Border" Color="{StaticResource BeamWall_Geyser_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.Static.OpenProjec.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.PDFPreview.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.MachinePanel.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori GroupBox-->
|
|
||||||
|
|
||||||
<!--#region Colori Border-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.GroupBox.First.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Static.GroupBox.Second.Border" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.Optmizer.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.EgtManageDialog.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.TitleBar.Background" Color="{StaticResource BeamWall_Casper_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Static.TitleBar.Border" Color="{StaticResource BeamWall_Casper_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.AboutBoxV.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Static.AboutBox.Border" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ButtonTitleBar.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.EgwWindow.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ControlTemplete.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ControlTemplete.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Border.WithoutTitleBar.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.EgtHexItem.Border" Color="{StaticResource BeamWall_Gold_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Parameter.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Parameter.Border" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.NewAddFeature.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.AlternationIndex.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainer.Background" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainer.Border" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainerIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainerIsSelected.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Strategy.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.BTL.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ForcedStrategyBTL.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.BTLPart.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.TotalTime.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.TotalTime.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.DoneTime.Background" Color="{StaticResource BeamWall_FruitSalad_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.DoneTime.Border" Color="{StaticResource BeamWall_FruitSalad_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.RemainingTime.Background" Color="{StaticResource BeamWall_FuelYellow_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.RemainingTime.Border" Color="{StaticResource BeamWall_FuelYellow_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ProjectType.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ProjectType.Border" Color="{StaticResource BeamWall_DarkGray_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.AddFeature.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.PRC.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Custom.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.MacroCustom.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Default.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.MacroDefault.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.BTLPartManager.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.BTLPartManager.Border" Color="{StaticResource BeamWall_Teal_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.SetUp.Border" Color="{StaticResource BeamWall_Indigo_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.TopPanel.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.TopPanel.Border" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Border-->
|
|
||||||
|
|
||||||
<!--#region Colori Rectangle-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Rectangle.Static.Stroke" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Rectangle.EgtColorPicker.Stroke" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Rectangle-->
|
|
||||||
|
|
||||||
<!--#region Colori StatusBar-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StatusBar.Static.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori StatusBar-->
|
|
||||||
|
|
||||||
<!--#region Colori DatePicker-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DatePicker.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="DatePicker.Static.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="DatePickerTextBox.Static.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori DatePicker-->
|
|
||||||
|
|
||||||
<!--#region Colori Calendar-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Calendar.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="0.16"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Calendar.Static.Border" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.75"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<!--#endregion Colori Calendar-->
|
|
||||||
|
|
||||||
<!--#region Colori DataGrid-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Main.Background" Color="{StaticResource BeamWall_Teal_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Main.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Feature.Background" Color="{StaticResource BeamWall_Keppel_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Feature.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.PParam.Background" Color="{StaticResource BeamWall_Downy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.PParam.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.RawPart.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.RawPart.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGrid.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="DataGrid.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGrid.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Selected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Selected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Selected.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Selected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Selected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Selected.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori DataGrid-->
|
|
||||||
|
|
||||||
<!--#region Colori OptimizerWindow-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="OptimizerWindow.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="OptimizerWindow.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="OptimizerWindow.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori OtimizerWindow-->
|
|
||||||
|
|
||||||
<!--#region Colori EgtCustomWindow-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="EgtCustomWindow.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="EgtCustomWindow.Static.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtCustomWindow.Static.TitleBarBorder" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtCustomWindow.Static.TitleBarForeground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori EgtCustomWindow-->
|
|
||||||
|
|
||||||
<!--#region Colori EgtFloatingPanel-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="EgtFloatingPanel.Static.Background" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtFloatingPanel.Static.Border" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori EgtFloatingPanel-->
|
|
||||||
|
|
||||||
<!--#region Colori EgtHexItem-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="EgtHexItem.Static.Background" Color="{StaticResource BeamWall_CornflowerBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtHexItem.Static.Border" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori EgtHexItem-->
|
|
||||||
|
|
||||||
<!--#region Colori Ellipse-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Ellipse.Static.Fill" Color="{StaticResource BeamWall_Blue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Ellipse.Parameter.Fill" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Ellipse.ParameterIsChecked.Fill" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Ellipse.UpdateBTL.Fill" Color="{StaticResource BeamWall_Red_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Ellipse-->
|
|
||||||
|
|
||||||
<!--#region Colori ToggleButton-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ToggleButton.Static.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ToggleButton-->
|
|
||||||
|
|
||||||
<!--#region Colori UniformGrid-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="UniformGrid.LeftPanel.Background" Color="{DynamicResource BeamWall_LinkWater_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion UniformGrid-->
|
|
||||||
|
|
||||||
<!--#region Colori ToolTip-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ToolTip.PParameters.Background" Color="{DynamicResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ToolTip.PParameters.Foreground" Color="{DynamicResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ToolTip-->
|
|
||||||
|
|
||||||
</ResourceDictionary>
|
|
||||||
@@ -1,552 +0,0 @@
|
|||||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
||||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core;assembly=EgtBEAMWALL.Core"
|
|
||||||
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib"
|
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
||||||
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5">
|
|
||||||
|
|
||||||
<ResourceDictionary.MergedDictionaries>
|
|
||||||
<ResourceDictionary Source="/EgtBEAMWALL.Core;component/Themes/Generic.xaml"/>
|
|
||||||
</ResourceDictionary.MergedDictionaries>
|
|
||||||
|
|
||||||
<!--#region Colori per EgtWPFLib5-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBox.Static.Border" Color="{StaticResource BeamWall_Bombay_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori per EgtWPFLib5-->
|
|
||||||
|
|
||||||
<!--#region Colori Button-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Static.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Static.Border" Color="{StaticResource BeamWall_DoveGray_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.MouseOver.Background" Color="{StaticResource BeamWall_FrenchPass_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.MouseOver.Border" Color="{StaticResource BeamWall_BostonBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Pressed.Background" Color="{StaticResource BeamWall_TropicalBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Pressed.Border" Color="{StaticResource BeamWall_Calypso_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Disabled.Background" Color="{StaticResource BeamWall_WildSand_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Disabled.Border" Color="{StaticResource BeamWall_Bombay_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ButtonBasic.Disabled.Foreground" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.Static.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Pressed.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Pressed.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Disabled.Background" Color="{StaticResource BeamWall_Glacier_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Disabled.Border" Color="{StaticResource BeamWall_Glacier_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="{StaticResource BeamWall_White_Color}" Opacity="0.5"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.TitleBar.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Button.MainMenu.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.65"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="Button.MainMenu.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.General.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Button.PrManagerNew.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Button-->
|
|
||||||
|
|
||||||
<!--#region Colori ScrollBar-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Glyph" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Static.Thumb" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.MouseOver.Thumb" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Thumb" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Pressed.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Disabled.Background" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Disabled.Border" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Disabled.Glyph" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ScrollBar.Button.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ScrollBar-->
|
|
||||||
|
|
||||||
<!--#region Colori ComboBox-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="{StaticResource BeamWall_Bombay_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="{StaticResource BeamWall_Seagull_Color}"/>
|
|
||||||
<LinearGradientBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Selago_Color}" Offset="0.0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_HawkesBlue_Color}" Offset="1.0"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="{StaticResource BeamWall_Seagull_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="{StaticResource BeamWall_CornflowerBlue_Color}"/>
|
|
||||||
<LinearGradientBrush x:Key="ComboBox.Pressed.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_HawkesBlue_Color}" Offset="0.0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_FrenchPass_Color}" Offset="1.0"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="{StaticResource BeamWall_CornflowerBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="{StaticResource BeamWall_Silver_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="{StaticResource BeamWall_Silver_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ComboBox-->
|
|
||||||
|
|
||||||
<!--#region Colori Expander-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Circle.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Circle.Fill" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Fill" Color="{StaticResource BeamWall_AliceBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Pressed.Circle.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Pressed.Circle.Fill" Color="{StaticResource BeamWall_PattensBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Pressed.Arrow.Stroke" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Disabled.Circle.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Disabled.Circle.Fill" Color="{StaticResource BeamWall_Mercury_Color}" Opacity="0.5"/>
|
|
||||||
<SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="{StaticResource BeamWall_RegentStBlue_Color}" Opacity="0.5"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Expander-->
|
|
||||||
|
|
||||||
<!--#region Colori ListBox-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeature.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureNotSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.NewAddFeatureNotSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.MacroCustom.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.MacroDefault.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.FeatureManager.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.LeftPanel.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.Strategy.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.StrategyNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTL.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.ForcedStrategyBTLNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartNoSelected.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="ListBox.BTLPartNoSelected.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Item.MouseOver.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.MouseOver.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.MouseOver.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedActive.Background" Color="{StaticResource BeamWall_Keppel_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedActive.Border" Color="{StaticResource BeamWall_Keppel_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedActive.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA"/>
|
|
||||||
<SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ListBox-->
|
|
||||||
|
|
||||||
<!--#region Colori TabItem-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="0.85"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.MouseOver.Background" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<LinearGradientBrush x:Key="TabItem.Selected.Background" EndPoint="0.5,1" StartPoint="0.5,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.85"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Selected.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Disabled.Background" Color="{StaticResource BeamWall_Gallery_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TabItem.Disabled.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori TabItem-->
|
|
||||||
|
|
||||||
<!--#region Colori TabControl-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TabControl.Static.EgtManageDialog.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="TabControl.Static.EgtManageDialog.Border" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TabControl.Static.Generic.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TabControl.Optimizer.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<!--#endregion Colori TabControl-->
|
|
||||||
|
|
||||||
<!--#region Colori ScrollViewer-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="ScrollViewer.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Silver_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Alto_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<!--#endregion Colori ScrollViewer-->
|
|
||||||
|
|
||||||
<!--#region Colori Grid-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Grid.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.65"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Grid.Static.ExpanderDown.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Grid.Static.ExpanderUp.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Grid.Statistics.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Grid.UserAdmin.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Grid-->
|
|
||||||
|
|
||||||
<!--#region Colori GridSplitter-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GridSplitter.Width.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GridSplitter.Height.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori GridSplitter-->
|
|
||||||
|
|
||||||
<!--#region Colori TreeView-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="TreeView.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TreeView.Static.EgtManageDialog.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori TreeView-->
|
|
||||||
|
|
||||||
<!--#region Colori TextBlock-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.First.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.Second.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.Third.Foreground" Color="{StaticResource BeamWall_DarkGray_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Static.Fouth.Foreground" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.UserAdmin.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.StrategyModify.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.CALC_ROT.Foreground" Color="{StaticResource BeamWall_Blue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Prod.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Prod.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.RawPartList.Foreground" Color="{StaticResource BeamWall_Orange_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.Error.Foreground" Color="{StaticResource BeamWall_Red_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="TextBlock.AlternationIndex_0.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.AlternationIndex_1.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="TextBlock.AlternationIndexIsSelected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion TextBlock-->
|
|
||||||
|
|
||||||
<!--#region Colori StackPanel-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.Static.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.BTLTotParts.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="StackPanel.BTLTotTime.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="StackPanel.BTLRemainingTime.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.RawPart.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StackPanel.Statistics.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori StackPanel-->
|
|
||||||
|
|
||||||
<!--#region Colori GroupBox-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.Static.Border" Color="{StaticResource BeamWall_Geyser_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.Static.OpenProjec.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.PDFPreview.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="GroupBox.MachinePanel.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori GroupBox-->
|
|
||||||
|
|
||||||
<!--#region Colori Border-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.GroupBox.First.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Static.GroupBox.Second.Border" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.Optmizer.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.EgtManageDialog.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.TitleBar.Background" Color="{StaticResource BeamWall_Casper_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Static.TitleBar.Border" Color="{StaticResource BeamWall_Casper_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Static.AboutBoxV.Border" Color="{StaticResource BeamWall_RegentStBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Static.AboutBox.Border" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ButtonTitleBar.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.EgwWindow.Border" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ControlTemplete.Background" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ControlTemplete.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Border.WithoutTitleBar.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.EgtHexItem.Border" Color="{StaticResource BeamWall_Gold_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Parameter.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.Parameter.Border" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.NewAddFeature.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.AlternationIndex.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainer.Background" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainer.Border" Color="{StaticResource BeamWall_LinkWater_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainerIsSelected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ItemContainerIsSelected.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Strategy.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.BTL.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ForcedStrategyBTL.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.BTLPart.Border" Color="Transparent"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.TotalTime.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.TotalTime.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.DoneTime.Background" Color="{StaticResource BeamWall_FruitSalad_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.DoneTime.Border" Color="{StaticResource BeamWall_FruitSalad_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.RemainingTime.Background" Color="{StaticResource BeamWall_FuelYellow_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.RemainingTime.Border" Color="{StaticResource BeamWall_FuelYellow_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.ProjectType.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.ProjectType.Border" Color="{StaticResource BeamWall_DarkGray_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.AddFeature.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.PRC.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Custom.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.MacroCustom.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.Default.Background" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.MacroDefault.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.BTLPartManager.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.BTLPartManager.Border" Color="{StaticResource BeamWall_Teal_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.SetUp.Border" Color="{StaticResource BeamWall_Indigo_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Border.TopPanel.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Border.TopPanel.Border" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Border-->
|
|
||||||
|
|
||||||
<!--#region Colori Rectangle-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Rectangle.Static.Stroke" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Rectangle.EgtColorPicker.Stroke" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Rectangle-->
|
|
||||||
|
|
||||||
<!--#region Colori StatusBar-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="StatusBar.Static.Background" Color="{StaticResource BeamWall_Alto_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori StatusBar-->
|
|
||||||
|
|
||||||
<!--#region Colori DatePicker-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DatePicker.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="DatePicker.Static.Border" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="DatePickerTextBox.Static.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori DatePicker-->
|
|
||||||
|
|
||||||
<!--#region Colori Calendar-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Calendar.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="0.16"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="Calendar.Static.Border" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_LinkWater_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_RegentStBlue_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Glacier_Color}" Offset="0.75"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Kashmir_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<!--#endregion Colori Calendar-->
|
|
||||||
|
|
||||||
<!--#region Colori DataGrid-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Main.Background" Color="{StaticResource BeamWall_Teal_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Main.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Feature.Background" Color="{StaticResource BeamWall_Keppel_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.Feature.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.PParam.Background" Color="{StaticResource BeamWall_Downy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.PParam.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.RawPart.Background" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGridColumnHeader.Static.RawPart.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="DataGrid.Static.Background" Color="Transparent"/>
|
|
||||||
<SolidColorBrush x:Key="DataGrid.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="DataGrid.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Static.Foreground" Color="{StaticResource BeamWall_Corduroy_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Selected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Selected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="RowDataGrid.Selected.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Selected.Background" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Selected.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="CellDataGrid.Selected.Border" Color="{StaticResource BeamWall_FountainBlue_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori DataGrid-->
|
|
||||||
|
|
||||||
<!--#region Colori OptimizerWindow-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="OptimizerWindow.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="OptimizerWindow.Static.Foreground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="OptimizerWindow.Static.Border" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori OtimizerWindow-->
|
|
||||||
|
|
||||||
<!--#region Colori EgtCustomWindow-->
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="EgtCustomWindow.Static.Background" EndPoint="0.5,1" StartPoint="0.35,0">
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
|
||||||
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
<SolidColorBrush x:Key="EgtCustomWindow.Static.Border" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtCustomWindow.Static.TitleBarBorder" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtCustomWindow.Static.TitleBarForeground" Color="{StaticResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori EgtCustomWindow-->
|
|
||||||
|
|
||||||
<!--#region Colori EgtFloatingPanel-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="EgtFloatingPanel.Static.Background" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtFloatingPanel.Static.Border" Color="{StaticResource BeamWall_Gray_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori EgtFloatingPanel-->
|
|
||||||
|
|
||||||
<!--#region Colori EgtHexItem-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="EgtHexItem.Static.Background" Color="{StaticResource BeamWall_CornflowerBlue_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="EgtHexItem.Static.Border" Color="{StaticResource BeamWall_Black_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori EgtHexItem-->
|
|
||||||
|
|
||||||
<!--#region Colori Ellipse-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Ellipse.Static.Fill" Color="{StaticResource BeamWall_Blue_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Ellipse.Parameter.Fill" Color="{StaticResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="Ellipse.ParameterIsChecked.Fill" Color="{StaticResource BeamWall_Kashmir_Color}"/>
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Ellipse.UpdateBTL.Fill" Color="{StaticResource BeamWall_Red_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori Ellipse-->
|
|
||||||
|
|
||||||
<!--#region Colori ToggleButton-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ToggleButton.Static.Background" Color="Transparent"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ToggleButton-->
|
|
||||||
|
|
||||||
<!--#region Colori UniformGrid-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="UniformGrid.LeftPanel.Background" Color="{DynamicResource BeamWall_LinkWater_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion UniformGrid-->
|
|
||||||
|
|
||||||
<!--#region Colori ToolTip-->
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ToolTip.PParameters.Background" Color="{DynamicResource BeamWall_Glacier_Color}"/>
|
|
||||||
<SolidColorBrush x:Key="ToolTip.PParameters.Foreground" Color="{DynamicResource BeamWall_White_Color}"/>
|
|
||||||
|
|
||||||
<!--#endregion Colori ToolTip-->
|
|
||||||
|
|
||||||
</ResourceDictionary>
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
|||||||
Public Class ThemesDataServiceM
|
|
||||||
|
|
||||||
#Region "FIELDS & PROPERTIES"
|
|
||||||
|
|
||||||
Public Property Name As String
|
|
||||||
Public Property Path As String
|
|
||||||
Public Property AssemblyName As String
|
|
||||||
|
|
||||||
#End Region ' Fields & Properties
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.IO
|
|
||||||
Imports System.Resources
|
|
||||||
Imports System.Windows
|
|
||||||
Imports EgtUILib
|
|
||||||
|
|
||||||
Public Class ThemesDataServiceVM
|
|
||||||
|
|
||||||
#Region "FIELDS & PROPERTIES"
|
|
||||||
|
|
||||||
Private ReadOnly m_Themes As New ObservableCollection(Of ThemesDataServiceM)()
|
|
||||||
|
|
||||||
#End Region ' Fields & Properties
|
|
||||||
|
|
||||||
#Region "CONSTRUCTOR"
|
|
||||||
|
|
||||||
Sub New()
|
|
||||||
ScanResources()
|
|
||||||
ScanDisk(THEMES_FOLDER)
|
|
||||||
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
|
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Ricerca i file dizionario contente il tema
|
|
||||||
''' </summary>
|
|
||||||
''' <param name="fileEnding"></param>
|
|
||||||
Private Sub ScanResources(ByVal Optional fileEnding As String = DICTIONARY_FILENAME)
|
|
||||||
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 ThemesDataServiceM() With {
|
|
||||||
.Name = GetNameFromPath(fileName),
|
|
||||||
.Path = "pack://application:,,,/WpfTheme;component/" & fileName
|
|
||||||
})
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
Next
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Ricerca i temi presenti nel programma
|
|
||||||
''' </summary>
|
|
||||||
''' <param name="relativePath"></param>
|
|
||||||
Private Sub ScanDisk(ByVal relativePath As String)
|
|
||||||
If Directory.Exists(AppDomain.CurrentDomain.BaseDirectory & relativePath) Then
|
|
||||||
Dim themeFiles = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory & relativePath, "*" & DICTIONARY_FILENAME, SearchOption.AllDirectories)
|
|
||||||
|
|
||||||
For Each fileName In themeFiles
|
|
||||||
m_Themes.Add(New ThemesDataServiceM() With {
|
|
||||||
.Name = GetNameFromPath(fileName, "\"c),
|
|
||||||
.Path = fileName
|
|
||||||
})
|
|
||||||
Next
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Funzione che permette di selezionare e applicare il tema
|
|
||||||
''' </summary>
|
|
||||||
''' <param name="theme"></param>
|
|
||||||
Public Sub SetTheme(ByVal theme As ThemesDataServiceM)
|
|
||||||
If theme Is Nothing Then
|
|
||||||
EgtOutLog("Error setting theme: Attempting to set theme to null.")
|
|
||||||
Return
|
|
||||||
End If
|
|
||||||
|
|
||||||
Try
|
|
||||||
Dim uri As New Uri($"pack://application:,,,/{theme.AssemblyName};component/{theme.Path}", UriKind.Absolute)
|
|
||||||
Application.Current.Resources.MergedDictionaries(1).Source = uri
|
|
||||||
Catch ex As Exception
|
|
||||||
EgtOutLog("Error setting theme: " & ex.Message)
|
|
||||||
End Try
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' Methods
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
<Grid x:Class="TitleBar"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Border Grid.ColumnSpan="6"
|
|
||||||
Style="{StaticResource TitleBar_Border}"/>
|
|
||||||
<Image MinWidth="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
|
|
||||||
Source="/Resources/EgalwareLogo.ico"/>
|
|
||||||
<ContentControl Grid.Column="1"/>
|
|
||||||
<TextBlock Grid.Column="2"
|
|
||||||
Text="{Binding sTitle}"
|
|
||||||
Style="{StaticResource TitleBar_TextBlock}"/>
|
|
||||||
</Grid>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
Imports System.Windows
|
|
||||||
|
|
||||||
Public Class TitleBar
|
|
||||||
|
|
||||||
' Proprietà che permette di attivare e disattivare lo spostamento della finestra
|
|
||||||
Public Shared ReadOnly TitleProperty As DependencyProperty = DependencyProperty.Register("Title", GetType(String), GetType(TitleBar), New PropertyMetadata(""))
|
|
||||||
Public Property Title() As Boolean
|
|
||||||
Get
|
|
||||||
Return CBool(GetValue(TitleProperty))
|
|
||||||
End Get
|
|
||||||
Set(ByVal value As Boolean)
|
|
||||||
SetValue(TitleProperty, value)
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
' Proprietà che permette di attivare e disattivare lo spostamento della finestra
|
|
||||||
Public Shared ReadOnly IsMinimizableProperty As DependencyProperty = DependencyProperty.Register("IsMinimizable", GetType(Boolean), GetType(TitleBar), New PropertyMetadata(True))
|
|
||||||
Public Property IsMinimizable() As Boolean
|
|
||||||
Get
|
|
||||||
Return CBool(GetValue(IsMinimizableProperty))
|
|
||||||
End Get
|
|
||||||
Set(ByVal value As Boolean)
|
|
||||||
SetValue(IsMinimizableProperty, value)
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
' Proprietà che permette di attivare e disattivare il bottone di chiusura della finestra
|
|
||||||
Public Shared ReadOnly IsClosableProperty As DependencyProperty = DependencyProperty.Register("IsClosable", GetType(Boolean), GetType(TitleBar), New PropertyMetadata(True))
|
|
||||||
Public Property IsClosable() As Boolean
|
|
||||||
Get
|
|
||||||
Return CBool(GetValue(IsClosableProperty))
|
|
||||||
End Get
|
|
||||||
Set(ByVal value As Boolean)
|
|
||||||
SetValue(IsClosableProperty, value)
|
|
||||||
If Not value Then
|
|
||||||
IsMinimizable = False
|
|
||||||
End If
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -0,0 +1,138 @@
|
|||||||
|
<EgtWPFLib5:EgtCustomWindow x:Class="OnlyProdToolDbWindowV"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||||
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||||
|
Title="{Binding Title}"
|
||||||
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
||||||
|
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
||||||
|
CloseCommand="{Binding CloseToolsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
|
||||||
|
Style="{StaticResource OnlyProd_EgtCustomWindow}">
|
||||||
|
<EgtWPFLib5:EgtCustomWindow.InputBindings>
|
||||||
|
<KeyBinding Key="Escape" Command="{Binding ReloadToolCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem,ElementName=ToolsTreeView}"/>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow.InputBindings>
|
||||||
|
|
||||||
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
<EgtWPFLib5:ToolDrawUUIDConverter x:Key="ToolDrawUUIDConverter"/>
|
||||||
|
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
|
||||||
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="0.75*"/>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="10*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<UniformGrid Grid.Row="0" Columns="3">
|
||||||
|
<Button Content="{Binding NewMsg}" Command="{Binding NewCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
|
||||||
|
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding SaveMsg}" Command="{Binding SaveCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
|
||||||
|
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding RemoveMsg}" Command="{Binding RemoveCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem, ElementName=ToolsTreeView}"
|
||||||
|
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}" Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
<TreeView Name="ToolsTreeView" Grid.Row="1" ItemsSource="{Binding ToolsList}">
|
||||||
|
<TreeView.Style>
|
||||||
|
<Style TargetType="{x:Type TreeView}">
|
||||||
|
<Setter Property="Background">
|
||||||
|
<Setter.Value>
|
||||||
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.35,0">
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_Mercury_Color}" Offset="0"/>
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_Concrete_Color}" Offset="0.45"/>
|
||||||
|
<GradientStop Color="{StaticResource BeamWall_White_Color}" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</TreeView.Style>
|
||||||
|
|
||||||
|
<TreeView.ItemContainerStyle>
|
||||||
|
<Style TargetType="{x:Type TreeViewItem}">
|
||||||
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
||||||
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
||||||
|
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
|
||||||
|
</Style>
|
||||||
|
</TreeView.ItemContainerStyle>
|
||||||
|
|
||||||
|
<TreeView.Resources>
|
||||||
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyToolTreeViewItem}" ItemsSource="{Binding Items}">
|
||||||
|
|
||||||
|
<Grid Height="20">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Image Grid.Column="0" Source="{Binding PictureString}" Height="20" Width="20" Margin="0,0,5,0" />
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</HierarchicalDataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate DataType="{x:Type EgtWPFLib5:ToolTreeViewItem}">
|
||||||
|
<Grid Height="20">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
|
||||||
|
<CheckBox Name="ActiveTxBx" Grid.Column="0" Height="15" Width="15" Margin="-15,0,5,0" VerticalContentAlignment="Center"
|
||||||
|
IsChecked="{Binding Active}"
|
||||||
|
Visibility="{Binding Path=DataContext.Active_Visibility,
|
||||||
|
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:EgtCustomWindow}}}"/>
|
||||||
|
<TextBlock Grid.Column="1" Text="{Binding NamePar}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
|
</TreeView.Resources>
|
||||||
|
|
||||||
|
</TreeView>
|
||||||
|
|
||||||
|
<UniformGrid Grid.Row="2" Columns="3">
|
||||||
|
<Button Content="{Binding ImportMsg}"
|
||||||
|
Command="{Binding ImportCommand}"
|
||||||
|
IsEnabled="{Binding IsEnabledImpExpBtn, Mode=OneWay}"
|
||||||
|
Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding ExportMsg}"
|
||||||
|
Command="{Binding ExportCommand}"
|
||||||
|
IsEnabled="{Binding IsEnabledImpExpBtn, Mode=OneWay}"
|
||||||
|
Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
<Button Content="{Binding ResetMsg}"
|
||||||
|
Command="{Binding ReloadToolCommand}"
|
||||||
|
CommandParameter="{Binding Path=SelectedItem,ElementName=ToolsTreeView}"
|
||||||
|
Height="30"
|
||||||
|
Style="{StaticResource OnlyRightPanel_HalfRound_Button}"/>
|
||||||
|
</UniformGrid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<ContentControl Content="{Binding Path=ParamPageV}" Grid.Column="1"/>
|
||||||
|
|
||||||
|
<!--ContentControl che ospita la scena restituita sotto forma di WindowsFormsHost-->
|
||||||
|
<ContentControl Content="{Binding ToolSceneHost}" Grid.Column="2"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</EgtWPFLib5:EgtCustomWindow>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
Imports EgtWPFLib5
|
||||||
|
Imports System.Windows.Input
|
||||||
|
Imports EgtUILib
|
||||||
|
|
||||||
|
Public Class OnlyProdToolDbWindowV
|
||||||
|
|
||||||
|
Private WithEvents m_ToolDbWindowVM As ToolDbWindowVM
|
||||||
|
|
||||||
|
Sub New(Owner As System.Windows.Window, ToolDbWindowVM As ToolDbWindowVM)
|
||||||
|
MyBase.New(Owner)
|
||||||
|
' This call is required by the designer.
|
||||||
|
InitializeComponent()
|
||||||
|
Me.DataContext = ToolDbWindowVM
|
||||||
|
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
||||||
|
m_ToolDbWindowVM = ToolDbWindowVM
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ToolsDbView_Closed(bDialogResult As Boolean) Handles m_ToolDbWindowVM.m_CloseWindow
|
||||||
|
' Imposto contesto generale
|
||||||
|
EgtSetCurrentContext(ToolDbWindowVM.ProjectSceneContext)
|
||||||
|
' Cancello contesto di visualizzazione utensile
|
||||||
|
EgtDeleteContext(ToolDbWindowVM.ToolDbSceneContext)
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ToolsDbView_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles Me.Closing
|
||||||
|
If (Keyboard.Modifiers And ModifierKeys.Alt) = ModifierKeys.Alt OrElse Keyboard.IsKeyDown(Key.F4) Then
|
||||||
|
e.Cancel = True
|
||||||
|
Return
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -6,6 +6,19 @@ Public Module Configuration
|
|||||||
' Test per comunicazione
|
' Test per comunicazione
|
||||||
Public m_commLib As DataSyncro
|
Public m_commLib As DataSyncro
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Flag per impostare la visualizzazione con la singola pagina
|
||||||
|
''' </summary>
|
||||||
|
Private m_bOnlyProd As Boolean
|
||||||
|
Public ReadOnly Property bOnlyProd As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bOnlyProd
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public Sub SetOnlyProd(value As Boolean)
|
||||||
|
m_bOnlyProd = value
|
||||||
|
End Sub
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' Flag per visualizzare il pulsante Db Attrezzaggi
|
''' Flag per visualizzare il pulsante Db Attrezzaggi
|
||||||
''' </summary>
|
''' </summary>
|
||||||
@@ -32,4 +45,81 @@ Public Module Configuration
|
|||||||
m_bMachConfig = value
|
m_bMachConfig = value
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Flag per impostare la visualizzazione con la singola pagina
|
||||||
|
''' </summary>
|
||||||
|
Private m_sServerAddressRelease As String
|
||||||
|
Public ReadOnly Property sServerAddressRelease As String
|
||||||
|
Get
|
||||||
|
Return m_sServerAddressRelease
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Public Sub SetServerAddressRelease(value As String)
|
||||||
|
m_sServerAddressRelease = value
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
' Versione attuale del programma
|
||||||
|
Public ReadOnly Property ActualVersion As String
|
||||||
|
Get
|
||||||
|
Return My.Application.Info.Version.ToString()
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Funzione che recupera la directory del file INI
|
||||||
|
''' </summary>
|
||||||
|
Public Sub GetIniFileDirectory()
|
||||||
|
' Impostazione path radice per i dati
|
||||||
|
Dim m_sDataRoot As String = System.AppDomain.CurrentDomain.BaseDirectory
|
||||||
|
If EgtUILib.GetPrivateProfileString(ConstGen.S_DATA, ConstGen.K_DATAROOT, "", m_sDataRoot, m_sDataRoot & "\" & ConstGen.DAT_FILE_NAME) = 0 Then
|
||||||
|
m_sDataRoot = System.AppDomain.CurrentDomain.BaseDirectory
|
||||||
|
End If
|
||||||
|
' Impostazione direttorio di configurazione
|
||||||
|
Dim m_sConfigDir As String = m_sDataRoot & "\" & ConstGen.CONF_DIR
|
||||||
|
' Impostazione path Ini file
|
||||||
|
IniFile.m_sIniFile = m_sConfigDir & "\" & Core.ConstIni.INI_FILE_NAME
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Funzione per recuperare bOnlyProd
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="Section">Sezione dove si trova la variabile che devo cercare</param>
|
||||||
|
''' <param name="Key">Variabile che sto cercando</param>
|
||||||
|
''' <param name="Path">Cartella dove e' presente il file ini</param>
|
||||||
|
''' <param name="Default_Value">Valore di defaul opzionabile</param>
|
||||||
|
''' <returns></returns>
|
||||||
|
Public Function Read_Value(Section As String, Key As String, Path As String, Optional Default_Value As String = "") As String
|
||||||
|
Dim Reader_Lines As String() = System.IO.File.ReadAllLines(Path)
|
||||||
|
Dim Current_Section As String = ""
|
||||||
|
|
||||||
|
For Each Reader_Line As String In Reader_Lines
|
||||||
|
|
||||||
|
If Reader_Line.StartsWith("[") AndAlso Reader_Line.EndsWith("]") Then
|
||||||
|
Current_Section = Reader_Line
|
||||||
|
ElseIf Current_Section.Equals($"[{Section}]") Then
|
||||||
|
Dim lineParts As String() = Reader_Line.Split({"="c}, 2)
|
||||||
|
|
||||||
|
If lineParts.Length >= 1 AndAlso lineParts(0) = Key Then
|
||||||
|
Return If(lineParts.Length >= 2, lineParts(1), Default_Value)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return Default_Value
|
||||||
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Metodo che controlla la comunicazione server
|
||||||
|
''' </summary>
|
||||||
|
''' <returns></returns>
|
||||||
|
Public Function GetComunication() As Boolean
|
||||||
|
' eseguo test per comunicazione server (ping, alive)
|
||||||
|
m_commLib = New DataSyncro(EgtBEAMWALL.Core.Configuration.sServerAddressRelease)
|
||||||
|
If m_commLib.CheckRemote() Then
|
||||||
|
Return True
|
||||||
|
Else
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End Function
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Imports System.Collections.ObjectModel
|
Imports System.Windows
|
||||||
Imports System.Windows
|
|
||||||
Imports EgtUILib
|
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
|
Imports EgtUILib
|
||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
|
||||||
Public Module DimensionsIniFile
|
Public Module DimensionsIniFile
|
||||||
|
|
||||||
@@ -32,11 +32,6 @@ Public Module DimensionsIniFile
|
|||||||
End If
|
End If
|
||||||
Index += 1
|
Index += 1
|
||||||
End While
|
End While
|
||||||
If GridDimsList.Count = 0 Then
|
|
||||||
For Ind As Integer = 0 To 4
|
|
||||||
GridDimsList.Add(New GridDimension(GridName, Ind, 0, New GridLength(1, GridUnitType.Star)))
|
|
||||||
Next
|
|
||||||
End If
|
|
||||||
For Each GridDimsItem In GridDimsList
|
For Each GridDimsItem In GridDimsList
|
||||||
GridDimsItem.GridDimensions = GridDimsList
|
GridDimsItem.GridDimensions = GridDimsList
|
||||||
Next
|
Next
|
||||||
@@ -59,4 +54,8 @@ Public Module DimensionsIniFile
|
|||||||
Return WritePrivateProfileString(GridName, Index, sValue, m_sDimensionsIniFile)
|
Return WritePrivateProfileString(GridName, Index, sValue, m_sDimensionsIniFile)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Private Function GetGridLengthFromIndexAndType(GridDimsList As List(Of GridDimension), Index As Integer, DimType As DimensionType) As GridDimension
|
||||||
|
Return GridDimsList.FirstOrDefault(Function(x) x.Index = Index And x.DimType = DimType)
|
||||||
|
End Function
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
WARNING = 2
|
WARNING = 2
|
||||||
ERROR_ = 3
|
ERROR_ = 3
|
||||||
COLLISION = 4
|
COLLISION = 4
|
||||||
SECTION = 5
|
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Public Enum EventType
|
Public Enum EventType
|
||||||
@@ -64,7 +63,7 @@ Public Enum StatusMapOpType
|
|||||||
ChangeProdInProdRequest = 16
|
ChangeProdInProdRequest = 16
|
||||||
OpenPageInViewOptimRequest = 17
|
OpenPageInViewOptimRequest = 17
|
||||||
MachGroupValidationUpdate = 18
|
MachGroupValidationUpdate = 18
|
||||||
ChangeProdInOptimizerRequest = 19
|
ChangeProdInOnlyProdRequest = 19
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Public Enum DimensionType
|
Public Enum DimensionType
|
||||||
|
|||||||
@@ -0,0 +1,81 @@
|
|||||||
|
Imports EgtUILib
|
||||||
|
|
||||||
|
Public Module ManageView
|
||||||
|
|
||||||
|
' Tipo di progetto aperto
|
||||||
|
Private m_Type As BWType
|
||||||
|
|
||||||
|
' Per macchine pareti:
|
||||||
|
' Posizione vista
|
||||||
|
Private m_nViewDir As VT
|
||||||
|
|
||||||
|
Public Function BWSetView(nView As VT, Optional bRedraw As Boolean = True)
|
||||||
|
' condizioni che cambiano la vista del progetto
|
||||||
|
Select Case m_Type
|
||||||
|
Case BWType.BEAM
|
||||||
|
EgtSetView(VT.ISO_SW, bRedraw)
|
||||||
|
Case BWType.WALL
|
||||||
|
Select Case nView
|
||||||
|
Case VT.TOP
|
||||||
|
Select Case m_nViewDir
|
||||||
|
Case VT.ISO_SW, VT.ISO_SE
|
||||||
|
EgtSetGenericView(0, -90, bRedraw) ' equivalente a vista TOP
|
||||||
|
Case VT.ISO_NW, VT.ISO_NE
|
||||||
|
EgtSetGenericView(0, 90, bRedraw) ' equivalente a vista TOP ruotata di 180 su Z
|
||||||
|
End Select
|
||||||
|
Case VT.FRONT
|
||||||
|
Select Case m_nViewDir
|
||||||
|
Case VT.ISO_SW, VT.ISO_SE
|
||||||
|
EgtSetGenericView(90, -90, bRedraw) ' equivalente a vista FRONT
|
||||||
|
Case VT.ISO_NW, VT.ISO_NE
|
||||||
|
EgtSetGenericView(90, 90, bRedraw) ' equivalente a vista FRONT ruotata di 180 su Z
|
||||||
|
End Select
|
||||||
|
Case VT.BACK
|
||||||
|
Select Case m_nViewDir
|
||||||
|
Case VT.ISO_SW, VT.ISO_SE
|
||||||
|
EgtSetGenericView(-90, -90, bRedraw) ' equivalente a vista BACK
|
||||||
|
Case VT.ISO_NW, VT.ISO_NE
|
||||||
|
EgtSetGenericView(-90, 90, bRedraw) ' equivalente a vista BACK ruotata di 180 su Z
|
||||||
|
End Select
|
||||||
|
Case VT.RIGHT
|
||||||
|
Select Case m_nViewDir
|
||||||
|
Case VT.ISO_SW, VT.ISO_SE
|
||||||
|
EgtSetGenericView(90, 0, bRedraw) ' equivalente a vista RIGHT
|
||||||
|
Case VT.ISO_NW, VT.ISO_NE
|
||||||
|
EgtSetGenericView(-90, 0, bRedraw) ' equivalente a vista RIGHT ruotata di 180 su Z
|
||||||
|
End Select
|
||||||
|
Case VT.LEFT
|
||||||
|
Select Case m_nViewDir
|
||||||
|
Case VT.ISO_SW, VT.ISO_SE
|
||||||
|
EgtSetGenericView(-90, 0, bRedraw) ' equivalente a vista RIGHT
|
||||||
|
Case VT.ISO_NW, VT.ISO_NE
|
||||||
|
EgtSetGenericView(90, 0, bRedraw) ' equivalente a vista RIGHT ruotata di 180 su Z
|
||||||
|
End Select
|
||||||
|
Case VT.ISO_SW
|
||||||
|
Select Case m_nViewDir
|
||||||
|
Case VT.ISO_SW, VT.ISO_SE
|
||||||
|
EgtSetGenericView(60, 225, bRedraw) ' equivalente a vista ISO_SW
|
||||||
|
Case VT.ISO_NW, VT.ISO_NE
|
||||||
|
EgtSetGenericView(60, 45, bRedraw) ' equivalente a vista ISO_SW ruotata di 180 su Z
|
||||||
|
End Select
|
||||||
|
Case Else ' VT.ISO_SW
|
||||||
|
Select Case m_nViewDir
|
||||||
|
Case VT.ISO_SW, VT.ISO_SE
|
||||||
|
EgtSetGenericView(60, 225, bRedraw) ' equivalente a vista ISO_SW
|
||||||
|
Case VT.ISO_NW, VT.ISO_NE
|
||||||
|
EgtSetGenericView(60, 45, bRedraw) ' equivalente a vista ISO_SW ruotata di 180 su Z
|
||||||
|
End Select
|
||||||
|
End Select
|
||||||
|
End Select
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Sub UpdateMachParam(ViewDir As Integer)
|
||||||
|
m_nViewDir = ViewDir
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub UpdateBWType(Type As BWType)
|
||||||
|
m_Type = Type
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Module
|
||||||
@@ -45,4 +45,4 @@ Public Class MyMachine
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user