public CustomShortcutListViewItem(CustomShortcut customShortcut) { CustomShortcut = customShortcut; Text = CustomShortcut.ShortcutName; SubItems.Add(CustomShortcut.ShortcutType.ToString()); SubItems.Add(CustomShortcut.ShortcutItem.ShortcutUser.ToString()); }
private static void BuildIconifiedTile(byte[] imageToUse, CustomShortcut customShortcut) { //Iconify a TileIconifier shortcut for this with default settings var newShortcutItem = customShortcut.ShortcutItem; newShortcutItem.Properties.CurrentState.MediumImage.SetImage(imageToUse, ShortcutConstantsAndEnums.MediumShortcutDisplaySize); newShortcutItem.Properties.CurrentState.SmallImage.SetImage(imageToUse, ShortcutConstantsAndEnums.SmallShortcutDisplaySize); var iconify = new TileIcon(newShortcutItem); iconify.RunIconify(); }