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