public static void PlayPin(JumpListPin pin) { if (pin == null) { return; } SingletonModelItem <TransportControls> .Instance.RequestedJumpListPin = pin; }
private static void PopulateJumpListIfPossible( JumpListCategory category, JumpListPin pin, int iconIndex, List <string> disallowedCommandLineArguments) { string str = string.Format("/playpin:{0}", pin.ToString()); if (disallowedCommandLineArguments.Contains(str)) { return; } JumpListEntry destination; category.CreateDestination(out destination); destination.Name = pin.Name; destination.CommandLineArguments = str; destination.IconIndex = iconIndex; }