private void btnRemoveFromOrder_Click(object sender, RoutedEventArgs e) { var _customerID = _customer.CustomerID; var _comicID = _comic.ComicID; var _comicManager = new ComicManager(); try { _comicManager.RemoveComicFromOrderForm((int)_comicID, _customerID); MessageBox.Show("Comic removed from your order."); Close(); } catch (Exception ex) { MessageBox.Show("Unable to remove from your order" + ex.Message + ex.StackTrace); } }