Zooflow: Finish user relations

This commit is contained in:
Jonathan Jenne
2022-03-10 15:15:11 +01:00
parent 8ace2fe11f
commit 721732c0af
13 changed files with 171 additions and 70 deletions

View File

@@ -7,9 +7,22 @@ Imports DigitalData.Modules.Base
Public Class ClassDragDrop
Inherits BaseClass
Public Enum ResultType
PrimaryKey
RowHandle
End Enum
Private downHitInfo As GridHitInfo = Nothing
Private SelectedResultType As ResultType
Public Sub New(LogConfig As LogConfig)
MyBase.New(LogConfig)
SelectedResultType = ResultType.PrimaryKey
End Sub
Public Sub New(LogConfig As LogConfig, pResultType As ResultType)
MyBase.New(LogConfig)
SelectedResultType = pResultType
End Sub
Public Sub AddGridView(view As GridView)
@@ -62,7 +75,16 @@ Public Class ClassDragDrop
If Not IsNothing(row) Then
Try
dragDropData = row.Item("GUID") & "|" & source
Dim oKey As String
Select Case SelectedResultType
Case ResultType.RowHandle
oKey = downHitInfo.RowHandle
Case Else
oKey = row.Item("GUID")
End Select
dragDropData = $"{oKey}|{source}"
view.GridControl.DoDragDrop(dragDropData, DragDropEffects.Move)
downHitInfo = Nothing