/// <summary> /// Called when we click on the button to select a different publisher /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void bnSetPublisher_Click(object sender, EventArgs e) { FormSelectPublisher selectPublisher = new FormSelectPublisher(true); if (selectPublisher.ShowDialog() == DialogResult.OK) { tbPublisher.Text = selectPublisher.SelectedPublisher; } }
private void bnSetPublisher_Click(object sender, EventArgs e) { FormSelectPublisher selectPublisher = new FormSelectPublisher(true); if (selectPublisher.ShowDialog() == DialogResult.OK) { tbPublisher.Text = selectPublisher.SelectedPublisher; // Ensure that this publisher is in the publisher filter otherwise this application could disapp[ear SettingsDAO lwDataAccess = new SettingsDAO(); string publisherFilter = lwDataAccess.GetPublisherFilter(); if ((publisherFilter != "") && (!publisherFilter.Contains(tbPublisher.Text))) { publisherFilter = publisherFilter + ";" + tbPublisher.Text; lwDataAccess.SetPublisherFilter(publisherFilter); } } }