private void btnAdauga_Click(object sender, RoutedEventArgs e) { { if (ValidateCantitate(selectedMancare) > 0) { lstSale.Items.Add(txtCantitate.Text + " " + selectedMancare.ToString() + ":" + txtPret.Text + " " + double.Parse(txtCantitate.Text) * double.Parse(txtPret.Text)); } else { MessageBox.Show("Cantitatea introdusa nu este disponibila in stoc!"); } } }