Пример #1
0
        public new ApplicationJumpItem Clone()
        {
            ApplicationJumpItem item = CreateInstanceCore();

            CloneCore(item);
            return(item);
        }
Пример #2
0
        protected override void CloneCore(ApplicationJumpItem clone)
        {
            base.CloneCore(clone);
            ApplicationJumpTask task = (ApplicationJumpTask)clone;

            task.Click            = Click;
            task.Command          = Command;
            task.CommandParameter = CommandParameter;
        }
Пример #3
0
        public static ApplicationJumpItem GetItem(ApplicationJumpItemInfo itemInfo)
        {
            IApplicationJumpItemInfoInternal itemInfoInternal = itemInfo;
            ApplicationJumpItem item = (ApplicationJumpItem)itemInfoInternal.Source;

            if (item != null)
            {
                return(item);
            }
            ApplicationJumpPathInfo jumpPathInfo = itemInfo as ApplicationJumpPathInfo;

            if (jumpPathInfo != null)
            {
                return(new ApplicationJumpPath(jumpPathInfo));
            }
            ApplicationJumpTaskInfo jumpTaskInfo = itemInfo as ApplicationJumpTaskInfo;

            if (jumpTaskInfo != null)
            {
                return(new ApplicationJumpTask(jumpTaskInfo));
            }
            throw new ArgumentException("itemInfo");
        }
Пример #4
0
 protected virtual void CloneCore(ApplicationJumpItem clone)
 {
     clone.ItemInfo = ItemInfo.Clone();
 }
Пример #5
0
 public static ApplicationJumpItemInfo GetItemInfo(ApplicationJumpItem item)
 {
     return(item.ItemInfo);
 }
 protected virtual void CloneCore(ApplicationJumpItem clone) {
     clone.ItemInfo = ItemInfo.Clone();
 }
 protected override void CloneCore(ApplicationJumpItem clone) {
     base.CloneCore(clone);
     ApplicationJumpTask task = (ApplicationJumpTask)clone;
     task.Click = Click;
     task.Command = Command;
     task.CommandParameter = CommandParameter;
 }
 public static ApplicationJumpItemInfo GetItemInfo(ApplicationJumpItem item) { return item.ItemInfo; }