Exemplo n.º 1
0
        private void BtnLogOut_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show(" Are You Sure ? ", "Log Out", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                Frm_Login frL = new Frm_Login();
                frL.Show();
                this.Close();
            }
        }
Exemplo n.º 2
0
        private void ıconButtonLogOut_Click(object sender, EventArgs e)
        {
            ActiveButton(sender, RGBColors.color11);
            DialogResult dialogResult = MessageBox.Show(" Are You Sure ? ", "Log Out", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                this.Close();
                Frm_Login frL = new Frm_Login();
                frL.Show();
            }
        }