Example #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            this.Dispose();
            frmLogAdmin frmLogAdmin = new frmLogAdmin();

            frmLogAdmin.Show();
        }
Example #2
0
        private void LblUser_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are you sure? ", "Log Out", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (dialogResult == DialogResult.Yes)
            {
                this.Close();
                frmStart frmStart = new frmStart();
                frmStart.Show();
                frmLogAdmin frmLogAdmin = new frmLogAdmin();
                frmLogAdmin.Show();
            }
        }
Example #3
0
        private void LblUser_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are you sure? ", "Log Out", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (dialogResult == DialogResult.Yes)
            {
                tblLogTrail log = new tblLogTrail();
                LogTrailBLL bll = new LogTrailBLL();
                log.Dater     = DateTime.Now.ToString();
                log.Descrip   = "User: "******" has successfully logged Out!";
                log.Authority = "Admin";
                bll.Insert(log);
                this.Close();
                frmStart frmStart = new frmStart();
                frmStart.Show();
                frmLogAdmin frmLogAdmin = new frmLogAdmin();
                frmLogAdmin.Show();
            }
        }
Example #4
0
        private void BtnLogAdmin_Click(object sender, EventArgs e)
        {
            frmLogAdmin frmLogAdmin = new frmLogAdmin();

            frmLogAdmin.Show();
        }