Пример #1
0
 private void HostingUnitDeleteButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (MessageBox.Show("האם אתה בטוח שברצונך למחוק את היחידה",
                             "מחיקת יחידה", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
         {
             bL.deleteHostingUnit(HostingUnit);
             HostingUnitFilter(this, new RoutedEventArgs());
             this.HostZone.deleteButton.Visibility      = Visibility.Collapsed;
             this.HostZone.updateButton.Visibility      = Visibility.Collapsed;
             this.HostZone.watchOrdersButton.Visibility = Visibility.Collapsed;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }