public SharedCalendarEvent(MoonPhase moonPhase, int moonMonth, DateTime phaseStartTime, DateTime phaseEndTime) { MoonPhase = moonPhase; MoonMonth = moonMonth; PhaseStartTime = phaseStartTime; PhaseEndTime = phaseEndTime; }
/// <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; }
/// <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)); }