public static void SendSingleItemToDevice(DeckDevice device, int slot, DeckItemMisc item) { var con = device.GetConnection(); if (con != null) { bool isFolder = false; var image = item.GetItemImage() ?? (new DeckImage(isFolder ? Resources.img_folder : Resources.img_item_default)); var seri = image.BitmapSerialized; con.SendPacket(new SingleUniversalChangePacket(image) { ImageSlot = slot, CurrentItem = item }); } }
public static void ClearSingleItemToDevice(DeckDevice device, int slot) { var con = device.GetConnection(); con.SendPacket(new SlotImageClearPacket(slot)); }