Пример #1
0
 /// <summary>
 /// Buys the specified amount.
 /// </summary>
 /// <param name="amount">The amount.</param>
 /// <param name="supplement">The supplement.</param>
 public void Buy(double amount, string supplement)
 {
     theModel.AddToStore(amount, supplement);
 }
Пример #2
0
 /// <summary>
 /// Buys the specified amount.
 /// </summary>
 /// <param name="amount">Amount (kg fresh weight) of the supplement to be included in the store</param>
 /// <param name="supplement">The supplement.</param>
 public void Buy(double amount, string supplement)
 {
     OutputSummary.WriteMessage(this, "Purchase " + amount.ToString() + "kg of " + supplement);
     theModel.AddToStore(amount, supplement);
 }