Пример #1
0
        public ProductXAML(GeStockItem geStockItem)
        {
            _geStockItemViewModel = new GeStockItemViewModel(geStockItem);

            BindingContext = _geStockItemViewModel;

            InitializeComponent();

            _refresh();
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
		void NewProduct() {

			stockItemMV = new GeStockItemViewModel(new GeStockItem());

			BindingContext = stockItemMV;
		}