public new ApplicationJumpItem Clone() { ApplicationJumpItem item = CreateInstanceCore(); CloneCore(item); return(item); }
protected override void CloneCore(ApplicationJumpItem clone) { base.CloneCore(clone); ApplicationJumpTask task = (ApplicationJumpTask)clone; task.Click = Click; task.Command = Command; task.CommandParameter = CommandParameter; }
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"); }
protected virtual void CloneCore(ApplicationJumpItem clone) { clone.ItemInfo = ItemInfo.Clone(); }
public static ApplicationJumpItemInfo GetItemInfo(ApplicationJumpItem item) { return(item.ItemInfo); }
public static ApplicationJumpItemInfo GetItemInfo(ApplicationJumpItem item) { return item.ItemInfo; }