private void btnFinalize_Click(object sender, EventArgs e)
 {
     Form1 frm = this.Owner as Form1;
     if (frm != null)
     {
         Schedule tmpSchedule = new Schedule(Convert.ToInt32(tbDay.Text),
                                             Convert.ToInt32(tbMonth.Text),
                                             Convert.ToInt32(tbYear.Text));
         frm.schedules.Add(tmpSchedule);
     }
     this.Close();
 }
 public void addTeam(Schedule schedule, Team team)
 {
     schedule.teams.Add(team);
 }
Example #3
0
 public void newSchedule(Schedule sch)
 {
     schedule.Add(sch);
 }