public void loadProductAttributeList()
        {
            BaseAttributeService baseAttributeService = new BaseAttributeService();
            List <BaseAttribute> baseAttributes       = baseAttributeService.GetBaseAttributes();

            if (baseAttributes != null)
            {
                setUpDataGrid(baseAttributes);
            }
        }
        public void loadProductAttributeList()
        {
            BaseAttributeService baseAttributeService = new BaseAttributeService();
            List<BaseAttribute> baseAttributes = baseAttributeService.GetBaseAttributes();
            if (baseAttributes != null)
            {
                setUpDataGrid(baseAttributes);

            }
        }
        private void loadSomeData()
        {
            if (productTypes == null)
            {
                ProductTypeService productTypeService = new ProductTypeService();
                productTypes = productTypeService.GetProductTypes();
            }

            if (productTypes != null)
            {
                cmbType.DataSource    = productTypes;
                cmbType.DisplayMember = "TypeName";
                cmbType.ValueMember   = "Id";
            }

            BaseAttributeService baseAttributeService = new BaseAttributeService();

            if (baseAttributes == null)
            {
                baseAttributes = baseAttributeService.GetBaseAttributes();
            }
        }
        private void loadSomeData()
        {
            if (productTypes == null)
            {
                ProductTypeService productTypeService = new ProductTypeService();
                productTypes = productTypeService.GetProductTypes();
            }
            
            if (productTypes != null)
            {
                cmbType.DataSource = productTypes;
                cmbType.DisplayMember = "TypeName";
                cmbType.ValueMember = "Id";
            }

            BaseAttributeService baseAttributeService = new BaseAttributeService();
            if (baseAttributes == null)
            {
                baseAttributes = baseAttributeService.GetBaseAttributes();
            }      
        }