コード例 #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
ファイル: frmMain.cs プロジェクト: MIAhmed/YOY-Player
        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
ファイル: frmMain.cs プロジェクト: MIAhmed/YOY-Player
        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();
            }
        }