public bool UpdateReflashHistory(ReflashHistory history, string token)
 {
     ITokenValidator validator = new DatabaseTokenValidator();
     if (validator.IsValid(token))
         return new VtecTeamDBManager().UpdateReflashHistory(history);
     throw new FaultException("Срок рабочей сессии истек, преезапустите программу");
 }
        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;
            }
        }
 public bool UpdateReflashHistory(ReflashHistory history)
 {
     return vtServiceFacade.UpdateReflashHistory(history, incomingUserInfo);
 }