コード例 #1
0
ファイル: Form1.cs プロジェクト: dhanukawick/CWE-Application
        private void Label10_Click(object sender, EventArgs e)
        {
            this.Hide();
            Signin sn = new Signin();

            sn.ShowDialog();
        }
コード例 #2
0
        private void Home_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Are you sure want to sign out?", "Sign Out", MessageBoxButtons.YesNo);

            if (dialog == DialogResult.Yes)
            {
                Signin si = new Signin();
                si.Show();
                this.Hide();
            }
            else if (dialog == DialogResult.No)
            {
                e.Cancel = true;
            }
        }