Creating StockItemDetailsPageViewModel
Now we move on to the last view-model in our application. Add a new file called StockItemDetailsPageViewModel
to our ViewModels folder in the Stocklist.Portable
project.
Let's start by implementing the private
properties:
#region Private Properties private readonly IStocklistWebServiceController _stocklistWebServiceController; private int _id; private string _name; private string _category; private decimal _price; private bool _inProgress; #endregion
You should be able to add the public
properties yourself. Here is the first to get you started:
public int Id { get { return _id; } set { if (value.Equals(_id)) { ...