Ejemplo n.º 1
0
 private void Delete_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("Are you sure you want to delete this unit? This is an irreversible action", "Confirm", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
     {
         try
         {
             bl.DeleteHostingUnit(unit);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }