private void RenameButton_Click(object sender, EventArgs e) { if (CatalogueListBox.SelectedItem is Product tmp) { catalogue.RenameProduct(tmp.Name, NameTextBox.Text); } }
private void RenameButton_Click(object sender, EventArgs e) { if (CatalogueListBox.SelectedItem is Product tmp) { catalogue.RenameProduct(tmp.Name, NameTextBox.Text); } }