/// <summary> /// Adds a finding to the list of findings int the BOM /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAddFinding_Click(object sender, EventArgs e) { quantity.Add(Convert.ToInt32(nudQuantity.Value)); currentFinding = (Findings)cbxFindings.Items[cbxFindings.SelectedIndex]; findings.Add(currentFinding); lbxFindings.Items.Add(currentFinding.Name); }
/// <summary> /// updates the SLA fields with the current finding's SLA info /// </summary> /// <param name="f"></param> private void DisplaySLA(Findings f) { txtSLAAmount.Text = f.Sla.Amount.ToString(); txtSLACost.Text = f.Sla.Cost.ToString(); txtSLADescription.Text = f.Sla.Description; txtSLAID.Text = f.Sla.Id.ToString(); }
/// <summary> /// Bom constructor /// </summary> /// <param name="currentProduct"></param> public BOMForm(Product currentProduct) { InitializeComponent(); product = currentProduct; Findings a = new Findings(); a.Name = "a"; listOfAllFindings.Add(a); cbxFindings.DisplayMember = "Name"; cbxFindings.DataSource = listOfAllFindings; if (currentProduct.BOM.QuantityOfFindings != null) { RefreshBomInfo(); } }
public OrderDetails(Findings f, int quantity) { this.finding = f; this.quantity = quantity; }