public override void Execute(object parameter) { if (ItemSelected == null) { return; } MessageBoxResult result = MessageBox.Show("Are you sure you want to delete this element?", "Delete", MessageBoxButton.YesNo); if (result == MessageBoxResult.Yes) { SignalManager.Get <RegisterHistoryActionSignal>().Dispatch(new DeleteProjectItemHitoryAction(ItemSelected)); ProjectItemFileSystem.DeteElement(ItemSelected); SignalManager.Get <DeleteElementSignal>().Dispatch(ItemSelected); } }
public void Undo() { ProjectItemFileSystem.DeteElement(_item); SignalManager.Get <DeleteElementSignal>().Dispatch(_item); }