Exemple #1
0
 //override to ToString method
 public override string ToString()
 {
     return(ID.ToString() + "\t" + Name + "\t\t\t\t" + QtyReq.ToString() + "\t"
            + Quantity.ToString());
 }
Exemple #2
0
 /*
  * CONVERTS TO STRING (to later be displayed on a listbox)*/
 public override string ToString()
 {
     if (Name.Length < 8)
     {
         return(ID.ToString() + "\t\t" + Name + "\t\t\t" + Qty.ToString() + '\t' + QtyReq.ToString());
     }
     else
     {
         return(ID.ToString() + "\t\t" + Name + "\t\t" + Qty.ToString() + '\t' + QtyReq.ToString());
     }
 }