public bool RedoOperate() { if (OperateList.Count > 0) { OperateList.RemoveAt(OperateList.Count - 1); return(true); } return(false); }
/// <summary> /// 添加一个操作命令. /// </summary> /// <param name="operateType"></param> /// <param name="color"></param> /// <param name="data"></param> public void AddOperate(OperateType operateType, Color color, object data) { OperateObject obj = new OperateObject(operateType, color, data); if (OperateList.Count > MaxOperateCount) { OperateList.RemoveAt(0); } OperateList.Add(obj); }
public void Clear() { OperateList.Clear(); }