Пример #1
0
        private void buttonBack_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show(
                "Отменить добавление новой страны?",
                "Сообщение",
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Question,
                MessageBoxDefaultButton.Button2,
                MessageBoxOptions.DefaultDesktopOnly);

            if (result == DialogResult.Yes)
            {
                ParentAddAuthor.Show();
                Close();
            }
        }
Пример #2
0
        private void buttonAddAuthor_Click(object sender, EventArgs e)
        {
            FormAddAuthor newForm = new FormAddAuthor();

            newForm.ParentChangeBook = this;
            newForm.Show();
            Hide();
        }