예제 #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);
        }