Esempio n. 1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            var result = MessageBox.Show("Cancel?", "Open SZMe", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                Hide();
                var secondWindow = new SecondWindow {
                    StartPosition = FormStartPosition.CenterParent
                };
                secondWindow.Show(this);
            }
        }