Example #1
0
        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();
        }
Example #2
0
        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();
        }
Example #3
0
 /// <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();
 }
Example #4
0
        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();
        }