public ReflashHistoryWithReviewForm(ReflashHistory history) { InitializeComponent(); this.history = history; txtBynaryFileName.Text = history.BinaryFileName; txtVin.Text = history.CarVin; txtPreviousBinaryName.Text = history.PreviousBinaryName; txtReflashDate.Text = history.ReflashDate.ToString(); txtPrice.Text = history.Price; txtStatus.Text = StatusResolver.ResolveReflashStatus(history.Status); if (history.Review == null) { txtCarOvner.Enabled = true; txtReview.Enabled = true; btnSendReview.Enabled = true; } else { txtCarOvner.Text = history.Review.UserName; txtReview.Text = history.Review.UserReview; chbEditReview.Visible = true; } }