private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            TeacherLoginform login = new TeacherLoginform();

            this.Hide();
            login.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            TeacherLoginform form = new TeacherLoginform();

            this.Hide();
            form.Show();
        }
        private void lnklogin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            TeacherLoginform rf = new TeacherLoginform();

            this.Hide();
            rf.Show();
        }
        private void btnLogout_Click(object sender, EventArgs e)
        {
            localhost.Service1 ser = new localhost.Service1();
            bool TeacherLogoutResult;
            bool TeacherLogoutResultSpecified;

            ser.TeacherLogout(out TeacherLogoutResult, out TeacherLogoutResultSpecified);
            if (TeacherLogoutResult)
            {
                TeacherLoginform frm = new TeacherLoginform();
                this.Hide();
                frm.Show();
            }
            else
            {
            }
        }