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