Example #1
0
        public ProductXAML(GeStockItem geStockItem)
        {
            _geStockItemViewModel = new GeStockItemViewModel(geStockItem);

            BindingContext = _geStockItemViewModel;

            InitializeComponent();

            _refresh();
        }
        public EditProductXAML(GeStockItemViewModel geStockItemViewModel)
        {
            _geStockItemOriginal = new GeStockItem(geStockItemViewModel.StockItem);

            _geStockItemViewModel = geStockItemViewModel;

            BindingContext = _geStockItemViewModel;

            InitializeComponent();

            categories = App.Database.GetCategories();

            foreach (Category category in categories)
            {
                CategoryPicker.Items.Add(category.Name);
            }
        }
Example #3
0
		void NewProduct() {

			stockItemMV = new GeStockItemViewModel(new GeStockItem());

			BindingContext = stockItemMV;
		}