Beispiel #1
0
        private void removeCardButton_Click(object sender, EventArgs e)
        {
            CardCollection delCollection = new CardCollection();

            delCollection.RemoveCard(collectionListBox.SelectedItem.ToString(), cardListBox.SelectedItem.ToString());
            MessageBox.Show(cardListBox.SelectedItem.ToString());
        }
Beispiel #2
0
        private void editCardButton_Click(object sender, EventArgs e)
        {
            //This isn't really an edit function more of a delete and bring up the add card screen. Needs work so that it functions more like an edit.
            CardCollection editCardColl = new CardCollection();

            editCardColl.RemoveCard(collectionListBox.SelectedItem.ToString(), cardListBox.SelectedItem.ToString());
            string      selectedCollection = collectionListBox.SelectedItem.ToString();
            AddCardForm newCardForm        = new AddCardForm(selectedCollection);

            newCardForm.Show();
            this.Hide();
        }