示例#1
0
        private void exit_button_Click(object sender, EventArgs e)
        {
            Forms.Exit exit = new Forms.Exit();
            exit.ExitApplication += (s, arg) => { Close(); currentControl.OnExit(); };

            exit.ClientSize = new Size(Width, Height);
            exit.Show();
        }
示例#2
0
        private void exit_button_Click(object sender, EventArgs e)
        {
            Forms.Exit exit = new Forms.Exit();
            exit.ExitApplication += (s, arg) =>
            {
                Close();
                foreach (var page in pages.Values)
                {
                    page.OnExit();
                }
            };

            exit.ClientSize = new Size(Width, Height);
            exit.Show();
        }