/// <summary>
        /// 添加可撤销的工作单元
        /// </summary>
        /// <param name="undoUnits"></param>
        public void AddUndoUnit(SEUndoUnitCollection undoUnits)
        {
            Debug.Assert(undoUnits != null);

            if (this.ActiveHosting != null)
            {
                this.ActiveHosting.AddUndoUnit(undoUnits);
            }
        }
        private void _eventTreeView_EventOrderChanged(CollectionEditEventArgs[] e)
        {
            SEUndoUnitCollection undoUnitCollection = new SEUndoUnitCollection();

            foreach (CollectionEditEventArgs args in e)
            {
                SEUndoUnitEventEdit undoUnit = new SEUndoUnitEventEdit(args);
                undoUnitCollection.Add(undoUnit);
            }
            undoUnitCollection.Action = _undounitAction;
            FormHostingContainer.Instance.ActiveHosting.AddUndoUnit(undoUnitCollection);
        }
 /// <summary>
 /// 添加可撤销的工作单元
 /// </summary>
 /// <param name="undoUnits"></param>
 public void AddUndoUnit(SEUndoUnitCollection undoUnits)
 {
     this._undoEngine.AddUndoUnit(undoUnits);
 }