Esempio n. 1
0
    private void InitilizeAttribute(Constants.Master enumMaster)
    {
        try
        {
            switch (enumMaster)
            {
            case Constants.Master.Category:
                _categoryView = (ICategoryView)_view;
                _modelCat     = new ModelCategory();
                break;

            case Constants.Master.SubCategory:
                _masterListEntry = (ISubCategoryView)_view;
                _modelSubCat     = new ModelSubCategory();
                break;

            default:
                break;
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
Esempio n. 2
0
    private void BindSubCategory(ISubCategoryView subCatEntryView)
    {
        List <Sub_Category> subCategories = _modelSubCat.GetAllSubCategories();

        subCatEntryView.SubCategories = subCategories;
    }