示例#1
0
 private void sentToForm(int IdComment)
 {
     CoreLibrary.Comment.Controller commentController = new CoreLibrary.Comment.Controller();
     Comment entComment = commentController.GetCommentByID(IdComment);
     lblCreatedOnDate.Text = entComment.CreatedOn.ToShortDateString();
     tbxeMail.Text = entComment.Email;
     tbxName.Text = entComment.Name;
     rblSupervisorRating.SelectedValue = entComment.SupervisorRating.ToString();
     rblCompanyOpinionRating.Text = entComment.CompanyOpinionRating.ToString();
     rblWorkEnviromentRating.SelectedValue = entComment.WorkEnviromentRating.ToString();
     tbxCompanyWorking.Text = entComment.CompanyWorking;
     rblGroupDirectorRating.Text = entComment.GroupDirectorRating.ToString();
     rblSecurityAnswer.SelectedValue = entComment.SecurityRating.ToString();
     tbxSubject.Text = entComment.Subject;
     tbxComment.Text = entComment.CommentSuggestion;
     commentController.MarkAsRead(IdComment);
 }