Exemple #1
0
 private void DatePicker_Loaded(object sender, RoutedEventArgs e)
 {
     AuWeather.LunarCalendar.CalendarInfo calendar = new AuWeather.LunarCalendar.CalendarInfo();
     LunarText.Text = ("农历 " + calendar.LunarYearSexagenary + "年" + calendar.LunarMonthText + "月" + calendar.LunarDayText + "    " + calendar.SolarTermStr).Trim();
     StarText.Text  = calendar.SolarConstellation;
     StoneText.Text = calendar.SolarBirthStone;
 }
Exemple #2
0
        private void DatePicker_DateChanged(object sender, DatePickerValueChangedEventArgs e)
        {
            var d = (sender as DatePicker);

            AuWeather.LunarCalendar.CalendarInfo calendar = new AuWeather.LunarCalendar.CalendarInfo(d.Date.Date);
            LunarText.Text = ("农历 " + calendar.LunarYearSexagenary + "年" + calendar.LunarMonthText + "月" + calendar.LunarDayText + "    " + calendar.SolarTermStr).Trim();
            StarText.Text  = calendar.SolarConstellation;
            StoneText.Text = calendar.SolarBirthStone;
        }
 private void DatePicker_DateChanged(object sender, DatePickerValueChangedEventArgs e)
 {
     var d = (sender as DatePicker);
     AuWeather.LunarCalendar.CalendarInfo calendar = new AuWeather.LunarCalendar.CalendarInfo(d.Date.Date);
     LunarText.Text = ("农历 " + calendar.LunarYearSexagenary + "年" + calendar.LunarMonthText + "月" + calendar.LunarDayText + "    " + calendar.SolarTermStr).Trim();
     StarText.Text = calendar.SolarConstellation;
     StoneText.Text = calendar.SolarBirthStone;
 }
 private void DatePicker_Loaded(object sender, RoutedEventArgs e)
 {
     AuWeather.LunarCalendar.CalendarInfo calendar = new AuWeather.LunarCalendar.CalendarInfo();
     LunarText.Text = ("农历 " + calendar.LunarYearSexagenary + "年" + calendar.LunarMonthText + "月" + calendar.LunarDayText + "    " + calendar.SolarTermStr).Trim();
     StarText.Text = calendar.SolarConstellation;
     StoneText.Text = calendar.SolarBirthStone;
 }