예제 #1
0
 public SharedCalendarEvent(MoonPhase moonPhase, int moonMonth, DateTime phaseStartTime, DateTime phaseEndTime)
 {
     MoonPhase      = moonPhase;
     MoonMonth      = moonMonth;
     PhaseStartTime = phaseStartTime;
     PhaseEndTime   = phaseEndTime;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarEntry"/> class.
 /// </summary>
 /// <param name="moonMonth">The Moon month.</param>
 /// <param name="moonPhase">The Moon phase.</param>
 /// <param name="startTime">The start time.</param>
 /// <param name="endTime">The end time.</param>
 /// <param name="mushroomInfoList">The list of mushroom info.</param>
 public CalendarEntry(int moonMonth, MoonPhase moonPhase, DateTime startTime, DateTime endTime, ICollection <MushroomInfo> mushroomInfoList)
 {
     MoonMonth        = moonMonth;
     MoonPhase        = moonPhase;
     StartTime        = startTime;
     EndTime          = endTime;
     MushroomInfoList = mushroomInfoList;
 }
예제 #3
0
 /// <summary>
 /// Returns a string that represents the current object.
 /// </summary>
 /// <returns>A string that represents the current object.</returns>
 public override string ToString()
 {
     return(MoonPhase.ToString() + " - " + EndTime.ToLocalTime().ToString(CultureInfo.CurrentCulture));
 }