예제 #1
0
 private void attachProperties(int medicineId)
 {
     m                   = MedicineRepository.getMedicineById(medicineId);
     NameBox.Text        = m.Name;
     DescriptionBox.Text = m.Description;
     PriceBox.Text       = m.Price.ToString();
     StockBox.Text       = m.Stock.ToString();
 }
예제 #2
0
 public static Medicine getMedicineById(int id)
 {
     return(MedicineRepository.getMedicineById(id));
 }