private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            StudentLoginform form = new StudentLoginform();

            form.Show();
            this.Hide();
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            StudentLoginform login = new StudentLoginform();

            this.Hide();
            login.Show();
        }
        private void lnklogin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            StudentLoginform login = new StudentLoginform();

            this.Hide();
            login.Show();
        }
Beispiel #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     localhost.Service1 ser = new localhost.Service1();
     if (txtPassword.Text == txtConfirmPassword.Text)
     {
         StudentLoginform form = new StudentLoginform();
         form.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Incorrect Password");
     }
 }
        private void button6_Click(object sender, EventArgs e)
        {
            localhost.Service1 ser = new localhost.Service1();
            bool StudentLogoutResult;
            bool StudentLogoutResultSpecified;

            ser.StudentLogout(out StudentLogoutResult, out StudentLogoutResultSpecified);
            if (StudentLogoutResult)
            {
                StudentLoginform login = new StudentLoginform();
                this.Hide();
                login.Show();
            }
            else
            {
                MessageBox.Show("Something went wrong");
            }
        }