示例#1
0
        private void FileSelection_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            YOY_Player obj = new YOY_Player(true, false);

            this.Hide();
            obj.ShowDialog();
        }
示例#2
0
        private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            //Application.ExitThread();
            //Environment.Exit(0);
            e.Cancel = true;
            YOY_Player obj = new YOY_Player(true, false);

            this.Hide();
            obj.ShowDialog();
        }
示例#3
0
        private void btnSubmit1_Click(object sender, EventArgs e)
        {
            YOY_Player f2 = new YOY_Player(false, true); //this is the change, code for redirect

            this.Hide();
            var result = f2.ShowDialog();

            if (result != DialogResult.Cancel)
            {
                this.Close();
            }
        }