/// <summary> /// 构造方法 /// </summary> /// <param name="p_his"></param> public RedoCmd(CmdHistory p_his) { if (p_his != null) { _his = p_his; _his.CmdChanged += OnCmdChanged; AllowExecute = _his.CanRedo; } }
/// <summary> /// 构造方法 /// </summary> /// <param name="p_his"></param> public HisPropertyCmd(CmdHistory p_his) : base(p_his) { AllowExecute = true; }
/// <summary> /// 构造方法 /// </summary> /// <param name="p_history">历史命令</param> public BaseCommand(CmdHistory p_history) { _history = p_history; }