Exemplo n.º 1
0
        private void TransactionDetails_Load(object sender, EventArgs e)
        {
            lblProcessedBY.Text     = AdminFullname;
            lblTransactionDate.Text = TransactionDate.ToShortDateString();
            lblTransactionID.Text   = TransactionID.ToString();
            lblTransactionType.Text = TransactionType;

            if (TransactionType == "Borrowed an Equipment")
            {
                dgvTransactionDetails.DataSource = db.sp_ViewBorrowedEquipment(TransactionID);
            }
        }
Exemplo n.º 2
0
 public virtual void Display()
 {
     Console.WriteLine($"{Bank}\t{TransactionDate.ToShortDateString()}\t{Details}\t£{Amount}");
 }
Exemplo n.º 3
0
 public override string ToString()
 {
     return(string.Format(AccountNumber + " " + Amount + " " + TransactionDate.ToShortDateString()));
 }