Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
            }
        }