예제 #1
0
        public bool RemovePlaceable(Placeable placeable)
        {
            bool add = placeables.Remove(placeable);

            Placeables.Remove(placeable);

            return(add);
        }
예제 #2
0
 private void Delete()
 {
     ConfirmDeleteRequest.Raise(
         new Confirmation
     {
         Title   = "Delete Placeable?",
         Content = "Are you sure you want to delete this placeable?"
     }, c =>
     {
         if (!c.Confirmed)
         {
             return;
         }
         _eventAggregator.GetEvent <PlaceableDeletedEvent>().Publish(SelectedPlaceable);
         Placeables.Remove(SelectedPlaceable);
         RaiseValidityChangedEvent();
     });
 }
예제 #3
0
 public void RemovePlaceableData(PlaceableData placeableData)
 {
     Placeables.Remove(placeableData);
 }