Beispiel #1
0
        //////////////////////////////////////////////////////////////
        #region ModalDialog
        private void CreatQvest_Click(object sender, EventArgs e)
        {
            Add_Edit Add_Edit_form  = new Add_Edit(true);
            P_Add    loginPresenter = new P_Add(Add_Edit_form);

            if (Add_Edit_form.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("Вопрос создан.", "Успех", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Beispiel #2
0
        private void Edit_Quest_Click(object sender, EventArgs e)
        {
            Add_Edit Add_Edit_form  = new Add_Edit(false);
            P_Edit   loginPresenter = new P_Edit(Add_Edit_form);

            DialogResult resalt = Add_Edit_form.ShowDialog();

            if (resalt == DialogResult.OK)
            {
                MessageBox.Show("Вопрос создан.", "Успех", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }