-
Notifications
You must be signed in to change notification settings - Fork 19
/
vJumpList.cs
33 lines (26 loc) · 903 Bytes
/
vJumpList.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Windows;
using System.Windows.Shell;
namespace OpenKeyboard{
public class vJumpList{
private JumpList mList = null;
public string CategoryName { get; set; }
public string AppPath { get; set; }
public vJumpList(){
mList = new JumpList();
JumpList.SetJumpList(Application.Current, mList);
CategoryName = "Category";
AppPath = "";
}//func
public void Apply() { mList.Apply(); }
public void AddTask(string title,string desc, string arg){
mList.JumpItems.Add(new JumpTask() {
Title = title,
Description = desc,
ApplicationPath = AppPath,
Arguments = arg,
CustomCategory = CategoryName
});
}//func
}//cls
}//ns