private void RemoveButton_Click(object sender, EventArgs e) { if (CatalogueListBox.SelectedItem is Product tmp) { { catalogue.RemoveProduct(tmp.Name); } } }