private void buttonBack_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show( "Отменить добавление нового города?", "Сообщение", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly); if (result == DialogResult.Yes) { ParentAddStore.Show(); Close(); } }
private void buttonAddStore_Click(object sender, EventArgs e) { FormAddStore newForm = new FormAddStore(); newForm.ParentAddBookExemplar = this; newForm.Show(); Hide(); }