private void deleteSourceButton_Click(object sender, EventArgs e) { if (sourceListBox.SelectedItem == null) { MessageBox.Show("Error: Please select a source"); return; } DeleteConformation confermation = new DeleteConformation((Source)sourceListBox.SelectedItem, sourceListBox); confermation.Visible = true; confermation.Focus(); }
private void deleteSourceButton_Click(object sender, EventArgs e) { isOnlyWindow = false; this.TopMost = false; if (editSourceListBox.SelectedItem == null) { MessageBox.Show("Error: Please select a source"); return; } DeleteConformation confermation = new DeleteConformation((Source)editSourceListBox.SelectedItem, editSourceListBox); confermation.Visible = true; confermation.Focus(); }