EgtCAM5 1.8b2 :
- corretto problema con sottotipo lavorazione in gestione DB lavorazioni.
This commit is contained in:
+3
-3
@@ -76,15 +76,15 @@ Public Module Utility
|
||||
Return Name
|
||||
End Function
|
||||
|
||||
Friend Shared Function SearchToId(Id As Integer, List As ObservableCollection(Of IdNameStruct)) As Integer
|
||||
Friend Shared Function IndFromId(Id As Integer, List As ObservableCollection(Of IdNameStruct)) As Integer
|
||||
For i = 0 To List.Count - 1
|
||||
If List(i).Id = Id Then Return i
|
||||
Next
|
||||
Return 0
|
||||
End Function
|
||||
|
||||
Friend Shared Function SearchFromId(Id As Integer, List As ObservableCollection(Of IdNameStruct)) As Integer
|
||||
Return List(Id).Id
|
||||
Friend Shared Function IdFromInd(Ind As Integer, List As ObservableCollection(Of IdNameStruct)) As Integer
|
||||
Return List(Ind).Id
|
||||
End Function
|
||||
|
||||
End Structure
|
||||
|
||||
Reference in New Issue
Block a user