예제 #1
0
        private async Task RefreshCache()
        {
            var fooLeaveAppFormRepository = new LeaveAppFormRepository();
            await fooLeaveAppFormRepository.ReadAsync(MainHelper.LeaveAppFormUserMode);

            LeaveAppFormList.Clear();
            foreach (var item in fooLeaveAppFormRepository.Items)
            {
                LeaveAppFormList.Add(item);
            }
        }
예제 #2
0
        private async Task RefreshCache()
        {
            var fooLeaveAppFormRepository = new LeaveAppFormRepository();
            await fooLeaveAppFormRepository.ReadAsync(MainHelper.LeaveAppFormManagerMode);

            LeaveAppFormList.Clear();
            foreach (var item in fooLeaveAppFormRepository.Items)
            {
                if (item.ApproveResult == "尚未審核")
                {
                    LeaveAppFormList.Add(item);
                }
            }
        }