コード例 #1
0
ファイル: ProfileDetailsForm.cs プロジェクト: xleza/FAS
        private async void FillFormAsync()
        {
            var lecturer = await _dao.GetAsync <ProfileDto>(_id);

            PersonalIdValue.Text = lecturer.Id;
            FullNameValue.Text   = lecturer.FullName;
            BirthDateValue.Text  = lecturer.BirthDate.ToString("MM/dd/yyyy");
            ImageBox.Image       = lecturer.Image.ToBitmap();
        }
コード例 #2
0
ファイル: StudentDetailsForm.cs プロジェクト: xleza/FAS
        private async void FillFormAsync()
        {
            var student = await _dao.GetAsync <StudentsDetailsDto>(_id)
                          .OnError(_ => MessageBoxWrapper.Error("Can't get student"));

            PersonalIdValue.Text = student.Id;
            FullNameValue.Text   = student.FullName;
            BirthDateValue.Text  = student.BirthDate.ToString("MM/dd/yyyy");
            ImageBox.Image       = student.Image.ToBitmap();
            FingerprintBox.Image = student.FingerprintImage.ToBitmap();
        }