/// <summary> /// Function to display a transaction's information /// </summary> /// <param name="saleId">Identification number of the desired transaction</param> private void DisplayTransactionInformation(String saleId) { // Requesting transaction information sale = SaleInformationManager.ConsultTransactionInformationBySalesId(saleId); this.Text = "Sale Information: " + sale.Id; saleIdLabel.Text = sale.Id; saleDateLabel.Text = sale.TransactionDate.ToString(); soldByLabel.Text = sale.SoldBy; statusLabel.Text = sale.Status; deliveryCheckBox.Checked = sale.Delivery; parentIdLabel.Text = sale.Parent == "" ? "None" : sale.Parent; childIdLabel.Text = sale.Child == "" ? "None" : sale.Child; lastModifiedDateLabel.Text = sale.LastModified.ToString(); }
public ReturnItemsMiniForm(String saleId) { InitializeComponent(); sale = SaleInformationManager.ConsultTransactionInformationBySalesId(saleId); }