Exemple #1
0
        public void GoChooseProduct()
        {
            ClearPartsList();
            SetCurrentJobFeeToDefault();
            dvcSO.ClearTapSelection();
            dvcSO.ClearExtras();
            var dvcProducts = new ProductsDVC(null, true, true, this.NavUsedParts.Tabs._jobRunTable, this);

            NavigationController.PushViewController(dvcProducts, true);
        }
Exemple #2
0
        public ProductsDVC(RootElement root, bool pushing, bool filling, JobRunTable JRT, JobInstallationViewController JIVC) : base(root, pushing)
        {
            jivc = JIVC;
            // jrt = JRT;
            if (ProductsDVC.dbProducts == null || ProductsDVC.dbProducts.Count == 0)
            {
                dbProducts = ProductsDVC.ReadProducts();
            }

            if (filling)
            {
                this.Root = new RootElement("Choose product");
                Root.Add(new Section("Products"));

                foreach (Product product in dbProducts)
                {
                    Root[0].Add(new ProductBadgeElement(product, null));
                }
            }
        }