Exemple #1
0
        private void UpdateACardsBanlistPlacement(string newBanlistPlacement, string oldBanlistPlacement, Card card)
        {
            string message = "Mark card " + card.CardName.ToString() + " '" +
                             newBanlistPlacement + ".' Are you sure?";

            MessageBoxResult result = MessageBox.Show(message, "Update Banlist Placement",
                                                      MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (result == MessageBoxResult.Yes)
            {
                try
                {
                    _cardManager.EditCardBanlistPlacement(card.CardID, oldBanlistPlacement, newBanlistPlacement);
                    _cardUpdated = true;
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message);
                }
            }
        }