Esempio n. 1
0
        /// <summary>
        /// Creates the site selector's view model from this model.
        /// </summary>
        /// <returns></returns>
        public SiteSelectorViewModel CreateViewModel()
        {
            var vm = new SiteSelectorViewModel();

            vm.CssClass                   = this.CssClass;
            vm.IncludeCurrentSite         = this.IncludeCurrentSite;
            vm.EachLanguageAsSeparateSite = this.EachLanguageAsSeparateSite;
            vm.SiteLanguagesDisplayMode   = this.SiteLanguagesDisplayMode;
            vm.Sites = this.GetSitesViewModels();

            return(vm);
        }
        /// <summary>
        /// Creates the site selector's view model from this model.
        /// </summary>
        /// <returns></returns>
        public SiteSelectorViewModel CreateViewModel()
        {
            var vm = new SiteSelectorViewModel();

            vm.CssClass = this.CssClass;
            vm.IncludeCurrentSite = this.IncludeCurrentSite;
            vm.EachLanguageAsSeparateSite = this.EachLanguageAsSeparateSite;
            vm.SiteLanguagesDisplayMode = this.SiteLanguagesDisplayMode;
            vm.Sites = this.GetSitesViewModels();

            return vm;
        }