private void button_SearchBuyers_Click(object sender, EventArgs e) { BuyersListForm buyersDialog = new BuyersListForm(); if (buyersDialog.ShowDialog(this) == DialogResult.OK) { comboBox_kupci.SelectedIndex = comboBox_kupci.FindStringExact(buyersDialog.GetSelectedBuyer()); } buyersDialog.Dispose(); }
private void kupciToolStripMenuItem_Click(object sender, EventArgs e) { var form = new BuyersListForm(); form.Show(); }