Ejemplo n.º 1
0
 public GraphicMonth(string name, int number, List <GraphicDay> days, GraphicMonthSaveing monthSaving)
 {
     this.MonthName   = name;
     this.Number      = number;
     this.Days        = days;
     this.MonthSaving = monthSaving;
 }
Ejemplo n.º 2
0
 public GraphicMonth(string name, int number, bool?is31DayMonth)
 {
     this.MonthName = name;
     this.Number    = number;
     this.Days      = new List <GraphicDay>(32);
     if (is31DayMonth.HasValue)
     {
         if (is31DayMonth.Value)
         {
             for (int i = 0; i < 31; i++)
             {
                 this.Days.Add(new GraphicDay((i + 1).ToString() + " Число"));
             }
         }
         else
         {
             for (int i = 0; i < 30; i++)
             {
                 this.Days.Add(new GraphicDay((i + 1).ToString() + " Число"));
             }
             this.Days.Add(new GraphicDay((30 + 1).ToString() + " Число")
             {
                 isVisible = false
             });
         }
     }
     else
     {
         for (int i = 0; i < 29; i++)
         {
             this.Days.Add(new GraphicDay((i + 1).ToString() + " Число"));
         }
         this.Days.Add(new GraphicDay((29 + 1).ToString() + " Число")
         {
             isVisible = false
         });
         this.Days.Add(new GraphicDay((30 + 1).ToString() + " Число")
         {
             isVisible = false
         });
     }
     this.MonthSaving = new GraphicMonthSaveing(new GraphicTime(0, 0), new GraphicTime(0, 0));
 }
Ejemplo n.º 3
0
 /*Заглушка на экономию*/
 public GraphicValue(List <GraphicMonth> months, GraphicYearSaving yearSaving, GraphicMonthSaveing monthSaving)
 {
     this.Month      = months;
     this.YearSaving = yearSaving;
     /*Заглушка на экономию*/
     this.MonthSaving = monthSaving;
 }