Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="month"></param>
        /// <returns></returns>
        public MonthTimeFile AddMonth(int month)
        {
            MonthTimeFile mfile = new MonthTimeFile()
            {
                TimeKey = month
            };

            return(AddMonth(month, mfile));
        }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="month"></param>
 /// <param name="file"></param>
 public MonthTimeFile AddMonth(int month, MonthTimeFile file)
 {
     if (this.ContainsKey(month))
     {
         return(this[month] as MonthTimeFile);
     }
     else
     {
         file.Parent = this;
         return(this.AddTimefile(month, file) as MonthTimeFile);
     }
 }