protected FlowChartManager flowChartManager; // 流程图管理器实例 /// <summary> /// 构造函数 /// </summary> /// <param name="data">当前对象</param> /// <param name="description">命令的描述</param> public FlowChartBaseCommand(object data, string description) : base(data, description) { graphManager = data as GraphManager; flowChartManager = graphManager.CurrentFlowChartManager; dataManager = flowChartManager.CurrentDataManager; documentManager = DocumentManager.GetDocumentManager(); dataBeforeExecute = new SerialMemento(); dataAfterExecute = new SerialMemento(); }
protected FlowChartManager flowChartManager; // 流程图管理器实例 /// <summary> /// 构造函数 /// </summary> /// <param name="data">当前对象</param> /// <param name="description">命令的描述</param> public FlowChartBaseCommand(object data, string description): base(data, description) { graphManager = data as GraphManager; flowChartManager = graphManager.CurrentFlowChartManager; dataManager = flowChartManager.CurrentDataManager; documentManager = DocumentManager.GetDocumentManager(); dataBeforeExecute = new SerialMemento(); dataAfterExecute = new SerialMemento(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="data">当前对象</param> /// <param name="description">命令的描述</param> public FlowChartCommand(object data, string description): base(data, description) { dataBeforeExecute = new SerialMemento(); dataAfterExecute = new SerialMemento(); }
protected DocumentManager documentManager; // 分类管理器 /// <summary> /// 构造函数 /// </summary> /// <param name="data">当前对象</param> /// <param name="description">命令的描述</param> public TreeCommand(object data, string description) : base(data, description) { dataBeforeExecute = new SerialMemento(); dataAfterExecute = new SerialMemento(); }