private void CancelEditCurrentCustomTarget() { if (EditCustomTarget != null) { EditCustomTarget.RollBack(); IsCustomTargetEditor = false; EditCustomTarget = null; } CustomTargets.Remove(CurrentCustomTarget); }
private void RemoveCurrentCustomTarget() { CustomTargets.Remove(CurrentCustomTarget); if (EditCustomTarget == CurrentCustomTarget) { CancelEditCurrentCustomTarget(); } CurrentCustomTarget = null; Start.OnCanExecuteChanged(); }