public void Delete()
{
bool confirm = PackageViewModel.UIServices.Confirm(
String.Format(CultureInfo.CurrentCulture, Resources.ConfirmToDeleteContent, Name),
isWarning: true);
if (!confirm)
{
return;
}
if (Parent != null)
{
Parent.Children.Remove(this);
PackageViewModel.NotifyContentDeleted(this);
}
}