コード例 #1
0
        public Anio()
        {
            this.anio  = 2000;
            this.meses = new List <Mes>();

            this.tool = new ManejadorMeses();
            this.tool.GenerarMeses();
            this.meses = this.tool.Meses;
        }
コード例 #2
0
 public void GenerarAnios(int n)
 {
     anios.Clear();
     this.tool = new ManejadorMeses();
     for (int i = 0; i < n; i++)
     {
         Anio anio = new Anio(2000 + i);
         tool.GenerarMeses();
         anio.meses = new List <Mes>(tool.Meses);
         aniadirCaracteristicas(anio);
         anios.Add(anio);
         tool.Meses.Clear();
     }
 }