private void ShowEditForm(object sender, EventArgs e) { var publisherEdit = new PublisherEditForm(_publisher.PublisherId.ToString()); publisherEdit.ShowDialog(); Close(); }
private void ShowPublisherEditForm(object sender, EventArgs e) { if (publishersListBox.SelectedIndex == -1) { MessageBox.Show("Odaberi izdavaca!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { var publisherEdit = new PublisherEditForm(publishersListBox.SelectedItem.ToString().OnlyNumbers()); publisherEdit.ShowDialog(); FillPublishersListBox(); } }