public static string GetTextRtf(GPCalendarDay pvd) { String str; str = string.Format("\\par {0} {1} {2} {3}\\tab {4}\\tab {5} ", pvd.date.getDay().ToString().PadLeft(2), GPAppHelper.getMonthAbr(pvd.date.getMonth()), pvd.date.getYear() , pvd.getWeekdayAbbr(), pvd.getTithiNameExtended(), (GPDisplays.Calendar.PaksaInfoVisible() ? GPPaksa.getAbbreviation(pvd.astrodata.nPaksa) : " ")); if (GPDisplays.Calendar.YogaVisible()) { str += string.Format("\\tab {0}", GPYoga.getName(pvd.astrodata.nYoga)); } if (GPDisplays.Calendar.NaksatraVisible()) { str += string.Format("\\tab {0}", GPNaksatra.getName(pvd.astrodata.nNaksatra)); } if (pvd.nFastType != GPConstants.FAST_NULL && GPDisplays.Calendar.FastingFlagVisible()) { str += "\\tab *"; } else if (GPDisplays.Calendar.FastingFlagVisible()) { str += "\\tab "; } if (GPDisplays.Calendar.RasiVisible()) { str += string.Format("\\tab {0}", GPSankranti.getName(pvd.astrodata.moon.GetRasi(pvd.astrodata.msAyanamsa))); } str += "\r\n"; return(str); }
public static string GetTextA(GPCalendarDay pvd) { string str; String s1, s2; s1 = pvd.getTithiNameExtended(); s2 = GPStrings.getString(150 + pvd.date.getDayOfWeek()); str = string.Format("{0} {1} {2} {3} {4}{5} ", pvd.date.getDay().ToString().PadLeft(2), GPAppHelper.getMonthAbr(pvd.date.getMonth()), pvd.date.getYear() , s2, s1.PadRight(34), (GPDisplays.Calendar.PaksaInfoVisible() ? GPPaksa.getAbbreviation(pvd.astrodata.nPaksa) : " ")); if (GPDisplays.Calendar.YogaVisible()) { str += GPYoga.getName(pvd.astrodata.nYoga).PadRight(10); } if (GPDisplays.Calendar.NaksatraVisible()) { str += GPNaksatra.getName(pvd.astrodata.nNaksatra).PadRight(15); } if (pvd.nFastType != GPConstants.FAST_NULL && GPDisplays.Calendar.FastingFlagVisible()) { str += " *"; } else { str += " "; } if (GPDisplays.Calendar.RasiVisible()) { str += " "; str += pvd.getRasiOfMoonName().PadRight(15); } return(str); }