Example #1
0
        private void checkBox1Author_CheckedChanged(object sender, EventArgs e)
        {
            AddAuthor addAuthorForm = new AddAuthor();

            addAuthorForm.FormClosed += new FormClosedEventHandler(addAuthorForm_FormClosed);
            addAuthorForm.ShowDialog();
            //this.Hide();
        }
Example #2
0
        private void chckMissingAuthor_CheckedChanged(object sender, EventArgs e)
        {
            AddAuthor addAuthorForm = new AddAuthor(mainForm);

            addAuthorForm.ShowDialog();
            try
            {
                LibraryExchangeClient.BookManagement.OperationResultSetOfAuthorUcBWdBTS bookauthors = mainForm.WebServiceProxy.GetAllAuthors(mainForm.UserName, mainForm.Guid);

                cmbAuthor.DataSource    = bookauthors.ResultSet;
                cmbAuthor.DisplayMember = "AuthorInfo";
                cmbAuthor.Refresh();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Some error occured during initializing authors");
            }
        }