public DataControlDisposable(DataControl toObserve, IObserver <DataControl> observer)
 {
     this.toObserve = toObserve;
     toObserve.disposables.Add(this);
     this.observer = observer;
 }
Example #2
0
        public override bool moveElementUp(DataControl dataControl)
        {
            var toMove = dataControl as TT;

            return(toMove != null && controller.AddTool(new MoveElementTool(parent, elements, dataControls, toMove, true)));
        }
 public static void RemoveTransform(DataControl target)
 {
     SceneEditor.Current.PopMatrix();
 }
 public DeleteResourcesBlockTool(List <ResourcesUni> resourcesList, List <ResourcesDataControl> resourcesDataControlList, DataControl dataControl, DataControlWithResources parentDataControl)
 {
     this.resourcesDataControlList = resourcesDataControlList;
     this.resourcesList            = resourcesList;
     this.dataControl       = dataControl;
     this.parentDataControl = parentDataControl;
 }
Example #5
0
 public override bool moveElementDown(DataControl dataControl)
 {
     return(false);
 }
 public override bool deleteElement(DataControl dataControl, bool askConfirmation)
 {
     return(erdc != null && erdc.deleteElement(dataControl, askConfirmation));
 }
 public override bool deleteElement(DataControl dataControl, bool askConfirmation)
 {
     return(controller.addTool(new DeleteResourcesBlockTool(resourcesList, resourcesDataControlList, dataControl, this)));
 }
        public override bool moveElementDown(DataControl dataControl)
        {
            bool elementMoved = false;

            return(elementMoved);
        }
Example #9
0
 /**
  * Duplicates a given element from the current element.
  *
  * @param dataControl
  *            Data controller which contains the element
  * @return True if the element was deleted, false otherwise
  */
 public virtual bool duplicateElement(DataControl dataControl)
 {
     return(false);
 }
Example #10
0
 /**
  * Moves a given element to the previous position in the structure of the
  * current element.
  *
  * @param dataControl
  *            Data controller which contains the element
  * @return True if the element was moved, false otherwise
  */
 public abstract bool moveElementDown(DataControl dataControl);
Example #11
0
 /**
  * Deletes a given element from the current element.
  *
  * @param dataControl
  *            Data controller which contains the element
  * @return True if the element was deleted, false otherwise
  */
 public abstract bool deleteElement(DataControl dataControl, bool askConfirmation);
Example #12
0
 public bool duplicateResources(DataControl dataControl)
 {
     return(controller.AddTool(new DuplicateResourcesBlockTool(dataControl, resourcesList, resourcesDataControlList, this)));
 }
 public override bool moveElementDown(DataControl dataControl)
 {
     return(erdc != null && erdc.moveElementDown(dataControl));
 }
        public override bool deleteElement(DataControl dataControl, bool askConfirmation)
        {
            bool elementDeleted = false;

            return(elementDeleted);
        }
Example #15
0
 public override bool duplicateElement(DataControl dataControl)
 {
     return(Controller.Instance.AddTool(new DuplicateDescriptionTool(this)));
 }
 public override bool moveElementUp(DataControl dataControl)
 {
     return(moveElement(dataControl, true));
 }
        public override bool moveElementUp(DataControl dataControl)
        {

            return false;
        }
Example #18
0
 public override bool deleteElement(DataControl dataControl, bool askConfirmation)
 {
     return(false);
 }
 public void RegisterExtraDataControl(DataControl dataControl)
 {
     extraDataControls.Add(dataControl);
 }
 protected override void OnDuplicate()
 {
     DataControl.duplicateElement(((ElementContainer)GetChilds(DataControl)[index]).getErdc());
     OnChanged(reorderableList);
 }
Example #21
0
 /**
  * Constructor.
  *
  * @param sceneDataControl
  *            Parent scene controller
  * @param dataControl
  * @param activeArea
  *            Exit of the data control structure
  */
 public InfluenceAreaDataControl(SceneDataControl sceneDataControl, InfluenceArea influenceArea, DataControl dataControl)
 {
     this.sceneDataControl = sceneDataControl;
     this.influenceArea    = influenceArea;
     this.dataControl      = dataControl;
 }