private void btnDelete_Click(object sender, RoutedEventArgs e) { controller.CustomerView = this; Model.Customer customer = GetSelectedCustomer(); controller.DeleteCustomer(customer); btnDelete.IsEnabled = false; }