Beispiel #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
            Instructor_operations instructor = new Instructor_operations(instructorID);

            instructor.Show();
        }
        private void login(int id, string name)
        {
            OnlineExam ent = new OnlineExam();

            try
            {
                var inst = (from s in ent.Instructors
                            where s.InsId == id && s.InsName == name
                            select s).First();
                this.Close();
                Instructor_operations instructor = new Instructor_operations(inst.InsId);
                this.Close();
                instructor.Show();
            }
            catch (Exception)
            {
                MessageBox.Show("Not Authroized", "Access Denaied");
            }
        }