If msg.StartsWith("D#") Then '表示删除了行
Dim pts() As String = msg.Split("#")
If pts.Length = 3 Then
If DataTables.Contains(pts(1)) = True Then '如果表加载
Dim dr As DataRow = DataTables(pts(1)).Find("[_Identify] = " & pts(2))
If dr IsNot Nothing Then
DataTables(pts(1)).RemoveFor("[_Identify] = " & pts(2)) '移除行
End If
End If
End If
End If
If Tables("库存表").Current IsNot Nothing
Dim Result As DialogResult
Result = MessageBox.Show("是否删除选定行", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = DialogResult.Yes Then
Dim r As Row = Tables("库存表").Current
Dim msg As String = "D#" & "库存表" & "#" & r("_Identify")
r.Delete()
Tables("库存表").Save()
For Each bd As QQBuddy In QQClient.Buddies
If bd.Online Then
QQClient.Send(bd.name, msg)
End If
Next
End If
End If