private void PicClose_Click(object sender, EventArgs e) { this.Close(); frmlogin login = new frmlogin(); login.Show(); //Application.Exit(); }
private void button1_Click(object sender, EventArgs e) { User.AddToUserLog("Log Out", User.Username + " Logged Out"); User.Username = ""; User.AccessLevel = 0; this.Close(); frmlogin login = new frmlogin(); login.Show(); }