Example #1
0
        void AddSupplierToGrid(Backend.Objects.ProductSupplier supplier)
        {
            //Fill Grid [ SuppliersGrid ] With Rows
            ProductSupplierModel supplierModel = new ProductSupplierModel
            {
                OnDelete = OnDeleteSupplier,
                Supplier = supplier,
                User     = user,
            };

            //Add To Grid
            SuppliersGrid.Controls.Add(supplierModel);
        }
Example #2
0
        void Initialize()
        {
            user     = Util.Data.GetUser();
            supplier = ProductSupplier;

            //Get Task
            if (Task == Enums.Task.Get || Task == Enums.Task.Update)
            {
                GetSupplier();
            }
            else if (Task == Enums.Task.Create)
            {
                supplier          = new Backend.Objects.ProductSupplier();
                txtMarkup.Text    = "0";
                btnDelete.Visible = false;
            }
            // Add DropDown Items
            Util.Func.AddCountriesToDropDowns(cbbCountry, dpdCountry);

            Translate();
        }