コード例 #1
0
 ///<summary>
 /// Triggers the model to validate the new item and add it to the curent stock with the desired input parameters.
 /// Triggered from the confirm button of the add item panel. Also clears inputs on success.
 ///</summary>
 public void ConfirmNewItem()
 {
     if (model.ConfirmNewItemAdd(view.editPanel.NameInput, view.editPanel.PriceInput, view.editPanel.QuantityInput, view.editPanel.DiscountInput))
     {
         view.editPanel.ClosePanel();
     }
 }