void Absent() { int id = Int32.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()); int noofpres = Int32.Parse(dataGridView1.CurrentRow.Cells[4].Value.ToString()); noofpres++; M_Attendance AttKid = new M_Attendance(); string[] atts = { "Absent" }; string no = noofpres.ToString(); string[] values = { no }; AttKid.updateuser2("AttendanceQ", id, atts, values, "KidIDA"); ViewData(); }
void AddKid(string [] ss) { M_Kids NewKid = SetKidObj(ss); NewKid.ADD("Kids", this.atts, ss); M_Attendance AttKid = new M_Attendance(); string[] xs = new string[4]; xs[0] = ss[0]; xs[1] = ss[6]; xs[2] = "0"; xs[3] = "0"; AttKid.AddKidToAttendance(xs); }