コード例 #1
0
ファイル: FrmAttendance.xaml.cs プロジェクト: WEIANWOSHI/nono
 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);
 }
コード例 #2
0
        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;
        }