private void LoadSkins(Int32 idModule, Int32 idCommunity, long idModuleItem, Int32 idItemType, DtoDisplaySkin currentSkin, LoadItemsBy loadModuleSkinBy) { List <DtoDisplaySkin> items = Service.GetAvailableSkins(idModule, idCommunity, idModuleItem, idItemType, View.FullSkinManagement, loadModuleSkinBy); if (items.Count == 0) { View.LoadEmptySkin(); } else { View.LoadSkins(items, currentSkin); SelectSkin(currentSkin); } }
public void InitView(Int32 idModule, Int32 idCommunity, long idModuleItem, Int32 idItemType, String fullyQualifiedName, Boolean allowAdd, Boolean allowEdit, LoadItemsBy loadModuleSkinBy) { lm.Comol.Core.DomainModel.ModuleObject item = new lm.Comol.Core.DomainModel.ModuleObject(); item.CommunityID = idCommunity; item.ObjectLongID = idModuleItem; item.ObjectTypeID = idItemType; item.ServiceID = idModule; item.FQN = fullyQualifiedName; item.ServiceCode = Service.GetModuleCode(idModule); View.Source = item; View.AllowAdd = allowAdd; View.AllowEdit = allowEdit; View.AllowEditSelection = false; DtoDisplaySkin currentSkin = Service.GetDefaultSkinForModule(idModule, idCommunity, idModuleItem, idItemType); if (UserContext.isAnonymous) { LoadCurrentSkin(currentSkin); View.DisplaySessionTimeout(); } else { LoadSkins(idModule, idCommunity, idModuleItem, idItemType, currentSkin, loadModuleSkinBy); } View.isInitialized = true; }