Пример #1
0
        private void КЧасти2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Part2 form = new Part2();

            form.ShowDialog();
            Close();
        }
Пример #2
0
        private void КЧасти2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Part2        form = new Part2();
            DialogResult res  = form.ShowDialog();

            if (res == DialogResult.Cancel)
            {
                res = MessageBox.Show("Закрыть приложение?", "", MessageBoxButtons.OKCancel);
                if (res == DialogResult.OK)
                {
                    Close();
                }
            }
            _Forms(this, null);
        }