/// <summary>
 /// Parse out strongly typed values from the serialized strings
 /// </summary>
 public void Parse()
 {
     this.OrderDate    = DateTime.Parse(OrderDateString);
     this.OrderStatus  = CS.GetSalesStatus((SalesOrderStatus)(int.Parse(OrderStatusString)));
     this.ItemQuantity = decimal.Parse(ItemQuantityString);
     this.ItemAmount   = decimal.Parse(ItemAmountString);
 }
 internal void ExecuteLoadHistory()
 {
     if (!(this.Customer.IsEmptyCustomer() || this.historyLoadedFromAx))
     {
         try
         {
             this.history = CS.GetCustomerHistory(this.Customer.CustomerId);
         }
         catch (Exception ex)
         {
             ApplicationLog.Log(
                 typeof(Customer).ToString(),
                 string.Format("{0}\n{1}", ApplicationLocalizer.Language.Translate(99412), ex.Message),     //"an error occured in the operation"
                 LogTraceLevel.Error);
             CS.InternalApplication.Services.Dialog.ShowMessage(99412, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
         this.historyLoadedFromAx = true;
         OnPropertyChanged("DateCreated");
         OnPropertyChanged("LastVisitedStore");
         OnPropertyChanged("LastVisitedDate");
         OnPropertyChanged("TotalVisitsCount");
         OnPropertyChanged("TotalSalesAmount");
     }
 }