Example #1
0
        private void btnAddJumpPath_Click(object sender, EventArgs e)
        {
            string             categoryName = "JumpPath Category";
            JumpItemCollection items        = taskbarButton.JumpList.Items;

            foreach (string s in _jumpPathFiles)
            {
                C1JumpPath jumpPath = new C1JumpPath();
                jumpPath.CustomCategory = categoryName;
                jumpPath.Path           = _destinationPrefix + s;
                items.Add(jumpPath);
            }
            btnAddJumpPath.Enabled = false;
        }
Example #2
0
        private void btnAddJumpLink_Click(object sender, EventArgs e)
        {
            string             categoryName = "JumpLink Category";
            JumpItemCollection items        = taskbarButton.JumpList.Items;

            foreach (string s in _jumpLinkFiles)
            {
                C1JumpLink link = new C1JumpLink();
                link.CustomCategory  = categoryName;
                link.ApplicationPath = _exePath;
                link.Arguments       = _destinationPrefix + s;
                link.IconPath        = link.Arguments;
                link.Title           = s;
                link.Tooltip         = link.Arguments;
                items.Add(link);
            }
            btnAddJumpLink.Enabled = false;
        }