private void UpdateTotals()
    {
        // Add up total costs and price
        // Create a MyComponent object
        // Calculate the Componnent Margin
        // Set TotalPrice and Accounting Cost
        // Add MyComponnent to LstMyComponent
        this.Quote.CalculateTotals();
        MyComponent mc = new MyComponent {
            PartName       = "Totals",
            AccountingCost = this.Quote.AccountingCostTotal,
            StandardCost   = this.Quote.StandardCostTotal,
            ComponentPrice = this.Quote.PriceTotal
        };

        mc.CalculateComponentMargin();
        this.ListPrice      = mc.ComponentPrice;
        this.AccountingCost = mc.AccountingCost;
        base.LstMyComponent.Add(mc);
    }
 private void PopulateLstMyComponent()
 {
     // Get total of quoteLines
     // For a total of (QuoteLine total) times, Create a MyDiscount object
     // Set ComponentType, PartNumber, PartName, AccouningCost, StandardCost, ComponentPrice
     // Calculate the Componnent Margin
     // Add MyComponent to LstMyComponent
     for (int i = 0; i < this.Quote.QuoteLines.Count; i++)
     {
         MyComponent mc = new MyComponent {
             ComponentType  = this.Quote.QuoteLines[i].ComponentType,
             PartNumber     = this.Quote.QuoteLines[i].PartNumber,
             PartName       = this.Quote.QuoteLines[i].PartName,
             AccountingCost = this.Quote.QuoteLines[i].AccountingCost,
             StandardCost   = this.Quote.QuoteLines[i].StandardCost,
             ComponentPrice = this.Quote.QuoteLines[i].ComponentPrice
         };
         mc.CalculateComponentMargin();
         base.LstMyComponent.Add(mc);
     }
     // Continue Submit Process
     this.SetTotalsWarrantyListPrice();
 }