public ChangeCollectionCommandFactory(WorldEditor worldEditor, List<IObjectChangeCollection> changeObjList,
     IObjectCollectionParent toCollection)
 {
     this.app = worldEditor;
     this.objList = changeObjList;
     this.toCollection = toCollection;
 }
Exemplo n.º 2
0
 public ChangeCollectionCommandFactory(WorldEditor worldEditor, List <IObjectChangeCollection> changeObjList,
                                       IObjectCollectionParent toCollection)
 {
     this.app          = worldEditor;
     this.objList      = changeObjList;
     this.toCollection = toCollection;
 }
        public void UnExecute()
        {
            int i = 0;

            foreach (IObjectChangeCollection changeObj in changeObjList)
            {
                IWorldObject obj = changeObj as IWorldObject;
                toCollection.Remove(obj);
                IObjectCollectionParent from = fromCollection[i];
                from.Add(obj);
                changeObj.Parent = from as IWorldContainer;
                i++;
            }
        }
 public CreateObjectCollectionDialog(IObjectCollectionParent parent)
 {
     this.parent = parent;
     InitializeComponent();
 }
 public CreateObjectCollectionDialog(IObjectCollectionParent parent)
 {
     this.parent = parent;
     InitializeComponent();
 }
 public CreateWorldCollectionCommandFactory(WorldEditor worldEditor, IObjectCollectionParent parentObject)
 {
     app = worldEditor;
     parent = parentObject;
 }
 public ChangeCollectionCommand(List<IObjectChangeCollection> obj, IObjectCollectionParent toCollection)
 {
     this.changeObjList = obj;
     this.fromCollection = new List<IObjectCollectionParent>();
     this.toCollection = toCollection;
 }
 public ChangeCollectionCommand(List <IObjectChangeCollection> obj, IObjectCollectionParent toCollection)
 {
     this.changeObjList  = obj;
     this.fromCollection = new List <IObjectCollectionParent>();
     this.toCollection   = toCollection;
 }
 public CreateWorldCollectionCommandFactory(WorldEditor worldEditor, IObjectCollectionParent parentObject)
 {
     app    = worldEditor;
     parent = parentObject;
 }