示例#1
0
        protected override void CloneCore(ApplicationJumpItemInfo clone)
        {
            base.CloneCore(clone);
            ApplicationJumpPathInfo path = (ApplicationJumpPathInfo)clone;

            path.Path = Path;
        }
示例#2
0
        public static ApplicationJumpPathInfo Add(this IApplicationJumpList jumpList, string customCategory, string jumpPath)
        {
            if (jumpList == null)
            {
                throw new ArgumentNullException("jumpList");
            }
            ApplicationJumpPathInfo jumpItem = new ApplicationJumpPathInfo()
            {
                Path = jumpPath, CustomCategory = customCategory
            };

            try {
                jumpList.Add(jumpItem);
            } catch (InvalidApplicationJumpItemException e) {
                throw new InvalidOperationException("", e);
            }
            return(jumpItem);
        }