Exemplo n.º 1
0
 /// <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;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="p_his"></param>
 public HisPropertyCmd(CmdHistory p_his)
     : base(p_his)
 {
     AllowExecute = true;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="p_history">历史命令</param>
 public BaseCommand(CmdHistory p_history)
 {
     _history = p_history;
 }