private void searchDialogOpen(object sender, EventArgs e) { ProductListForm productsDialog = new ProductListForm(); if (productsDialog.ShowDialog(this) == DialogResult.OK) { sifraProizvoda_textBox.Text = productsDialog.GetSelectedProduct_Sifra(); quantity_textBox1.Focus(); } else { //this.txtResult.Text = "Cancelled"; } productsDialog.Dispose(); }
private void proizvodiToolStripMenuItem_Click(object sender, EventArgs e) { var form = new ProductListForm(); form.Show(); }