private void MainForm_Shown(object sender, EventArgs e) { JumpListManager.AddCategorySelfLink("Commands", "First command", "Command1"); JumpListManager.AddCategorySelfLink("Commands", "Second command", "Command2"); JumpListManager.AddCategorySelfLink("Commands", "Third command", "Command3"); JumpListManager.AddCategoryLink("Links", "Around and About .NET World", "http://blogs.ugidotnet.org/marcom", "shell32.dll", 220); JumpListManager.AddTaskLink("Start Notepad", "notepad.exe", "notepad.exe"); JumpListManager.AddTaskLink("Start Calculator", "calc.exe", "calc.exe"); JumpListManager.AddTaskLink("Start Paint", "mspaint.exe", "mspaint.exe"); JumpListManager.Refresh(); }
private void MainForm_Shown(object sender, EventArgs e) { JumpListManager.AddCategoryLink("链接", "星际争霸2战术资源站", "http://sc2.haoest.com", "shell32.dll", 220); JumpListManager.Refresh(); }