Exemple #1
0
        //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);
            }
        }
Exemple #2
0
        //back to login link
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LoginForm l = LoginForm.GetInstance();

            MainContainer.LoadForm(l);
        }