Esempio n. 1
0
 public void Load(MoneySave mc)
 {
     Money          = mc.money;
     CurrentQuarter = mc.currentQuarter;
     pastQuarters   = mc.pastQuarters;
 }
Esempio n. 2
0
 /// <summary>
 /// 根据一个日期得到所在的季度
 /// </summary>
 /// <param name="theTime"></param>
 /// <returns></returns>
 public Quarter GetQuarterOfDateTime(DateTime theTime)
 {
     return(QuarterList.First(r => r.TimeRange.IsInRange(theTime)));
 }
Esempio n. 3
0
 public MoneySave(MoneyController mc)
 {
     money          = mc.Money;
     currentQuarter = mc.CurrentQuarter;
     pastQuarters   = mc.pastQuarters;
 }