private void btnAddSale_Click(object sender, EventArgs e) { NumberInput input = new NumberInput(); if (input.ShowDialog() == DialogResult.OK) { lstItemsForSale.Items.Add(input.Value.ToString()); } }