int countpage; //总页 private void Attendance_Loaded(object sender, RoutedEventArgs e) { attendance_s = attmar.GetAttendances(); if (attendance_s == null) { return; } pageindex = 1; DtaGridpaging(attendance_s); FenyeCaozuo(attendance_s); }
public async Task GetAttendances() { this.AttendanceList.Clear(); var attendanceMgr = new AttendanceManager(); var attendances = await attendanceMgr.GetAttendances(); foreach (var attendance in attendances) { this.AttendanceList.Add(attendance); } this.IsBusy = false; }