public static ApplicationJumpItemInfo Unwrap(JumpItem jumpItem)
        {
            ApplicationJumpTaskWrap applicationJumpTaskWrap = jumpItem as ApplicationJumpTaskWrap;

            if (applicationJumpTaskWrap != null)
            {
                return(applicationJumpTaskWrap.ApplicationJumpTask);
            }
            ApplicationJumpPathWrap applicationJumpPathWrap = jumpItem as ApplicationJumpPathWrap;

            if (applicationJumpPathWrap != null)
            {
                return(applicationJumpPathWrap.ApplicationJumpPath);
            }
            throw new ArgumentException(string.Empty, "jumpItem");
        }
        public static void FillWrapProperties(JumpItem jumpItem)
        {
            ApplicationJumpTaskWrap applicationJumpTaskWrap = jumpItem as ApplicationJumpTaskWrap;

            if (applicationJumpTaskWrap != null)
            {
                applicationJumpTaskWrap.CustomCategory = applicationJumpTaskWrap.ApplicationJumpTask.CustomCategory;
                applicationJumpTaskWrap.Title          = applicationJumpTaskWrap.ApplicationJumpTask.Title;
                applicationJumpTaskWrap.Description    = applicationJumpTaskWrap.ApplicationJumpTask.Description;
                return;
            }
            ApplicationJumpPathWrap applicationJumpPathWrap = jumpItem as ApplicationJumpPathWrap;

            if (applicationJumpPathWrap != null)
            {
                applicationJumpPathWrap.CustomCategory = applicationJumpPathWrap.ApplicationJumpPath.CustomCategory;
                applicationJumpPathWrap.Path           = applicationJumpPathWrap.ApplicationJumpPath.Path;
                return;
            }
            throw new ArgumentException(string.Empty, "jumpItem");
        }