Correzione controller
Aggiunta gestione del passaggio da prod a proj con scelta di questultimo
This commit is contained in:
@@ -145,12 +145,12 @@ Public Class OpenProjectFileDialogVM
|
||||
Private m_cmdProjectDoubleClick As ICommand
|
||||
Private m_cmdDelete As ICommand
|
||||
|
||||
Public Function Init(ProjectType As ProjectType, Optional ProjectList As List(Of ProjectFileVM) = Nothing) As Boolean?
|
||||
Public Function Init(ProjectType As ProjectType, Optional CurrProjectList As List(Of ProjectFileVM) = Nothing) As Boolean?
|
||||
m_ProjectType = ProjectType
|
||||
' carico colonne
|
||||
LoadColumns(ProjectType)
|
||||
' carico lista progetti
|
||||
If IsNothing(ProjectList) OrElse ProjectList.Count = 0 Then
|
||||
If IsNothing(CurrProjectList) OrElse CurrProjectList.Count = 0 Then
|
||||
' leggo da db
|
||||
If ProjectType = ProjectType.PROJ Then
|
||||
Dim DbProjectList As New List(Of ProjFileM)
|
||||
@@ -166,7 +166,8 @@ Public Class OpenProjectFileDialogVM
|
||||
Next
|
||||
End If
|
||||
Else
|
||||
m_ProjectList = New ObservableCollection(Of ProjectFileVM)(ProjectList)
|
||||
m_ProjectList = New ObservableCollection(Of ProjectFileVM)(CurrProjectList)
|
||||
NotifyPropertyChanged(NameOf(ProjectList))
|
||||
End If
|
||||
End Function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user