예제 #1
0
        private void btnStudy_Click(object sender, EventArgs e) //opens study form
        {
            frmStudy stud = new frmStudy();                     //opens the study form when clicked

            this.Hide();
            stud.Show();
        }
        private void btnStudy_Click(object sender, EventArgs e)
        {
            DialogResult exitConfirm = new DialogResult();

            //confirmation dialogue
            exitConfirm = MessageBox.Show("Are you sure?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (exitConfirm == DialogResult.Yes)
            {
                frmStudy main = new frmStudy();
                this.Hide();
                main.Show();
            }
        }