public async Task ClearPayload()
 {
     Payload.FromContainer = null;
     Payload.FromIndex     = -1;
     Payload.Address       = string.Empty;
     Payload.IsContainer   = false;
     await BaseContainer.NotifyStateChanged();
 }
        public async Task SetPayload(DnDContainer <TListItem, TItem, TGroup> fromContainer, int index, string address = null, bool isContainer = false)
        {
            var overrideDebug = false;

            if (ShowDebugInfo || overrideDebug)
            {
                Console.WriteLine($"Setting payload to {(string.IsNullOrWhiteSpace(address) ? "{empty}" : address)}");
            }
            Payload.FromContainer = fromContainer;
            Payload.FromIndex     = index;
            Payload.Address       = address;
            Payload.IsContainer   = isContainer;
            await BaseContainer.NotifyStateChanged();
        }
 public async Task SetDropCssStyles(string targetAddress, string value, bool clearDictFirst = false)
 {
     if (clearDictFirst)
     {
         DropCssStylesDict.Clear();
     }
     if (string.IsNullOrWhiteSpace(targetAddress))
     {
         return;
     }
     if (!DropCssStylesDict.ContainsKey(targetAddress))
     {
         DropCssStylesDict.Add(targetAddress, value);
     }
     else
     {
         DropCssStylesDict[targetAddress] = value;
     }
     await BaseContainer.NotifyStateChanged();
 }
 public async Task SetShowNewItem(string targetAddress, bool value, bool clearDictFirst = false)
 {
     if (clearDictFirst)
     {
         ShowNewItemDict.Clear();
     }
     if (string.IsNullOrWhiteSpace(targetAddress))
     {
         return;
     }
     if (!ShowNewItemDict.ContainsKey(targetAddress))
     {
         ShowNewItemDict.Add(targetAddress, value);
     }
     else
     {
         ShowNewItemDict[targetAddress] = value;
     }
     await BaseContainer.NotifyStateChanged();
 }