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

            if (this.ActiveHosting != null)
            {
                this.ActiveHosting.AddUndoUnit(undoUnits);
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 /// <summary>
 /// 添加可撤销的工作单元
 /// </summary>
 /// <param name="undoUnits"></param>
 public void AddUndoUnit(SEUndoUnitCollection undoUnits)
 {
     this._undoEngine.AddUndoUnit(undoUnits);
 }