Example #1
0
 public SqureCard(TodayResponse todayResponse)
 {
     InitializeComponent();
     toCalendar               = todayResponse;
     this.card_name.Content   = toCalendar.calendarName;
     this.img_calendar.Source = new BitmapImage(new Uri(toCalendar.calendarPicture, UriKind.Absolute));
     calendar             = new CalendarModel();
     calendar.title       = toCalendar.calendarName;
     calendar.isSubcribed = true;
     calendar.picture     = toCalendar.calendarPicture;
     calendar.id          = toCalendar.calendarId;
 }
Example #2
0
        public async void loadToday(long calendarId)
        {
            // 单个黄历信息的请求

            GetTodayById request = new GetTodayById(calendarId);
            RestfulClient <TodayResponse> restful = new RestfulClient <TodayResponse>(request);

            TodayResponse rsp = await restful.GetResponse();

            if (rsp != null)
            {
                this.tResponse = rsp;
                refresh();
            }
        }