private void button2_Click(object sender, EventArgs e)
        {
            Mark_Attendence ma = new Mark_Attendence(this);

            assignSubjectService.manageTeacher mtws = new PakTurk_school_system.assignSubjectService.manageTeacher();
            ClassName = mtws.getTeacherDetailsBLL(li.user);
            if (Int32.Parse(ClassName) > 0)
            {
                //MessageBox.Show(ClassID,"class Id returned ");
                this.Hide();
                ma.Show();
            }
            else
            {
                MessageBox.Show("You have not been assigned as Class Teacher to any class", "Permission Denied");
            }
        }
Example #2
0
 public Update_Attendance(Mark_Attendence m)
 {
     ma = m;
     InitializeComponent();
 }