/// <summary> /// 设置命令 /// </summary> /// <param name="cmd"></param> public void SetCommand(ICommandCancelAble cmd) { cmdList.Add(cmd); }
/// <summary> /// 撤销命令 /// </summary> /// <param name="cmd"></param> public void CancelExectueCommand(ICommandCancelAble cmd) { cmd.Cancel(); cmdList.Remove(cmd); }
/// <summary> /// 撤销命令 /// </summary> /// <param name="cmd"></param> public void CancelExectueCommand(ICommandCancelAble cmd) { cmd.Cancel(); cmdList.Remove(cmd); }
/// <summary> /// 设置命令 /// </summary> /// <param name="cmd"></param> public void SetCommand(ICommandCancelAble cmd) { cmdList.Add(cmd); }