private void submit_Click(object sender, EventArgs e)
        {
            string     className = text_Class.Text.ToLower();
            string     semester  = text_Sem.Text.ToLower();
            attendance obj       = new attendance();

            obj.markAttendance(className, semester);
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            attendance obj1 = new attendance();

            string classN = className.Text.ToLower();

            string[] result = obj1.viewAttendance(classN);


            for (int j = 0; j < result.Length; j++)
            {
                string[] words = result[j].Split(' ');

                ListViewItem objL = new ListViewItem(words[0]);
                objL.SubItems.Add(words[1]);
                objL.SubItems.Add(words[2]);
                listViewAtt.Items.Add(objL);
            }
        }