Пример #1
0
        private void btnAddNewGenre_Click(object sender, EventArgs e)
        {
            AddNewItem addItem = new AddNewItem();

            DialogResult result = addItem.ShowDialog(this);

            if (result == DialogResult.Yes)
            {
                lbCurrentGenres.Items.Add(addItem.ItemToAdd);
            }
        }
Пример #2
0
        private void btnAddNewCategory_Click(object sender, EventArgs e)
        {
            AddNewItem addItem = new AddNewItem();

            DialogResult result = addItem.ShowDialog(this);

            if (result == DialogResult.Yes)
            {
                lbSelectedCategories.Items.Add(addItem.ItemToAdd);
            }
        }