public void RefreshView() { if (viewState == ViewState.IsRefreshing) { return; } Model.InternalDetails curShowedInternDetails = presenter.CurShowedInternDetails; if (curShowedInternDetails == null) { return; } viewState = ViewState.IsRefreshing; TxtFirstName.Text = curShowedInternDetails.FirstName; TxtLastName.Text = curShowedInternDetails.LastName; DtpDateOfBirth.Value = curShowedInternDetails.DateOfBirth; TxtDepartment.Text = curShowedInternDetails.Department; DtpFromDate.Value = curShowedInternDetails.FromDate; DtpUntilDate.Value = curShowedInternDetails.UntilDate; RtxtExercises.Text = curShowedInternDetails.Exercises; RtxtPracticalExperience.Text = curShowedInternDetails.PracitcalExperience; if (curShowedInternDetails.Sex == Sex.Male) { RbtnMale.Checked = true; } if (curShowedInternDetails.Sex == Sex.Female) { RbtnFemale.Checked = true; } if (Basis != null) { Basis.RefreshView(); } viewState = ViewState.WaitingForInput; }