//logout link private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { DialogResult result = MessageBox.Show("Are you sure?", "Logout", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { LoginForm l = LoginForm.GetInstance(); MainContainer.LoadForm(l); } }
//back to login link private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { LoginForm l = LoginForm.GetInstance(); MainContainer.LoadForm(l); }