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(); }
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(); }