Пример #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;
        }
    }
Пример #2
0
    private void BindSubCategory(ISubCategoryView subCatEntryView)
    {
        List <Sub_Category> subCategories = _modelSubCat.GetAllSubCategories();

        subCatEntryView.SubCategories = subCategories;
    }