public static int CalculateCalendar(TResultCalendar daybuff, GCLocation loc, GregorianDateTime date, int nDaysCount) { bool bCalcMoon = (GCDisplaySettings.Current.getValue(4) > 0 || GCDisplaySettings.Current.getValue(5) > 0); //GCUserInterface.CreateProgressWindow(); if (daybuff.CalculateCalendar(loc, date, nDaysCount) == 0) { return(0); } //GCUserInterface.CloseProgressWindow(); return(1); }
public void Calculate(GregorianDateTime dateTime, GCLocation location) { GregorianDateTime vc2 = new GregorianDateTime(); currentDay = new GregorianDateTime(); currentDay.Set(dateTime); currentDay.InitWeekDay(); vc2.Set(currentDay); vc2.TimezoneHours = location.OffsetUtcHours; vc2.PreviousDay(); vc2.PreviousDay(); vc2.PreviousDay(); vc2.PreviousDay(); calendar = new TResultCalendar(); calendar.CalculateCalendar(location, vc2, 9); }