Exemplo n.º 1
0
        private void SelectPublisher(object sender, EventArgs e)
        {
            var selectPublisher = new SelectPublisherForm(_context);

            selectPublisher.ShowDialog();
            if (selectPublisher.Publisher == null)
            {
                MessageBox.Show(@"Publisher not changed", @"No publisher was selected", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                Publisher = selectPublisher.Publisher;
                SelectedPublisherLabel.Text = Publisher.ToString();
            }
        }
Exemplo n.º 2
0
        private void SelectPublisher(object sender, EventArgs e)
        {
            var selectPublisher = new SelectPublisherForm(_context);

            selectPublisher.ShowDialog();
            if (selectPublisher.Publisher == null)
            {
                MessageBox.Show(@"No author selected, please select an author and try again", @"No author selected", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                Publisher = selectPublisher.Publisher;
                SelectedPublisherLabel.Text = Publisher.ToString();
            }
        }