Exemple #1
0
        // KIDS
        M_Kids SetKidObj(string [] values)
        {
            M_Kids NewKid = new M_Kids();

            NewKid.name         = values[0];
            NewKid.birthdate    = values[1];
            NewKid.gender       = values[2];
            NewKid.address      = values[3];
            NewKid.parent_email = values[4];
            NewKid.parent_no    = Int32.Parse(values[5]);
            return(NewKid);
        }
Exemple #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (textBox3.Text != "")
     {
         int id;
         id = Int32.Parse(textBox3.Text);
         M_Kids kd = new M_Kids();
         kd.Delete("Kids", id, "KidID");
     }
     else
     {
         MessageBox.Show("Enter ID");
     }
 }
Exemple #3
0
        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);
        }
Exemple #4
0
        void EditKid(string [] ss)
        {
            M_Kids NewKid = SetKidObj(ss);

            NewKid.updateuser2("Kids", id, this.atts, ss, "KidID");
        }