Exemple #1
0
        /// <summary>
        /// Fa il bind dei dati in base allo step (SOLO FORWARD, in BACK non viene aggiornato!!!)
        /// </summary>
        /// <param name="Step"></param>
        public void BindStep(Domain.Enums.CategoryDeleteSteps Step)
        {
            if ((int)Step <= (int)View.StartStep)
            {
                return;
            }

            switch (Step)
            {
            case Domain.Enums.CategoryDeleteSteps.Step2_Ticket:

                break;

            case Domain.Enums.CategoryDeleteSteps.Step3a_ReassignAll:
                Domain.DTO.DTO_CategoryTree cate = service.CategoryGetTreeDLLSingle(View.CommunityId, View.CategoryId);
                if (cate == null)
                {
                    //ATTENZIONE: GESTIONE ERRORI!!!
                    return;
                }
                View.SetReassignCategory(cate, service.CategoriesGetTreeDLLForDelete(View.CommunityId, View.CategoryId, false));
                break;

            case Domain.Enums.CategoryDeleteSteps.Step3b_ReassignSingle:

                View.SetReassignCategories(
                    service.CategoriesGetFromCategory(true, View.CommunityId, View.CategoryId),
                    service.CategoriesGetTreeDLLForDelete(View.CommunityId, View.CategoryId, false));

                break;
            }
        }