public void Application_BeginRequest(object sender, EventArgs e)
 {
     //string uri = Request.Url.AbsolutePath.Replace(".aspx", "");
     //if (!Request.Url.AbsolutePath.Contains("400.aspx") && Request.Url.AbsolutePath.Contains(".aspx"))
     //    Response.Redirect(uri, true);
     NavigationControl.DisableClientPageCache();
 }
Beispiel #2
0
        private void CreateViews()
        {
            _views = new Control[] {
                _kernel.Get <PublicServerListControl>(),
                _kernel.Get <FavoritesServerListControl>(),
                _kernel.Get <LocalServerListControl>(),
                _kernel.Get <EditLocalServerControl>(),
                _kernel.Get <SettingsControl>(),
                _kernel.Get <AboutControl>()
            };

            _publicServerListControl    = (PublicServerListControl)_views[0];
            _favoritesServerListControl = (FavoritesServerListControl)_views[1];
            _localServerListControl     = (LocalServerListControl)_views[2];

            Control contentSite    = _siteService.Get <Control>(SiteNames.ContentSite);
            Control navigationSite = _siteService.Get <Control>(SiteNames.NavigationSite);

            for (int i = 0; i < _views.Length; i++)
            {
                Control view = _views[i];

                view.Visible = view is PublicServerListControl;
                view.Dock    = DockStyle.Fill;

                contentSite.Controls.Add(view);
            }

            NavigationControl navigationControl = _kernel.Get <NavigationControl>();

            navigationControl.Dock = DockStyle.Top;
            navigationSite.Controls.Add(navigationControl);
        }
Beispiel #3
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                SitePreference sitePrefCache = CSFactory.GetCacheSitePref();

                if (Request.Headers["X-HTTPS"] != null)
                {
                    if (Request.Headers["X-HTTPS"].ToLower().Equals("no"))
                    {
                        if (Request.Url.ToString().Contains("www"))
                        {
                            Response.Redirect((Request.Url.ToString().Replace("http:/", "https:/").Replace("index.aspx", "")));
                        }
                        else
                        {
                            Response.Redirect((Request.Url.ToString().Replace("http:/", "https:/").Replace("https://", "https://www.").Replace("index.aspx", "")));
                        }
                    }
                }
                if (OrderHelper.IsMobileBrowser() && (Request.QueryString["mobile"] == null || (Request.QueryString["mobile"] != null && Request.QueryString["mobile"] != "false")))
                {
                    Response.Redirect("/mobile/?" + Request.QueryString.ToString().Replace("SID=DISPLAY", "SID=DISPLAY_MOB"));
                }

                if (CSBasePage.GetClientDeviceType() == CSBusiness.Enum.DeviceType.Tablet) // device mobile but version not mobile
                {
                    Response.Redirect("/tablet_big3/" + ((Request.QueryString.ToString().Length > 0) ? "?" : "") + Request.QueryString.ToString().Replace("SID=DISPLAY", "SID=DISPLAY_TAB"));
                }

                NavigationControl.RouteTo("big1");

                base.Page_Load(sender, e);
            }
        }
Beispiel #4
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            string redirectPage = string.Empty;

            if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage))
            {
                Response.Redirect(redirectPage);
            }

            if (!IsPostBack)
            {
                NavigationControl.DisableClientPageCache();
            }

            if (!Page.IsPostBack)
            {
                SitePreference sitePrefCache = CSFactory.GetCacheSitePref();
                if (!sitePrefCache.GeoLocationService)
                {
                    string GeoCoountry = "";
                    GeoCoountry = CommonHelper.GetGeoTargetLocation(CommonHelper.IpAddress(HttpContext.Current));
                }
            }

            base.Page_Load(sender, e);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (CartContext.OrderId <= 0)
            //{
            //    Response.Redirect("index.aspx");
            //}
            string redirectPage = string.Empty;

            if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage))
            {
                Response.Redirect(redirectPage);
            }


            if (OrderHelper.IsCustomerOrderFlowCompleted(CartContext.OrderId))
            {
                Response.Redirect("receipt.aspx");
            }

            if (!IsPostBack)
            {
                AllTemplates         = GetTemplates();
                CurrentTemplateIndex = -1;
                GoToNextTemplate();
            }
        }
        protected override void Page_Load(object sender, EventArgs e)
        {
            NavigationControl.RouteTo("tablet_big3");

            if (!Page.IsPostBack)
            {
                SitePreference sitePrefCache = CSFactory.GetCacheSitePref();

                if (Request.Headers["X-HTTPS"] != null)
                {
                    if (Request.Headers["X-HTTPS"].ToLower().Equals("no"))
                    {
                        if (Request.Url.ToString().Contains("www"))
                        {
                            Response.Redirect((Request.Url.ToString().Replace("http:/", "https:/").Replace("index.aspx", "")));
                        }
                        else
                        {
                            Response.Redirect((Request.Url.ToString().Replace("http:/", "https:/").Replace("https://", "https://www.").Replace("index.aspx", "")));
                        }
                    }
                }
                if (OrderHelper.IsMobileBrowser() && (Request.QueryString["mobile"] == null || (Request.QueryString["mobile"] != null && Request.QueryString["mobile"] != "false")))
                {
                    Response.Redirect("/mobile/?" + Request.QueryString.ToString().Replace("SID=DISPLAY", "SID=DISPLAY_MOB"));
                }

                base.Page_Load(sender, e);
            }
        }
Beispiel #7
0
        private NavigationControlViewModel GetNavigationControlViewModel(IRegionManager regionManager)
        {
            IRegion           navigationTreeViewRegion = regionManager.Regions[RegionNames.NavigationTreeViewRegion];
            NavigationControl navigationControl        = navigationTreeViewRegion.GetView(ControlNames.NavigationControl) as NavigationControl;

            return(navigationControl.DataContext as NavigationControlViewModel);
        }
        protected override void Page_Load(object sender, EventArgs e)
        {
            NavigationControl.RouteTo("big1");
            base.Page_Load(sender, e);

            if (!Page.IsPostBack)
            {
                SitePreference sitePrefCache = CSFactory.GetCacheSitePref();

                if (Request.Headers["X-HTTPS"] != null)
                {
                    if (Request.Headers["X-HTTPS"].ToLower().Equals("no"))
                    {
                        if (Request.Url.ToString().Contains("www"))
                        {
                            Response.Redirect((Request.Url.ToString().Replace("http:/", "https:/").Replace("index.aspx", "")));
                        }
                        else
                        {
                            Response.Redirect((Request.Url.ToString().Replace("http:/", "https:/").Replace("https://", "https://www.").Replace("index.aspx", "")));
                        }
                    }
                }
            }
        }
Beispiel #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int channel           = Convert.ToInt32(Request.QueryString["id"]);
            NavigationControl nav = new NavigationControl();

            sidebar.InnerHtml = nav.GetHtml(channel);

            var record      = ChannelManager.GetDbRecord(channel);
            int displayMode = record.display_mode;

            if (displayMode == ChannelDisplayMode.MainContent)
            {
                int mainContent     = ChannelManager.GetContentList(channel).First().id;
                ContentPresenter cp = new ContentPresenter(mainContent);
                content.InnerHtml = cp.GetHtml();
            }
            else if (displayMode == ChannelDisplayMode.ContentList)
            {
                ContentListControl list = new ContentListControl();
                content.InnerHtml = list.GetHtml(channel, -1, true);
            }
            else if (displayMode == ChannelDisplayMode.LoadPage)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "loadPage", string.Format("<script>loadPage('{0}');</script>", record.link));
            }
            else if (displayMode == ChannelDisplayMode.Hyperlink)
            {
                Response.Redirect(record.link);
            }
        }
Beispiel #10
0
        public WhenNavigating()
        {
            var logger           = new NullLoggerFactory().CreateLogger("Logger");
            var directionControl = new DirectionControl();
            var movementControl  = new MovementControl();

            _navigationControl = new NavigationControl(movementControl, directionControl, logger);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string redirectPage = string.Empty;

            if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage))
            {
                Response.Redirect(redirectPage);
            }
        }
Beispiel #12
0
        protected override void OnPreRender(EventArgs e)
        {
            string redirectPage = string.Empty;

            if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage))
            {
                Response.Redirect(redirectPage);
            }
        }
Beispiel #13
0
        public NavigationViewModel(VMModel model)
            : base()
        {
            this.model = model;
            View       = new NavigationControl();
            View.SetViewModel(this);

            //TreeCommandsView = View.
        }
        private void CreateSampleWorker(object[] args)
        {
            ConfigManager.Executed += this.ConfigManager_Executed;

            SampleUtilities.RegisterTheme(SamplesThemeName, SamplesThemePath);
            var result = SampleUtilities.RegisterTemplate(new Guid(SamplesTemplateId), SamplesTemplateName, SamplesTemplateName, SamplesTemplateMasterPage, SamplesThemeName);

            if (result)
            {
                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode   = NavigationModes.HorizontalDropDownMenu;
                navigationControl.NavigationAction = NavigationAction.OnMouseOver;
                navigationControl.Skin             = "WebBlue";

                SampleUtilities.AddControlToTemplate(new Guid(SamplesTemplateId), navigationControl, "Menu", "Navigation");
            }

            // add aa custom events provider
            var eventsConfig = Config.Get <EventsConfig>();

            if (!eventsConfig.Providers.Elements.Any(p => p.Name == CustomEventsProviderName))
            {
                var customProvider = new DataProviderSettings(eventsConfig.Providers)
                {
                    Name         = CustomEventsProviderName,
                    Description  = "Alternate provider for storing Events data in database using OpenAccess ORM.",
                    ProviderType = typeof(OpenAccessEventProvider)
                };
                var values = new NameValueCollection();
                values.Add("applicationName", "/CustomEvents");
                customProvider.Parameters = values;
                eventsConfig.Providers.Add(customProvider);
                ConfigManager.GetManager().SaveSection(eventsConfig);
            }
            //create the default calendar for the custom events provier
            EventsManager eventsManager         = EventsManager.GetManager(CustomEventsProviderName);
            Calendar      defaultCustomCalendar = eventsManager.CreateCalendar();

            defaultCustomCalendar.Title   = "Custom Calendar";
            defaultCustomCalendar.UrlName = "custom-calendar";
            eventsManager.SaveChanges();

            this.CreateNewsItems();
            this.CreateBlogPosts();
            this.CreateEvents(string.Empty);
            this.CreateEvents(CustomEventsProviderName);

            this.CreateHomePage();
            this.CreateAboutUsPage();
            this.CreateNewsPage();
            this.CreateBlogAPage();
            this.CreateBlogBPage();
            this.CreateEventsPage();
            this.CreateCustomEventsPage();
            this.CreateContactUsPage();
        }
Beispiel #15
0
        public WhenExecutingMission()
        {
            var logger            = new NullLoggerFactory().CreateLogger("Logger");
            var directionControl  = new DirectionControl();
            var movementControl   = new MovementControl();
            var planControl       = new PlanControl(logger);
            var navigationControl = new NavigationControl(movementControl, directionControl, logger);

            _missionControl = new MissionControl(logger, navigationControl, planControl);
        }
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     Init();
 }
 private void CheckSignedIn()
 {
     if (StoreView.IsSignedIn)
     {
         var signout = NavigationControl.AddLink(Catalog.GetString("Sign Out of eMusic"), null);
         signout.Activated += (o, a) => StoreView.SignOut();
     }
     else
     {
         NavigationControl.ClearLinks();
     }
 }
Beispiel #18
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            string redirectPage = string.Empty;

            if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage))
            {
                Response.Redirect(redirectPage);
            }
            if (!IsPostBack)
            {
                NavigationControl.DisableClientPageCache();
            }
            base.Page_Load(sender, e);
        }
Beispiel #19
0
        public StoreWebBrowserShell(StoreView store_view) : base(Catalog.GetString("Amazon MP3 Store"), store_view)
        {
            StoreView = store_view;

            SearchEntry.EmptyMessage = String.Format(Catalog.GetString("Search the Amazon MP3 Store"));

            NavigationControl.AddLink(Catalog.GetString("How Your Purchases Support GNOME"), StoreView.GetActionUrl("about/"));

            var signout = NavigationControl.AddLink("Sign out of Amazon", null);

            store_view.SignInChanged += (o, a) => signout.Visible = store_view.IsSignedIn;
            signout.Activated        += (o, a) => store_view.SignOut();
            signout.Visible           = store_view.IsSignedIn;

            ShowAll();
        }
Beispiel #20
0
        public WashDayEditor(MainSessionController mainSession, WashingDayEditorController wdController, Boolean create, HairAppBl.Interfaces.IHairBl hairbl)
        {
            InitializeComponent();

            mHairbl = hairbl;
            mCreate = create;
            mWashingDayEditorController = wdController;
            mMainSessionController      = mainSession;

            RefreshList();

            var saveClose = new NavigationControl(AppResources.Cancel, AppResources.Save, hairbl);

            SaveButtonContainer.Content = saveClose.View;

            //Events
            this.AddRoutine.Clicked       += AddRoutine_Clicked;
            saveClose.RightButton.Clicked += OKButton_Clicked;
            saveClose.LeftButton.Clicked  += CancelButton_Clicked;

            var colorButtonClicked = new TapGestureRecognizer();

            colorButtonClicked.Tapped += ColorClicked_Tapped;
            colorButton.GestureRecognizers.Add(colorButtonClicked);

            InitFields();

            //Resources
            mDefineYourCareDayLabel.Text = AppResources.DefineYourCareDay;
            AddRoutine.Text               = AppResources.AddRoutine;
            mScheduleLabel.Text           = AppResources.Schedule;
            mWeekSelectionEveryLabel.Text = AppResources.Every;
            mWeekSelectionEveryWeek.Text  = AppResources.Weeks;
            mDaysSelectionEveryLabel.Text = AppResources.Every;
            mDaysSelectionDaysLabel.Text  = AppResources.Days;
            mStartDateLabel.Text          = AppResources.StartDate;
            mRoutinesLabel.Text           = AppResources.Routines;
            AddDescription.Text           = AppResources.AddDescription;

            mCheckBoxMonday.DefaultText    = AppResources.Monday;
            mCheckBoxTuesday.DefaultText   = AppResources.Tuesdays;
            mCheckBoxWednesday.DefaultText = AppResources.Wednesday;
            mCheckBoxThursday.DefaultText  = AppResources.Thursday;
            mCheckBoxFriday.DefaultText    = AppResources.Friday;
            mCheckBoxSaturday.DefaultText  = AppResources.Saturday;
            mCheckBoxSunday.DefaultText    = AppResources.Sunday;
        }
Beispiel #21
0
        /// <summary>
        /// Initializes a new instance of the GENavigationControl class.
        /// </summary>
        /// <param name="ge">GEPlugin COM object</param>
        /// <param name="controlType">The control type. default is NavigationControl.Large</param>
        /// <param name="visibility">The visibility of the control. default is Visibility.Show</param>
        /// <param name="streetViewEnabled">Optionally enables the street view features. Default is true</param>
        public GENavigationControl(
            dynamic ge,
            NavigationControl controlType = NavigationControl.Large,
            Visibility visibility         = Visibility.Show,
            bool streetViewEnabled        = true)
        {
            if (!GEHelpers.IsGE(ge))
            {
                throw new ArgumentException("ge is not of the type GEPlugin");
            }

            this.navigation = ge.getNavigationControl();

            this.ControlType       = controlType;
            this.StreetViewEnabled = streetViewEnabled;
            this.Visibility        = visibility;
        }
        /// <summary>
        /// Initializes a new instance of the GENavigationControl class.
        /// </summary>
        /// <param name="ge">GEPlugin COM object</param>
        /// <param name="controlType">The control type. default is NavigationControl.Large</param>
        /// <param name="visibility">The visibility of the control. default is Visibility.Show</param>
        /// <param name="streetViewEnabled">Optionally enables the street view features. Default is true</param>
        public GENavigationControl(
            dynamic ge,
            NavigationControl controlType = NavigationControl.Large,
            Visibility visibility = Visibility.Show,
            bool streetViewEnabled = true)
        {
            if (!GEHelpers.IsGE(ge))
            {
                throw new ArgumentException("ge is not of the type GEPlugin");
            }

            this.navigation = ge.getNavigationControl();

            this.ControlType = controlType;
            this.StreetViewEnabled = streetViewEnabled;
            this.Visibility = visibility;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string redirectPage = string.Empty;

            if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage))
            {
                Response.Redirect(redirectPage);
            }

            if (Session["oId"] != null)
            {
                orderId = Convert.ToInt32(Session["oId"]);
            }
            else
            {
                orderId = CartContext.OrderId;
            }
            if (!this.IsPostBack)
            {
                if (orderId > 0)
                {
                    Order orderData = CSResolve.Resolve <IOrderService>().GetOrderDetails(orderId);
                    if (!orderData.AttributeValuesLoaded)
                    {
                        orderData.LoadAttributeValues();
                    }

                    if (!orderData.AttributeValues.ContainsAttribute("OrderFlowCompleted"))
                    {
                        Dictionary <string, AttributeValue> orderAttributes = new Dictionary <string, AttributeValue>();
                        orderAttributes.Add("OrderFlowCompleted", new CSBusiness.Attributes.AttributeValue("1"));
                        CSResolve.Resolve <IOrderService>().UpdateOrderAttributes(orderData.OrderId, orderAttributes, orderData.OrderStatusId);
                    }

                    //UserSessions.InsertSessionEntry(Context, true, CartContext.CartInfo.Total, CartContext.CustomerInfo.CustomerId, orderId);
                }

                BindData();
                //Fire OrderConfirmation Test
                if (CartContext.CustomerInfo.Email.ToLower().Contains("conversionsystems.com"))
                {
                    OrderHelper.SendOrderCompletedEmail(orderId);
                }
            }
        }
Beispiel #24
0
        public RoutineEditor(MainSessionController mainSession, HairAppBl.Interfaces.IHairBl hairbl, HairAppBl.Models.RoutineDefinition select = null)
        {
            InitializeComponent();


            mHairbl = hairbl;

            var saveClose = new NavigationControl(AppResources.Cancel, AppResources.Save, hairbl);

            SaveButtonContainer.Content = saveClose.View;

            saveClose.RightButton.Clicked += OKButton_Clicked;
            saveClose.LeftButton.Clicked  += CancelButton_Clicked;
            mAddRoutineButton.Clicked     += MAddRoutineButton_Clicked;
            RefreshList(select);

            //Ressources
            mHeading.Text = AppResources.RoutinEditorHeading;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            int id                = Convert.ToInt32(Request.QueryString["id"]);
            int channel           = ContentManager.GetDbRecord(id).fk_channel_id;
            NavigationControl nav = new NavigationControl();

            sidebar.InnerHtml = nav.GetHtml(channel);

            ContentPresenter cp = new ContentPresenter(id);

            content.InnerHtml  = cp.GetHtml();
            content.InnerHtml += "<p>&nbsp;</p>";

            // 附件
            if (ContentManager.GetAttachments(id).Count() > 0)
            {
                AttachmentPresenter ap = new AttachmentPresenter(id);
                TongJi.Web.Controls.HtmlDivision div = new TongJi.Web.Controls.HtmlDivision();
                div.InnerHtml = ap.GetHtml();
                content.Controls.Add(div);
                content.Controls.Add(new TongJi.Web.Controls.HtmlParagraph());
            }

            // 评论
            if (ContentManager.GetDbRecord(id).allow_comment)
            {
                if (ContentManager.GetComments(id).Count() > 0)
                {
                    CommentPresenter presenter           = new CommentPresenter(id);
                    TongJi.Web.Controls.HtmlDivision div = new TongJi.Web.Controls.HtmlDivision();
                    div.InnerHtml = presenter.GetHtml();
                    content.Controls.Add(div);
                }
                CommentPoster poster = new CommentPoster(id);
                content.Controls.Add(poster.GetControl());
                poster.Post += new EventHandler(poster_Post);
            }
        }
Beispiel #26
0
 protected override void Page_Load(object sender, EventArgs e)
 {
     NavigationControl.RouteTo("tablet_big3");
 }
        private void CreateCampusRulesPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), "Campus rules", new Guid(SampleConstants.CampusLifePageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase campusRulesBlock = new ContentBlockBase();
                campusRulesBlock.Html = @"<h2>Campus rules</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), campusRulesBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                contentBlock.Html = @"<p>We are a fun place to be, but no one said that there will be no rules!&nbsp; Rules are what make us strong and durable, so we believe that in order to be the best at what we do, we must not only follow a few general rules, but also create our own.&nbsp; You can download our Campus Rules and Regulations brochure from here &ndash; it is an easy and fun read!</p>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), "Campus-Regeln", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase campusRulesBlockDE = new ContentBlockBase();
                campusRulesBlockDE.Html = @"<h2>Campus-Regeln</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), campusRulesBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                contentBlockDE.Html = @"<p>Wir sind ein angenehmer Ort zu sein, aber niemand gesagt, dass es keine Regeln! Regeln sind das, was uns stark und langlebig, so glauben wir, dass, um die am besten, was wir tun werden, m&uuml;ssen wir nicht nur folgen ein paar allgemeine Regeln, sondern auch unsere eigene. Sie k&ouml;nnen unsere Campus Regeln und Vorschriften Brosch&uuml;re hier herunterladen - es ist ein einfach und macht Spa&szlig; zu lesen!</p>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusRulesPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateAboutTheUniversityPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), "About the university", "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase aboutBlock = new ContentBlockBase();
                aboutBlock.Html = @"<h1>About the university</h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), aboutBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var about_tiuImageId = SampleUtilities.GetLocalizedImageId("about_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Tradition combined with innovation</h3> <p>Telerik International University, is the newest university in the English-speaking world. The university traces its roots back to the beginning of 2006, although the exact date of foundation remains unclear. Its founders came together after realizing that no places of higher education existed within a fifty mile radius of their home town.</p> <p>The university is dedicated to teaching a wide number of subjects and encouraging all its students to participate in the many extra-curricular pursuits that its student societies put on during term. &ldquo;Work hard, play hard&rdquo; is its motto and those who come to TIU couldn&rsquo;t agree more. Whether you prefer extreme sports, tiddlywinks, developing software, defending people who can&rsquo;t defend themselves, working for charities or running events, there is a society for you and if there isn&rsquo;t, we actively support those who want to start their own.</p> <p> </p> <h3>Young, open, international </h3> <p>Admission to TIU is based equally on academic potential and your resume of sports and activities. There is no weighing in favor of any particular thing. We are interested to make sure that our students continue to develop to their true potential - academically, socially, mentally and physically. All potential students should visit us on an open day before getting application forms and starting to work through the entry process. Because of the high volume of applications and the direct involvement of the faculty in admissions, students may be called to interview any time between March and July.</p> <h3>Ideal conditions for studying</h3> <p>If it takes more than 15 minutes to get to the university from the main train station, the central bus and tram stop, then something has gone wrong somewhere. Trams leave the main station every five minutes and stop right in the middle of the campus. The university registration fee includes a &ldquo;Semester Ticket&rdquo; that gives students free travel on public transport within Sofia. And living in Sofia is almost as cheap: even in the charming city center, the rents are affordable. In addition to this, there are more than 2000 rooms and apartments available in the university's halls of residence.</p>", about_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), "Über uns", false, "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase aboutBlockDE = new ContentBlockBase();
                aboutBlockDE.Html = @"<h1>Über die Universität</h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), aboutBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var about_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("about_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Tradition mit Innovation</h3> <p>Telerik International University ist die j&uuml;ngste Universit&auml;t in der englischsprachigen Welt. Die Universit&auml;t f&uuml;hrt ihre Wurzeln zur&uuml;ck an den Anfang des Jahres 2006, obwohl das genaue Datum der Gr&uuml;ndung, bleibt unklar. Die Gr&uuml;nder kamen zusammen, nachdem er feststellte, dass keine Pl&auml;tze der Hochschulbildung in eine f&uuml;nfzig Meile Radius von ihrer Heimatstadt gab.</p> <p>Die Universit&auml;t ist die Lehre eine gro&szlig;e Anzahl von Themen und die F&ouml;rderung aller Sch&uuml;ler in den vielen au&szlig;erschulischen Besch&auml;ftigungen, die ihre Sch&uuml;ler Gesellschaften w&auml;hrend des Semesters gestellt teilnehmen gewidmet. ""Work hard, play hard"" ist sein Motto und diejenigen, die TIU kommen konnte nicht mehr zustimmen. Ob Extremsport, tiddlywinks, Software-Entwicklung, Verteidigung von Menschen, die sich nicht wehren k&ouml;nnen, die sich f&uuml;r Wohlt&auml;tigkeitsorganisationen oder Laufveranstaltungen bevorzugen, gibt es eine Gesellschaft f&uuml;r Sie und wenn es nicht unterst&uuml;tzen wir aktiv die, die ihre eigenen beginnen m&ouml;chten .</p> <h3>Jung, offen, international</h3> <p>Zulassung zum TIU ist gleicherma&szlig;en auf wissenschaftliche Potenzial und Ihren Lebenslauf an Sport-und Aktivit&auml;ten. Es gibt keine W&auml;gung zu Gunsten einer bestimmten Sache. Wir sind daran interessiert, sicherzustellen, dass unsere Sch&uuml;ler, ihr wahres Potential weiterentwickeln - fachlich, sozial, geistig und k&ouml;rperlich. Alle potenziellen Studenten sollten uns auf Tag der offenen T&uuml;r, bevor sie Antragsformulare und ab durch den Eintrag Prozess der Arbeit besuchen. Aufgrund der hohen Anzahl der eingehenden Bewerbungen und die direkte Beteiligung der Fakult&auml;t bei der Zulassung k&ouml;nnen die Sch&uuml;ler aufgefordert, jederzeit zwischen M&auml;rz und Juli zu interviewen.</p> <h3>Ideale Bedingungen f&uuml;r ein Studium</h3> <p>Wenn es mehr als 15 Minuten dauert, bis die Universit&auml;t aus dem Hauptbahnhof, dem zentralen Bus-und Stra&szlig;enbahnhaltestelle zu bekommen, dann ist etwas schief gegangen ist irgendwo. Stra&szlig;enbahnen verlassen den Hauptbahnhof alle f&uuml;nf Minuten und halten direkt in der Mitte des Campus. Die Universit&auml;t Teilnahmegeb&uuml;hr beinhaltet ein ""Semesterticket"", dass die Sch&uuml;ler freie Fahrt gibt im &ouml;ffentlichen Nahverkehr innerhalb Sofia. Und er lebt in Sofia ist fast so billig: Selbst in der reizvollen Innenstadt sind die Mieten erschwinglich. Dar&uuml;ber hinaus gibt es mehr als 2000 Zimmer und Appartements zur Verf&uuml;gung in der Universit&auml;t Wohnheim.</p>", about_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AboutTheUniversityPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateWhyTIUPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), "Why TIU", new Guid(SampleConstants.AboutTheUniversityPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlock whyBlock = new ContentBlock();
                whyBlock.Html = @"<h2>Why TIU?</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), whyBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlock contentBlock = new ContentBlock();
                var students_tiuImageId = SampleUtilities.GetLocalizedImageId("students_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img class=""special"" alt=""Lorem ipsum dolor sit amet"" src=""[images]{0}"" style=""width: 350px; height: 273px; float: left; margin-right: 15px; margin-bottom: 5px;"" longdesc=""Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."" /></p> <h3>Know how to live!</h3> <p> At TIU we believe in teaching you the knowhow of life. In order to lead a good life, one must excel in education, succeed in his profession and enjoy the free time in between. This is why life at TIU encompasses not only academics, but also activities that will shape your character and lead you to success. </p> <h3>Excellence </h3> <p>In order to expect you to excel, we must excel at what we do. We believe in making a real impact on the world by constantly growing, hiring the best staff and investing in the newest technology. You will have access to an impressive range of resources to support your studies including an outstanding academic library and some of the best computing resources. </p> <h3>Careers </h3> <p>Education is the prelude to profession. What use is a diploma unless it makes you highly demanded by the world of employers? TIU&rsquo;s reputation in the business world combined with its contacts and internship programs is a guarantee for your ability to land directly into your dream job right after graduation.</p>", students_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), "Warum TIU", false, "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlock whyBlockDE = new ContentBlock();
                whyBlockDE.Html = @"<h2>Warum TIU?</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), whyBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlock contentBlockDE = new ContentBlock();
                var students_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("students_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Wissen, wie man lebt!</h3> <p> Am TIU wir glauben, in der Lehre Sie das Know-how des Lebens. Um ein gutes Leben zu f&uuml;hren, muss man excel im Bildungswesen, in seinem Beruf erfolgreich zu sein und genie&szlig;en die freie Zeit dazwischen. Dies ist, warum das Leben in TIU nicht nur Akademiker umfasst, sondern auch Aktivit&auml;ten, die Ihren Charakter Form und f&uuml;hren Sie zum Erfolg wird.</p> <h3>Exzellenzinitiative</h3> <p>Um Ihnen zu &uuml;bertreffen erwarten, m&uuml;ssen wir, was wir tun Excel. Wir glauben an einen echten Einfluss auf die Welt durch st&auml;ndig wachsende,, die besten Mitarbeiter und investieren in die neueste Technologie. Sie haben Zugriff auf eine beeindruckende Vielfalt an Ressourcen, um Ihre Studien mit einem hervorragenden akademischen Bibliothek und einige der besten IT-Ressourcen zu unterst&uuml;tzen.</p> <h3>Karriere</h3> <p>Bildung ist der Auftakt zu Beruf. Was n&uuml;tzt ein Diplom, es sei denn es macht dich stark nachgefragten durch die Welt der Arbeitgeber? TIU Ruf in der Gesch&auml;ftswelt mit ihren Kontakten und Praktika in Kombination ist ein Garant f&uuml;r Ihre F&auml;higkeit, direkt Land in Ihren Traumjob nach dem Studium.</p>", students_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.WhyTIUPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateScholarshipsPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), "Innovation scholarships", new Guid(SampleConstants.AboutTheUniversityPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase scholarshipsBlock = new ContentBlockBase();
                scholarshipsBlock.Html = @"<h2>TIU Scholarships</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), scholarshipsBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var scholarship_tiuImageId = SampleUtilities.GetLocalizedImageId("scholarship_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Need-based Scholarships &amp; Grants</h3> <p>Federal grant programs include the Federal Pell Grant and the Federal Supplemental Educational Opportunity Grant. The University also offers a number of privately endowed need-based scholarships and grant funds. </p> <h3>Federal Grant Programs for Undergraduate Students </h3> <p><em>The Federal Pell Grant </em>is financial aid based on financial need. It does not have to be repaid. It is federally funded and is considered the foundation of financial aid packages. Pell Grant awards are based on the EFC (expected family contribution), as calculated by the FAFSA formula and after the verification process is completed. </p> <h3>TIU Grants &amp; Scholarships</h3> <p> The University offers a number of privately endowed need-based scholarship and grant funds administered by Student Financial Services. Most of these awards were established by individuals or foundations and are intended for students who meet specific criteria. </p> <p>To qualify for any University endowed or restricted scholarships, students must demonstrate outstanding academic achievement, have financial need, and meet all federal and University eligibility requirements. In most instances, students do not need to complete a separate application form but are considered automatically. </p> <p>Many scholarship awards offered to students are funded by the generous gifts of University benefactors. In addition to financial need and/or academic achievement, a number of scholarships have specific donor requirements that are not easily identifiable. Students awarded a named scholarship will receive written notification of their selection. </p> <h3>State Grants &amp; Scholarships</h3> <p><em>Robert C. Byrd Honors Scholarship:</em> The Byrd Scholarship is awarded to students for their academic achievement and excellence. Recipients may receive up to $1,500 for their first year, and scholarships are renewable for up to three years. To apply for the scholarship, students should contact the Department of Education in their home state. </p>", scholarship_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), "Innovative Stipendien", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase stipendienBlockDE = new ContentBlockBase();
                stipendienBlockDE.Html = @"<h2>TIU Stipendien</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), stipendienBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var scholarship_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("scholarship_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Stipendien &amp; F&ouml;rderungen</h3> <p>Federal F&ouml;rderprogramme umfassen die Federal Pell Grant und der Bundesrepublik Supplemental Bildungschancen Grant. Die Universit&auml;t bietet auch eine Reihe von privat dotiert bedarfsgerechte Stipendien und Zusch&uuml;sse.</p> <h3>Federal Stipendienprogramme f&uuml;r Studenten</h3> <p>Die Federal Pell Grant ist die finanzielle Hilfe auf finanzielle Notwendigkeit basiert. Es muss nicht zur&uuml;ckgezahlt werden. Es wird vom Bund finanziert und gilt als die Grundlage der finanziellen Hilfspakete. Pell Grant Auszeichnungen werden auf der EFC (erwartete Beitrag von Familienmitgliedern), ge&auml;ndert durch die FAFSA Formel berechnet und nach dem Pr&uuml;fverfahren abgeschlossen ist Basis.</p> <h3>TIU Stipendien und Zusch&uuml;sse</h3> <p>Die Universit&auml;t bietet eine Reihe von privat dotiert bedarfsgerechte Stipendien und Zusch&uuml;sse von Student Financial Services verwaltet. Die meisten dieser Auszeichnungen wurden von Privatpersonen oder Stiftungen gegr&uuml;ndet und sind f&uuml;r Studenten, die bestimmte Kriterien erf&uuml;llen soll.</p> <p>Um in den Genuss einer Universit&auml;t verleiht, oder beschr&auml;nkt Stipendien, m&uuml;ssen die Studenten demonstrieren herausragende akademische Leistungen, haben finanzielle Not, und erf&uuml;llen alle Bundes-und Universit&auml;tsbibliothek Anspruchsvoraussetzungen. In den meisten F&auml;llen die Sch&uuml;lerinnen und Sch&uuml;ler nicht unbedingt ein eigenes Antragsformular vollst&auml;ndig, sondern werden automatisch ber&uuml;cksichtigt.</p> <p>Viele Stipendien f&uuml;r Studierende werden durch die gro&szlig;z&uuml;gige Wohlt&auml;ter der Universit&auml;t finanziert. Neben der finanziellen Not und / oder akademischen Leistungen, haben eine Reihe von Stipendien bestimmten Spenders Anforderungen, die nicht leicht zu identifizieren. Die Studierenden erhalten eine benannte Stipendium schriftlichen Mitteilung &uuml;ber die Auswahl zu erhalten.</p> <h3>Staatliche Stipendien und Zusch&uuml;sse</h3> <p>Robert C. Byrd Honors Scholarship: Die Byrd-Stipendium richtet sich an Studierende f&uuml;r ihre akademischen Leistungen und Exzellenz ausgezeichnet. Empf&auml;nger k&ouml;nnen bis zu $ ​​1.500 f&uuml;r das erste Jahr, und Stipendien sind verl&auml;ngerbar bis zu drei Jahren. Um sich f&uuml;r das Stipendium sollen Studierende der Abteilung f&uuml;r Bildung in ihren Heimatstaat wenden.</p>", scholarship_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.ScholarshipsPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateNewsPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.NewsPageId), "News", new Guid(SampleConstants.AboutTheUniversityPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.NewsPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase newsBlock = new ContentBlockBase();
                newsBlock.Html = @"<h2>News</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), newsBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), navigationControl, "Main_Left", "Navigation", "en");

                NewsView latestNews = new NewsView();
                latestNews.MasterViewName = SampleConstants.EducationNewsSummaryContentViewName;
                latestNews.DetailViewName = SampleConstants.EducationNewsItemDetailView;
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), latestNews, "Main_Right", "News", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.NewsPageId), "Nachrichten", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.NewsPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase newsBlock = new ContentBlockBase();
                newsBlock.Html = @"<h2>Nachrichten</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), newsBlock, "content", "Content block", "de");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), mainLayoutControl, "content", "25% + 75%", "de");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), navigationControl, "Main_Left", "Navigation", "de");

                NewsView latestNews = new NewsView();
                latestNews.MasterViewName = SampleConstants.EducationNewsSummaryContentViewName;
                latestNews.DetailViewName = SampleConstants.EducationNewsItemDetailView;
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.NewsPageId), latestNews, "Main_Right", "News", "de");
            }
        }
        private void CreateAdmissionsPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), "Admissions", "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase admissionsBlock = new ContentBlockBase();
                admissionsBlock.Html = @"<h1>Admissions</h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), admissionsBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var admission_tiuImageId = SampleUtilities.GetLocalizedImageId("admission_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Applying</h3> <p>TIU believes that diversity is the key to constant growth and experiencing life.&nbsp; We encourage students from all over the world, from different backgrounds, ethnicities, cultures and religions to apply and to become part of our academic family, thus contributing to each other&rsquo;s cultural enrichment.&nbsp; We travel to many different parts of the world in order to meet with potential students and to learn about ways in which to make the admissions process easier and more diversity friendly.&nbsp; </p> <p>Admission to TIU, however, is also highly dependent on your previous academic achievements and merits.&nbsp; In order to keep our reputation of a school for smart and ambitious young men and women, we are selective and inspective of your past education.&nbsp; We take into consideration not only your grades but also your personal goals, achievement and your ability to overcome difficulties and shine!</p>", admission_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), "Zulassung", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase admissionsBlockDE = new ContentBlockBase();
                admissionsBlockDE.Html = @"<h1>Zulassung </h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), admissionsBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var admission_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("admission_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Bewerben </h3> <p>TIU glaubt, dass die Vielfalt ist der Schl&uuml;ssel zu stetigem Wachstum und das Leben erfahren. Wir ermutigen die Sch&uuml;ler aus der ganzen Welt, von unterschiedlicher Herkunft, Ethnien, Kulturen und Religionen zu &uuml;bernehmen und einen Teil unserer akademischen Familie zu werden, damit einen Beitrag zur gegenseitigen kulturellen Bereicherung. Wir fahren zu vielen verschiedenen Teilen der Welt, um mit potenziellen Studenten zu treffen und sich &uuml;ber M&ouml;glichkeiten, um die Zulassungsverfahren vereinfachen und mehr Vielfalt freundlich zu lernen.</p> <p>Zulassung zum TIU, ist aber auch stark abh&auml;ngig von Ihrer bisherigen wissenschaftlichen Leistungen und Verdienste. Um unseren Ruf einer Schule f&uuml;r intelligente und ambitionierte junge M&auml;nner und Frauen zu halten, werden wir selektiv und inspective Ihrer Vergangenheit Bildung. Wir ber&uuml;cksichtigen nicht nur Ihre Noten, sondern auch Ihre pers&ouml;nlichen Ziele, Leistungen und Ihre F&auml;higkeit, Schwierigkeiten zu &uuml;berwinden und Glanz!</p>", admission_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AdmissionsPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateHowToApplyPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), "How to apply", new Guid(SampleConstants.AdmissionsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase howToApplyBlock = new ContentBlockBase();
                howToApplyBlock.Html = @"<h2>How to apply?</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), howToApplyBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var howto_tiuImageId = SampleUtilities.GetLocalizedImageId("howto_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>No assessment tests for University Entrance</h3> <p>TIU is a modern, fast-moving environment and our energetic staff does not like to waste time with endless bureaucratic ordeals.&nbsp; This is why our application process is very simple, accurate and rational.&nbsp; There are three easy steps you need to follow in order to let yourself known to us and we will do the rest.&nbsp; All due dates and deadlines for the upcoming semester will be posted and updated on our website.</p> <br /> <br style=""clear: left"" /> <ul> <li>First &ndash; fill out the online Application Form in its entirety and send it to us with the click of a button. You will receive an e-mail from us, confirming that we have received your application.</li> <li>Second &ndash; you have 14 calendar days from the date of the application confirmation e-mail to send us all the original documents listed in the Application Form. You will receive an e-mail from us, confirming that we have received your documents.</li> <li>Third &ndash; we will contact you within 14 calendar days from the date of the document confirmation e-mail in order to let you know our decision. You will receive an e-mail, a phone call and a letter with our decision.&nbsp; </li> </ul>", howto_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), "Bewerbung", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase howToApplyBlockDE = new ContentBlockBase();
                howToApplyBlockDE.Html = @"<h2>Bewerbung</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), howToApplyBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var howto_tiuImageId = SampleUtilities.GetLocalizedImageId("howto_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <p>TIU ist ein modernes, sich schnell bewegende Umwelt und unsere energetische Personal nicht gerne Zeit mit endlosen b&uuml;rokratischen Pr&uuml;fungen Abfall. Deshalb ist unsere Anwendung ist sehr einfach, genau und rational. Es gibt drei einfache Schritte, die Sie folgen m&uuml;ssen, um lassen Sie uns bekannt und wir werden den Rest erledigen. Alle f&auml;lligen Termine und Fristen f&uuml;r das kommende Semester wird ver&ouml;ffentlicht und aktualisiert werden auf unserer Website.</p> <br /> <br style=""clear: left"" /> <ul> <li> First - f&uuml;llen Sie das Online-Bewerbungsformular in seiner Gesamtheit und schicken Sie es uns mit dem Klick auf eine Schaltfl&auml;che. Sie erhalten eine E-Mail von uns erhalten, die best&auml;tigt, dass wir Ihre Anmeldung erhalten haben. </li> <li>Zweitens - Sie haben 14 Kalendertagen ab dem Datum der Antragstellung per E-Mail an uns alle Originaldokumente im Antragsformular aufgef&uuml;hrt. Sie erhalten eine E-Mail von uns erhalten, die best&auml;tigt, dass wir Ihre Unterlagen erhalten. </li> <li>Drittens - wir werden Sie innerhalb von 14 Kalendertagen Kontakt ab dem Datum des Dokuments per E-Mail, um Ihnen mitzuteilen, unsere Entscheidung. Sie erhalten eine E-Mail, ein Anruf und einen Brief mit unserer Entscheidung.</li> </ul>", howto_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HowToApplyPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateDiversityStatisticsPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), "Diversity statistics", new Guid(SampleConstants.AdmissionsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase diversityStatisticsBlock = new ContentBlockBase();
                diversityStatisticsBlock.Html = @"<h2>Diversity Statistics</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), diversityStatisticsBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var diversityImageId = SampleUtilities.GetLocalizedImageId("diversity_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <p>TIU is the Benetton of universities.&nbsp; Our colors are many and bright.&nbsp; Our diversity statistics show that we the educational institution of choice for students of 57 different nationalities.&nbsp; Here are our most recent stats.</p>", diversityImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), "Multikulturelle Vielfalt", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase diversityStatisticsBlockDE = new ContentBlockBase();
                diversityStatisticsBlockDE.Html = @"<h2>Multikulturelle Vielfalt</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), diversityStatisticsBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var diversityImageIdDE = SampleUtilities.GetLocalizedImageId("diversity_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> TIU ist die Benetton von Universit&auml;ten. Unsere Farben sind vielf&auml;ltig und hell ist. Unsere Vielfalt Statistiken zeigen, dass wir die Bildungseinrichtung der Wahl f&uuml;r Studenten von 57 verschiedenen Nationalit&auml;ten. Hier sind unsere j&uuml;ngsten Statistik.", diversityImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DiversityStatisticsPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreatePreArrivalInformationPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), "Pre-arrival information", new Guid(SampleConstants.AdmissionsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase titleBlock = new ContentBlockBase();
                titleBlock.Html = @"<h2>Pre-arrival Information</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), titleBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlock contentBlock = new ContentBlock();
                var prearrivalImageId = SampleUtilities.GetLocalizedImageId("prearrival", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{3}"" /></p> <h3>Pre-arrival</h3> <p>College is a step towards the beginning of your new life.&nbsp; We will try to make getting there as easy as possible for you.&nbsp; The information in this section of our website is intended to be used before you arrive on campus. Once you are on campus we will be here to meet and greet you and to make your experience here unforgettable and beneficial.&nbsp; If you have a specific question that is not answered here please feel free to contact us. We are very pleased that you are interested in studying at the Telerik International University.</p> <br /> <br style=""clear: left"" /> <p>Here are some helpful links on different topics:</p> <ul> <li><a href=""[pages]{0}"" >Contact us</a></li> <li><a href=""[pages]{1}"" >Housing opportunities</a></li> <li><a href=""[pages]{2}"" >Documents base</a></li> </ul>", SampleConstants.ContactUsPageId, SampleConstants.HousingOpportunitiesPageId, SampleConstants.DocumentsBasePageId, prearrivalImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), "Vor der Ankunft", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlock titleBlockDE = new ContentBlock();
                titleBlockDE.Html = @"<h2>Vor der Ankunft</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), titleBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlock contentBlockDE = new ContentBlock();
                var prearrivalImageIdDE = SampleUtilities.GetLocalizedImageId("prearrival", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{3}"" /></p> <h3>Vor der Ankunft</h3> <p>College ist ein Schritt in Richtung der Beginn Ihres neuen Lebens. Wir werden versuchen, dorthin zu gelangen so einfach wie m&ouml;glich f&uuml;r Sie. Die Informationen in diesem Bereich unserer Website soll verwendet werden, bevor Sie auf dem Campus zu gelangen. Sobald Sie sich auf dem Campus werden wir hier zu treffen und gr&uuml;&szlig;en Sie und machen Ihre Erfahrungen hier unvergessliche und n&uuml;tzlich. Wenn Sie eine spezifische Frage, die hier nicht beantwortet haben, z&ouml;gern Sie nicht uns zu kontaktieren.</p> <br /> <br style=""clear: left"" /> <p>Hier sind einige hilfreiche Links zu verschiedenen Themen:</p> <ul> <li><a href=""[pages]{0}"" >Kontakt</a></li> <li><a href=""[pages]{1}"" >Wohnmöglichkeiten</a></li> <li><a href=""[pages]{2}"" >Downloads</a></li> </ul>", SampleConstants.ContactUsPageId, SampleConstants.HousingOpportunitiesPageId, SampleConstants.DocumentsBasePageId, prearrivalImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.PreArrivalInformationPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        /// <summary>
        /// Registers the template.
        /// </summary>
        private void RegisterTemplate()
        {

            var present = this.pageManager.CreatePresentationItem<TemplatePresentation>();
            present.DataType = Presentation.HtmlDocument;
            present.Name = "master";
            var resName = "Telerik.Sitefinity.Resources.Pages.Frontend.aspx";
            present.Data = ControlUtilities.GetTextResource(resName, Config.Get<ControlsConfig>().ResourcesAssemblyInfo);

            pageTemplate.MasterPage = string.Concat("~/App_Data/Sitefinity/WebsiteTemplates/", pageTemplate.Name, "/App_Master/page.master");


            var sibling = new Guid();

            for (int i = 0; i < templateobject.layout.placeholders.Length; i++)
            {
                var placeholder = templateobject.layout.placeholders[i];

                //var layout = new LayoutControl();

                //var ctrlData = this.pageManager.CreateControl<TemplateControl>();


                //if (placeholder.layoutwidget != null)
                //{
                //    layout.Layout = createPlaceholderLayout(placeholder.layoutwidget.columns, placeholder.id);

                //}

                //ctrlData.ObjectType = layout.GetType().FullName;
                //ctrlData.PlaceHolder = "Body";
                //ctrlData.SiblingId = sibling;
                //sibling = ctrlData.Id;
                //ctrlData.Caption = placeholder.id;

                //this.pageManager.ReadProperties(layout, ctrlData);
                //this.pageManager.SetControlId(pageTemplate, ctrlData);


                for (int j = 0; j < placeholder.layoutwidget.columns.Length; j++)
                {

                    var column = placeholder.layoutwidget.columns[j];

                    var widget = column.widget;
                    if (widget.type != null)
                    {
                        ControlData ctrlData = null;
                        if (widget.type.ToLower() == "content block")
                        {
                            ContentBlockBase newContentBlock = new ContentBlockBase();
                            newContentBlock.Html = widget.properties.text;
                            newContentBlock.CssClass = widget.cssclass;
                            newContentBlock.LayoutTemplatePath = "~/SFRes/Telerik.Sitefinity.Resources.Templates.Backend.GenericContent.ContentBlock.ascx";

                            var templateContentBlock = pageManager.CreateControl<Telerik.Sitefinity.Pages.Model.TemplateControl>(newContentBlock, widget.sfID);
                            templateContentBlock.Caption = "Content Block";

                            pageTemplate.Controls.Add(templateContentBlock);
                            ctrlData = templateContentBlock;
                        }
                        else if (widget.type.ToLower() == "image")
                        {
                            ImageControl newImage = new ImageControl();
                            newImage.LayoutTemplatePath = "~/SFRes/Telerik.Sitefinity.Resources.Templates.PublicControls.ImageControl.ascx";
                            newImage.CssClass = widget.cssclass;
                            newImage.ImageId = GetImageId(widget.properties.filename, pageTemplate.Name);

                            var templateImageControl = pageManager.CreateControl<Telerik.Sitefinity.Pages.Model.TemplateControl>(newImage, widget.sfID);
                            templateImageControl.Caption = "Image";

                            pageTemplate.Controls.Add(templateImageControl);
                            ctrlData = templateImageControl;

                        }
                        else if (widget.type.ToLower() == "navigation")
                        {

                            string type = widget.properties.navigationtype;
                            NavigationControl navigation = new NavigationControl();

                            navigation.SelectionMode = PageSelectionModes.TopLevelPages;
                            NavigationModes navigationMode;

                            switch (type)
                            {
                                case "horizontalcontrol": navigationMode = NavigationModes.HorizontalSimple;
                                    break;

                                case "horizontal2levelscontrol": navigationMode = NavigationModes.HorizontalDropDownMenu;
                                    break;

                                case "tabscontrol": navigationMode = NavigationModes.HorizontalTabs;
                                    break;

                                case "verticalcontrol": navigationMode = NavigationModes.VerticalSimple;
                                    break;

                                case "treeviewcontrol": navigationMode = NavigationModes.VerticalTree;
                                    break;

                                case "sitemapcontrol": navigationMode = NavigationModes.SiteMapInColumns;
                                    break;

                                default: navigationMode = NavigationModes.HorizontalSimple;
                                    break;
                            }

                            navigation.NavigationMode = navigationMode;
                            navigation.Skin = widget.cssclass;

                            var templateNavigationControl = pageManager.CreateControl<Telerik.Sitefinity.Pages.Model.TemplateControl>(navigation, widget.sfID);
                            templateNavigationControl.Caption = "Navigation";

                            pageTemplate.Controls.Add(templateNavigationControl);
                            ctrlData = templateNavigationControl;

                        }

                        var widgetCulture = this.GetCurrentLanguage();
                        pageManager.SetControlId(pageTemplate, ctrlData, widgetCulture);
                    }
                }

                //pageTemplate.Controls.Add(ctrlData);
            }

            pageTemplate.Category = Telerik.Sitefinity.Abstractions.SiteInitializer.CustomTemplatesCategoryId;
            pageManager.SaveChanges();

            // publish the template
            var draft = pageManager.EditTemplate(pageTemplate.Id);
            var master = pageManager.TemplatesLifecycle.CheckOut(draft);
            master = pageManager.TemplatesLifecycle.CheckIn(master);
            pageManager.TemplatesLifecycle.Publish(master);
            pageManager.SaveChanges();

        }
        private void CreateHousingOpportunitiesPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), "Housing opportunities", new Guid(SampleConstants.CampusLifePageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase housingOpportunitiesBlock = new ContentBlockBase();
                housingOpportunitiesBlock.Html = @"<h2>Housing Opportunities</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), housingOpportunitiesBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var housing_tiuImageId = SampleUtilities.GetLocalizedImageId("housing_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <p>Telerik International University offers an American-style liberal arts education with accommodation available in the surrounding area. The following accommodation is currently available to students.</p>", housing_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), "Wohnmöglichkeiten", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase housingOpportunitiesBlockDE = new ContentBlockBase();
                housingOpportunitiesBlockDE.Html = @"<h2>Wohnmöglichkeiten</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), housingOpportunitiesBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var housing_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("housing_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <p>Telerik International University bietet eine American-style geisteswissenschaftliche Ausbildung mit &Uuml;bernachtungsm&ouml;glichkeiten in der Umgebung. Die folgende Unterkunft ist derzeit f&uuml;r Studierende.</p>", housing_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.HousingOpportunitiesPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateDocumentsBasePage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), "Document base", new Guid(SampleConstants.AdmissionsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase documentsBaseBlock = new ContentBlockBase();
                documentsBaseBlock.Html = @"<h2>Document base</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), documentsBaseBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), navigationControl, "Main_Left", "Navigation", "en");

                DownloadListView downloads = new DownloadListView();
                downloads.MasterViewName = "MasterTableView";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), downloads, "Main_Right", "Download list", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), "Downloads", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase documentsBaseBlockDE = new ContentBlockBase();
                documentsBaseBlockDE.Html = @"<h2>Downloads</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), documentsBaseBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), navigationControlDE, "Main_Left", "Navigation", "de");

                DownloadListView downloadsDE = new DownloadListView();
                downloadsDE.MasterViewName = "MasterTableView";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DocumentsBasePageId), downloadsDE, "Main_Right", "Download list", "de");
            }
        }
        private void CreateAcademicsPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicsPageId), "Academics", "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase academicsBlock = new ContentBlockBase();
                academicsBlock.Html = @"<h1>Academics</h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), academicsBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var academics_tiuImageId = SampleUtilities.GetLocalizedImageId("academics_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Interdisciplinary, practice-oriented, responsible </h3> <p>Striving to become a leading university, TIU invests in academics.&nbsp; We bring together world-renowned faculty and students from all over the region, the nation, and the world.&nbsp; We also count on our bright students to participate in groundbreaking research and contribute their ideas to our overall academic atmosphere.</p> <h3>Information-oriented business sciences&nbsp; </h3> <p>For our Undergraduate and Graduate students we have established stimulating courses in over 150 majors and programs.&nbsp; The courses often incorporate different activities and research projects, because we believe that doing is a major part of learning and we practice what we preach! </p> <h3>Excellent further education opportunities </h3> <p>In order to enlarge our student base and to welcome all of those who are unable to commute to our campus, we have created an innovative and highly efficient base for Distant Learning.&nbsp; Our online students can benefit from an extensive list of courses and contribute to our academic society just as much as the other students.</p>", academics_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicsPageId), "Studieninteressenten", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase academicsBlockDE = new ContentBlockBase();
                academicsBlockDE.Html = @"<h1> </h1> <h1>Studieninteressenten</h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), academicsBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var academics_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("academics_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Interdisziplin&auml;re, praxisorientierte, verantwortlich</h3> <p>Das Streben nach einer f&uuml;hrenden Universit&auml;t zu werden, investiert TIU in Akademiker. Wir bringen weltweit renommierten Dozenten und Studenten aus der ganzen Region, der Nation und der Welt. Wir haben auch auf unserer hellen Studenten z&auml;hlen, um in bahnbrechende Forschung zu beteiligen und ihre Ideen f&uuml;r unsere gesamte akademische Atmosph&auml;re.</p> <h3>Informations-orientierten Wirtschaftswissenschaften</h3> <p>F&uuml;r unsere Undergraduate-und Graduate Studenten haben wir anregende Kurse in &uuml;ber 150 Majors und Programme etabliert. Die Kurse beinhalten h&auml;ufig verschiedene Aktivit&auml;ten und Forschungsprojekte, weil wir, dass dabei ein wichtiger Teil des Lernens ist und wir glauben, was wir predigen!</p> <h3>Hervorragende Weiterbildungsm&ouml;glichkeiten</h3> <p>Um unseren Studenten Basis zu erweitern und alle diejenigen, die nicht in der Lage zu pendeln, um unseren Campus sind willkommen, haben wir eine innovative und hocheffiziente Basis f&uuml;r Distant Learning erstellt. Unser Online-Studenten k&ouml;nnen aus einer umfangreichen Liste von Kursen profitieren und dazu beitragen, unseren akademischen Gesellschaft ebenso wie die anderen Sch&uuml;ler.</p>", academics_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicsPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateBlogPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), "Blog", new Guid(SampleConstants.AboutTheUniversityPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase tiuBlogBlock = new ContentBlockBase();
                tiuBlogBlock.Html = @"<h2>TIU Blog</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), tiuBlogBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), navigationControl, "Main_Left", "Navigation", "en");

                var blogsControl = new BlogPostView();
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), blogsControl, "Main_Right", "Blog posts", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), "Blog", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase tiuBlogBlockDE = new ContentBlockBase();
                tiuBlogBlockDE.Html = @"<h2>TIU Blog</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), tiuBlogBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), navigationControl, "Main_Left", "Navigation", "de");

                var blogsControl = new BlogPostView();
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.TIUBlogPageId), blogsControl, "Main_Right", "Blog posts", "de");
            }
        }
        /// <summary>
        /// Registers the template.
        /// </summary>
        private void RegisterTemplate()
        {
            var present = this.pageManager.CreatePresentationItem <TemplatePresentation>();

            present.DataType = Presentation.HtmlDocument;
            present.Name     = "master";
            var resName = "Telerik.Sitefinity.Resources.Pages.Frontend.aspx";

            present.Data = ControlUtilities.GetTextResource(resName, Config.Get <ControlsConfig>().ResourcesAssemblyInfo);

            this.pageTemplate.MasterPage = string.Concat("~/App_Data/Sitefinity/WebsiteTemplates/", this.pageTemplate.Name, "/App_Master/page.master");

            for (int i = 0; i < this.templateobject.Layout.Placeholders.Length; i++)
            {
                var placeholder = this.templateobject.Layout.Placeholders[i];

                for (int j = 0; j < placeholder.LayoutWidget.Columns.Length; j++)
                {
                    var column = placeholder.LayoutWidget.Columns[j];

                    var widget = column.Widget;
                    if (widget.Type != null)
                    {
                        ControlData ctrlData = null;
                        if (widget.Type.ToLower() == "content block")
                        {
                            ContentBlockBase newContentBlock = new ContentBlockBase();
                            newContentBlock.Html               = widget.Properties.Text;
                            newContentBlock.CssClass           = widget.CssClass;
                            newContentBlock.LayoutTemplatePath = "~/SFRes/Telerik.Sitefinity.Resources.Templates.Backend.GenericContent.ContentBlock.ascx";

                            var templateContentBlock = this.pageManager.CreateControl <Telerik.Sitefinity.Pages.Model.TemplateControl>(newContentBlock, widget.SfID);
                            templateContentBlock.Caption = "Content Block";

                            this.pageTemplate.Controls.Add(templateContentBlock);
                            ctrlData = templateContentBlock;
                        }
                        else if (widget.Type.ToLower() == "image")
                        {
                            ImageControl newImage = new ImageControl();
                            newImage.LayoutTemplatePath = "~/SFRes/Telerik.Sitefinity.Resources.Templates.PublicControls.ImageControl.ascx";
                            newImage.CssClass           = widget.CssClass;
                            newImage.ImageId            = GetImageId(widget.Properties.Filename, this.pageTemplate.Name);

                            var templateImageControl = this.pageManager.CreateControl <Telerik.Sitefinity.Pages.Model.TemplateControl>(newImage, widget.SfID);
                            templateImageControl.Caption = "Image";

                            this.pageTemplate.Controls.Add(templateImageControl);
                            ctrlData = templateImageControl;
                        }
                        else if (widget.Type.ToLower() == "navigation")
                        {
                            string            type       = widget.Properties.NavigationType;
                            NavigationControl navigation = new NavigationControl();

                            navigation.SelectionMode = PageSelectionModes.TopLevelPages;
                            NavigationModes navigationMode;

                            switch (type)
                            {
                            case "horizontalcontrol": navigationMode = NavigationModes.HorizontalSimple;
                                break;

                            case "horizontal2levelscontrol": navigationMode = NavigationModes.HorizontalDropDownMenu;
                                break;

                            case "tabscontrol": navigationMode = NavigationModes.HorizontalTabs;
                                break;

                            case "verticalcontrol": navigationMode = NavigationModes.VerticalSimple;
                                break;

                            case "treeviewcontrol": navigationMode = NavigationModes.VerticalTree;
                                break;

                            case "sitemapcontrol": navigationMode = NavigationModes.SiteMapInColumns;
                                break;

                            default: navigationMode = NavigationModes.HorizontalSimple;
                                break;
                            }

                            navigation.NavigationMode = navigationMode;
                            navigation.Skin           = widget.CssClass;

                            var templateNavigationControl = this.pageManager.CreateControl <Telerik.Sitefinity.Pages.Model.TemplateControl>(navigation, widget.SfID);
                            templateNavigationControl.Caption = "Navigation";

                            this.pageTemplate.Controls.Add(templateNavigationControl);
                            ctrlData = templateNavigationControl;
                        }

                        var widgetCulture = this.GetCurrentLanguage();
                        this.pageManager.SetControlId(this.pageTemplate, ctrlData, widgetCulture);
                    }
                }
            }

            this.pageTemplate.Category = Telerik.Sitefinity.Abstractions.SiteInitializer.CustomTemplatesCategoryId;
            this.pageManager.SaveChanges();

            // publish the template
            var draft  = this.pageManager.EditTemplate(this.pageTemplate.Id);
            var master = this.pageManager.TemplatesLifecycle.CheckOut(draft);

            master = this.pageManager.TemplatesLifecycle.CheckIn(master);
            this.pageManager.TemplatesLifecycle.Publish(master);
            this.pageManager.SaveChanges();
        }
        public void PageEnter(Battlefield Battlefield)
        {
            this.Battlefield = Battlefield;

            for (int i = 0; i < ContentGrid.Children.Count; i++)
            {
                var NaviControl = new NavigationControl()
                {
                    Index  = i,
                    Height = 10, Width = 10,
                    HorizontalAlignment = HorizontalAlignment.Center,
                    VerticalAlignment   = VerticalAlignment.Center,
                    Margin = new Thickness(-5 * ContentGrid.Children.Count -
                                           2.5 * (ContentGrid.Children.Count - 1) + 15 * i, 0,
                                           5 * ContentGrid.Children.Count +
                                           2.5 * (ContentGrid.Children.Count - 1) - 15 * i, 0),
                    RelatedGrid = ContentGrid.Children[i] as Grid
                };
                NaviControl.SelectAction = delegate
                {
                    if (NavigationGrid.Children.OfType <NavigationControl>().Any(O => O.IsSelected))
                    {
                        var Before = NavigationGrid.Children.OfType <NavigationControl>().First(O => O.IsSelected);
                        var After  = NaviControl;
                        var Timer  = new DispatcherTimer()
                        {
                            Interval = TimeSpan.FromSeconds(1)
                        };
                        Timer.Tick += delegate
                        {
                            Before.RelatedGrid.Visibility = Visibility.Hidden;
                            After.RelatedGrid.Visibility  = Visibility.Visible;
                            After.RelatedGrid.BeginAnimation(OpacityProperty, new DoubleAnimation()
                            {
                                From           = 0,
                                To             = 1,
                                Duration       = TimeSpan.FromSeconds(1),
                                EasingFunction = new ExponentialEase()
                                {
                                    EasingMode = EasingMode.EaseOut
                                }
                            });
                            After.RelatedGrid.BeginAnimation(MarginProperty, new ThicknessAnimation()
                            {
                                From = After.Index >= Before.Index ? new Thickness(
                                    After.RelatedGrid.Margin.Left - 100,
                                    After.RelatedGrid.Margin.Top,
                                    After.RelatedGrid.Margin.Right + 100,
                                    After.RelatedGrid.Margin.Bottom) : new Thickness(
                                    After.RelatedGrid.Margin.Left + 100,
                                    After.RelatedGrid.Margin.Top,
                                    After.RelatedGrid.Margin.Right - 100,
                                    After.RelatedGrid.Margin.Bottom),
                                To             = After.RelatedGrid.Margin,
                                Duration       = TimeSpan.FromSeconds(1),
                                EasingFunction = new ExponentialEase()
                                {
                                    EasingMode = EasingMode.EaseOut
                                },
                            });
                            Timer.Stop();
                        };

                        Before.RelatedGrid.BeginAnimation(OpacityProperty, new DoubleAnimation()
                        {
                            From           = 1,
                            To             = 0,
                            Duration       = TimeSpan.FromSeconds(1),
                            EasingFunction = new ExponentialEase()
                            {
                                EasingMode = EasingMode.EaseIn
                            }
                        });
                        Before.RelatedGrid.BeginAnimation(MarginProperty, new ThicknessAnimation()
                        {
                            From = Before.RelatedGrid.Margin,
                            To   = After.Index >= Before.Index ? new Thickness(
                                Before.RelatedGrid.Margin.Left + 100,
                                Before.RelatedGrid.Margin.Top,
                                Before.RelatedGrid.Margin.Right - 100,
                                Before.RelatedGrid.Margin.Bottom) : new Thickness(
                                Before.RelatedGrid.Margin.Left - 100,
                                Before.RelatedGrid.Margin.Top,
                                Before.RelatedGrid.Margin.Right + 100,
                                Before.RelatedGrid.Margin.Bottom),
                            Duration       = TimeSpan.FromSeconds(1),
                            EasingFunction = new ExponentialEase()
                            {
                                EasingMode = EasingMode.EaseIn
                            },
                            FillBehavior = FillBehavior.Stop
                        });
                        Timer.Start();
                        Before.Unselect();
                    }
                    else
                    {
                        var After = NaviControl;
                        After.RelatedGrid.Visibility = Visibility.Visible;
                        After.RelatedGrid.BeginAnimation(OpacityProperty, new DoubleAnimation()
                        {
                            From           = 0,
                            To             = 1,
                            Duration       = TimeSpan.FromSeconds(1),
                            EasingFunction = new ExponentialEase()
                            {
                                EasingMode = EasingMode.EaseOut
                            }
                        });
                        After.RelatedGrid.BeginAnimation(MarginProperty, new ThicknessAnimation()
                        {
                            From = new Thickness(
                                After.RelatedGrid.Margin.Left - 100,
                                After.RelatedGrid.Margin.Top,
                                After.RelatedGrid.Margin.Right + 100,
                                After.RelatedGrid.Margin.Bottom),
                            To             = After.RelatedGrid.Margin,
                            Duration       = TimeSpan.FromSeconds(1),
                            EasingFunction = new ExponentialEase()
                            {
                                EasingMode = EasingMode.EaseOut
                            }
                        });
                    }
                    if (NavigationGrid.Children.OfType <NavigationControl>().All(O => O.IsViewed))
                    {
                        ContinueButton.IsEnabled = true;
                    }
                };
                NavigationGrid.Children.Add(NaviControl);
            }

            WinnersDisplayPanel.Width = 150 * Battlefield.GetWinnerGroup().Participants.Length;
            Battlefield.GetWinnerGroup().Participants.ToList()
            .ForEach(O =>
            {
                var TempControl = new ParticipantDisplayXLarge()
                {
                    Height = 150, Width = 150, Opacity = 0
                };
                TempControl.Init(O);
                WinnersDisplayPanel.Children.Add(TempControl);
            });

            Battlefield.SetStatisticsRatio();
            PlayersListBox.ItemsSource   = Battlefield.Room.Groups.SelectMany(O => O.Participants);
            PlayersListBox.SelectedIndex = 0;

            DoubleAnimation OpacityAnimation = new DoubleAnimation()
            {
                From           = 0,
                To             = 1,
                Duration       = TimeSpan.FromSeconds(0.75),
                EasingFunction = new ExponentialEase()
                {
                    EasingMode = EasingMode.EaseOut
                }
            };
            ThicknessAnimation MarginAnimation = new ThicknessAnimation()
            {
                From = new Thickness(
                    TitleGrid.Margin.Left - 50,
                    TitleGrid.Margin.Top,
                    TitleGrid.Margin.Right + 50,
                    TitleGrid.Margin.Bottom),
                To             = TitleGrid.Margin,
                Duration       = TimeSpan.FromSeconds(0.75),
                EasingFunction = new ExponentialEase()
                {
                    EasingMode = EasingMode.EaseOut
                }
            };

            MarginAnimation.Completed += delegate
            {
                DispatcherTimer Timer = new DispatcherTimer()
                {
                    Interval = TimeSpan.FromSeconds(0.75)
                };
                Timer.Tick += delegate
                {
                    ShowWinners();
                    Timer.Stop();
                };

                ContentGrid.BeginAnimation(OpacityProperty, new DoubleAnimation()
                {
                    From           = 0,
                    To             = 1,
                    Duration       = TimeSpan.FromSeconds(0.75),
                    EasingFunction = new ExponentialEase()
                    {
                        EasingMode = EasingMode.EaseOut
                    }
                });
                ContentGrid.BeginAnimation(MarginProperty, new ThicknessAnimation()
                {
                    From = new Thickness(
                        ContentGrid.Margin.Left - 50,
                        ContentGrid.Margin.Top,
                        ContentGrid.Margin.Right + 50,
                        ContentGrid.Margin.Bottom),
                    To             = ContentGrid.Margin,
                    Duration       = TimeSpan.FromSeconds(0.75),
                    EasingFunction = new ExponentialEase()
                    {
                        EasingMode = EasingMode.EaseOut
                    }
                });
                ((NavigationControl)NavigationGrid.Children[0]).Select();
                Timer.Start();
            };
            TitleGrid.BeginAnimation(OpacityProperty, OpacityAnimation);
            TitleGrid.BeginAnimation(MarginProperty, MarginAnimation);
        }
        private void CreateUndergraduateAndGraduate()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), "Undergraduate and Graduate", new Guid(SampleConstants.AcademicsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase graduateBlock = new ContentBlockBase();
                graduateBlock.Html = @"<h2>Undergraduate and Graduate</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), graduateBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                contentBlock.Html = @"Undergraduates and graduates at TIU have the opportunity to choose from a wide range of courses and to comprise their schedules in order to obtain their Majors and Minors in the different schools at TIU.";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), contentBlock, "Main_Right", "Content block", "en");

                var innerLayoutControl = new LayoutControl();
                List<ColumnDetails> innerLayoutColumns = new List<ColumnDetails>();
                ColumnDetails innerLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 50,
                    PlaceholderId = "Left"
                };
                innerLayoutColumns.Add(innerLayoutColumn1);
                ColumnDetails innerLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 50,
                    PlaceholderId = "Right"
                };
                innerLayoutColumns.Add(innerLayoutColumn2);

                innerLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(innerLayoutColumns, string.Empty);
                innerLayoutControl.ID = "Inner";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), innerLayoutControl, "Main_Right", "50% + 50%", "en");

                ContentBlockBase leftBlock = new ContentBlockBase();

                leftBlock.Html = @"<h3>Graduate </h3> <ul> <li>Art History</li> <li>Asian Studies</li> <li>Astronomy</li> <li>Biochemistry and Molecular Biology</li> <li>Biology</li> <li>Chemistry</li> <li>Chinese</li> <li>Classics</li> <li>Computer Science</li> <li>Economics</li> <li>English</li> <li>Entrepreneurship</li> </ul>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), leftBlock, "Inner_Left", "Content block", "en");

                ContentBlockBase rightBlock = new ContentBlockBase();
                rightBlock.Html = @"<h3>Under graduate</h3> <ul> <li>Geography</li> <li>German</li> <li>Greek</li> <li>History</li> <li>Japanese</li> <li>Law and Society</li> <li>Mathematics</li> <li>Management</li> <li>Music</li> <li>Philosophy</li> <li>Physics</li> <li>Psychology</li> <li>Sociology</li> <li>Spanish</li> <li>Theater Arts</li> <li>Urban Development and Social Change</li> </ul>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), rightBlock, "Inner_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), "Bachelor und Master", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase graduateBlockDE = new ContentBlockBase();
                graduateBlockDE.Html = @"<h2>Bachelor und Master</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), graduateBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                contentBlockDE.Html = @"<p>Studenten und Absolventen bei TIU haben die M&ouml;glichkeit, aus einer breiten Palette von Kursen zu w&auml;hlen und ihre Zeitpl&auml;ne umfassen, um ihre Haupt und Nebenf&auml;cher in den verschiedenen Schulen in TIU erhalten.</p>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), contentBlockDE, "Main_Right", "Content block", "de");

                var innerLayoutControlDE = new LayoutControl();
                List<ColumnDetails> innerLayoutColumns = new List<ColumnDetails>();
                ColumnDetails innerLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 50,
                    PlaceholderId = "Left"
                };
                innerLayoutColumns.Add(innerLayoutColumn1);
                ColumnDetails innerLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 50,
                    PlaceholderId = "Right"
                };
                innerLayoutColumns.Add(innerLayoutColumn2);

                innerLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(innerLayoutColumns, string.Empty);
                innerLayoutControlDE.ID = "Inner";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), innerLayoutControlDE, "Main_Right", "50% + 50%", "de");

                ContentBlockBase leftBlockDE = new ContentBlockBase();
                leftBlockDE.Html = @"<h3>Masterstudieng&auml;nge</h3> <ul> <li>Kunstgeschichte</li> <li>Asiatische Lehren</li> <li>Astronomie</li> <li>Biochemie</li> <li>Biologie</li> <li>Chemie</li> <li>Chinesisch</li> <li>Klassische Lehren </li> <li>Informatik</li> <li>Wirtschaft</li> <li>Englisch </li> <li>Entrepreneurship</li> </ul>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), leftBlockDE, "Inner_Left", "Content block", "de");

                ContentBlockBase rightBlockDE = new ContentBlockBase();
                rightBlockDE.Html = @"<h3>Bachelorstudieng&auml;nge</h3> <ul> <li>Geographie</li> <li>Deutsch </li> <li>Griechisch</li> <li>Geschichte </li> <li>Japanisch</li> <li>Jura</li> <li>Mathematik</li> <li>Management</li> <li>Musik</li> <li>Philosophie</li> <li>Physik</li> <li>Psychologie</li> <li>Sociologie</li> <li>Spanisch</li> <li>Kunst</li> </ul>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.UndergraduateAndGraduatePageId), rightBlockDE, "Inner_Right", "Content block", "de");
            }
        }
        private void CreateEventsPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.EventsPageId), "Events", new Guid(SampleConstants.AboutTheUniversityPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.EventsPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                var headerLayoutControl = new LayoutControl();
                List<ColumnDetails> headerLayoutColumns = new List<ColumnDetails>();
                ColumnDetails headerLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 100,
                    PlaceholderId = "Center"
                };
                headerLayoutColumns.Add(headerLayoutColumn1);
                headerLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(headerLayoutColumns, string.Empty);
                headerLayoutControl.ID = "Header";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), headerLayoutControl, "content", "100%", "en");

                ContentBlockBase eventsBlock = new ContentBlockBase();
                eventsBlock.Html = @"<h2>Events</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsBlock, "Header_Center", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);
                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), navigationControl, "Main_Left", "Navigation", "en");

                EventsView eventsControl = new EventsView();
                eventsControl.DetailViewName = SampleConstants.EducationEventItemDetailView;
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsControl, "Main_Right", "Events", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.EventsPageId), "Veranstaltungen", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.EventsPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                var headerLayoutControl = new LayoutControl();
                List<ColumnDetails> headerLayoutColumns = new List<ColumnDetails>();
                ColumnDetails headerLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 100,
                    PlaceholderId = "Center"
                };
                headerLayoutColumns.Add(headerLayoutColumn1);
                headerLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(headerLayoutColumns, string.Empty);
                headerLayoutControl.ID = "Header";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), headerLayoutControl, "content", "100%", "de");

                ContentBlockBase eventsBlock = new ContentBlockBase();
                eventsBlock.Html = @"<h2>Veranstaltungen</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsBlock, "Header_Center", "Content block", "de");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);
                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), mainLayoutControl, "content", "25% + 75%", "de");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), navigationControl, "Main_Left", "Navigation", "de");

                EventsView eventsControl = new EventsView();
                eventsControl.DetailViewName = SampleConstants.EducationEventItemDetailView;
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.EventsPageId), eventsControl, "Main_Right", "Events", "de");
            }
        }
        private void CreateDistantLearningPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), "Distant learning", new Guid(SampleConstants.AcademicsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase distantLearningBlock = new ContentBlockBase();
                distantLearningBlock.Html = @"<h2>Distant Learning</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), distantLearningBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var distant_tiuImageId = SampleUtilities.GetLocalizedImageId("distant_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Cultural Studies and Educational Science</h3> <p>We believe in education and we really think that education should be accessible for everyone. This is why we started our Distant Learning program back in 2007 according to the latest standards and using the newest technologies in the telecommunications to make education affordable for people anywhere in the world.</p> <h3>Ideal conditions for studying natural sciences</h3> <p>We already support Web-based VoIP, Videoconferencing, Web conferencing, Internet radio and Live streaming. This year we invested $2.6 million in creating a much bigger asynchronous technology base to support people, who cannot use the latest technologies in their region. We transferred 94% of our materials on Audiocassettes, VHS, CD and DVD, and we are almost finished with a massive print materials section that can be ordered very easy per Mail or sent to a local copy shop and printed there!</p> <h3>Integrative environmental research</h3> <p>Our online education program offers both Undergraduate and Graduate programs for those students who are not able to joins us on campus.</p>", distant_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), "Fernstudium", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase distantLearningBlockDE = new ContentBlockBase();
                distantLearningBlockDE.Html = @"<h2>Fernstudium</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), distantLearningBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var distant_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("distant_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <h3>Cultural Studies und P&auml;dagogik&nbsp;</h3> <p>Wir glauben an Bildung und wir wirklich denken, dass Bildung f&uuml;r jeden zug&auml;nglich sein. Deshalb haben wir unsere Distant Learning-Programm begann im Jahr 2007 nach den neuesten Standards und mit den neuesten Technologien in der Telekommunikation, Bildung und Ausbildung erschwinglich f&uuml;r Menschen &uuml;berall in der Welt.</p> <h3>Ideale Bedingungen f&uuml;r Studium der Naturwissenschaften&nbsp;</h3> <p>Wir unterst&uuml;tzen bereits Web-basierte VoIP, Videoconferencing, Web-Conferencing, Internet Radio und Live-Streaming. Dieses Jahr haben wir investiert $ 2.600.000 bei der Schaffung eines viel gr&ouml;&szlig;eren asynchrone technologische Basis, um Menschen, die nicht die neuesten Technologien in ihrer Region unterst&uuml;tzen k&ouml;nnen. Wir &uuml;bertragen 94% unserer Materialien auf Audiokassetten, VHS, CD und DVD, und wir sind fast mit einem massiven Druckmaterialien Abschnitt, der bestellt einfach kann per Mail oder an einen Copyshop und dort gedruckt fertig!</p> <h3>Integrative Umweltforschung&nbsp;</h3> <p>Unser Online-Bildungsprogramm bietet sowohl Undergraduate-und Graduate-Programme f&uuml;r diejenigen Studierenden, die nicht imstande sind, gesellt sich zu uns auf dem Campus.</p>", distant_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.DistantLearningPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
Beispiel #46
0
        public void NavigationControl_Ctor()
        {
            var actual = new NavigationControl();

            Assert.NotNull(actual);
        }
        private void CreateAcademicFacilitiesPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), "Academic facilities", new Guid(SampleConstants.AcademicsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase academicFacilitiesBlock = new ContentBlockBase();
                academicFacilitiesBlock.Html = @"<h2>Academic facilities</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), academicFacilitiesBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var facilities_tiuImageId = SampleUtilities.GetLocalizedImageId("facilities_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Seven faculties</h3> <p>The TUI provides the ideal conditions for completing a degree program successfully and within a reasonable time frame. Ever since its foundation, the university has been committed to reform. Seven faculties have been established, each with long-term strategies for development and using the most up-to-date facilities available. </p> <p>As a student at TIU, you have direct, unfettered access to scientific resources and you can use to help your self-education plan.</p> <br style=""clear: left;""/> <p>Among the most important scientific institutions on campus are:</p> <ul> <li>Data Center</li> <li>Center for Art and Music</li> <li>Languages ​​and Education Center</li> <li>Center for Mathematics and Science</li> <li>Law Library</li> <li>Merriam-Webster Library</li> <li>""Books and Coffee"" Internet Caf&eacute;</li> <li>Brook's theater</li> </ul> <p>For those of you who are involved in sports, whether professional or novice, we have invested in a state-of-the-art sports facility called The Dome. There you will find a fully equipped fitness center, basketball court, indoor pool, indoor and outdoor tennis courts and an outdoor soccer field.</p>", facilities_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), "Einrichtungen", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase academicFacilitiesBlockDE = new ContentBlockBase();
                academicFacilitiesBlockDE.Html = @"<h2>Einrichtungen</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), academicFacilitiesBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var facilities_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("facilities_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Sieben Fakult&auml;ten</h3> <p>Die TUI bietet ideale Voraussetzungen f&uuml;r den Abschluss eines Studiengangs erfolgreich und innerhalb eines angemessenen Zeitrahmens. Seit ihrer Gr&uuml;ndung hat die Universit&auml;t begangen zu reformieren. Sieben Fakult&auml;ten wurden eingerichtet, die jeweils mit langfristigen Strategien f&uuml;r die Entwicklung und Nutzung der meisten up-to-date Einrichtungen zur Verf&uuml;gung.&nbsp;</p> <p>Als Student an TIU haben Sie direkten, freien Zugang zu wissenschaftlichen Ressourcen und k&ouml;nnen Sie benutzen, um Ihre Selbst-Bildung zu planen.</p> <br style=""clear: left;""/> <p>Zu den wichtigsten wissenschaftlichen Einrichtungen auf dem Campus sind:</p> <ul> <li>Data Center</li> <li>Zentrum f&uuml;r Kunst und Musik</li> <li>Sprachen-und Bildungszentrum</li> <li>Center for Mathematics and Science</li> <li> Law Library</li> <li>Merriam-Webster-Bibliothek</li> <li>""Books and Coffee"" Internet Caf&eacute;</li> <li>Brook-Theater</li> </ul> <p>F&uuml;r diejenigen unter Ihnen, die im Sport involviert sind, ob Profi oder Anf&auml;nger, wir haben in einer state-of-the-art Sportanlage investiert namens The Dome. Dort finden Sie ein voll ausgestattetes Fitness-Center, Basketballplatz, Hallenbad, Indoor-und Outdoor-Tennispl&auml;tze und ein Outdoor-Fu&szlig;ballfeld.</p>", facilities_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AcademicFacilitiesPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateEducationThemeAndTemplate()
        {
            SampleUtilities.RegisterTheme(SampleConstants.EducationThemeName, SampleConstants.EducationThemePath);
            SampleUtilities.RegisterTheme(SampleConstants.EducationInGermanThemeName, SampleConstants.EducationInGermanThemePath);

            SampleUtilities.RegisterTemplate(new Guid(SampleConstants.EducationTemplateId), SampleConstants.EducationTemplateName, SampleConstants.EducationTemplateName, SampleConstants.EducationTemplateMasterPage, SampleConstants.EducationThemeName, CultureInfo.GetCultureInfo("en"));
            var result = SampleUtilities.RegisterTemplate(new Guid(SampleConstants.EducationTemplateId), SampleConstants.EducationInGermanTemplateName, SampleConstants.EducationInGermanTemplateName, SampleConstants.EducationTemplateMasterPage, SampleConstants.EducationInGermanThemeName, CultureInfo.GetCultureInfo("de"));

            if (result)
            {
                // Main layout
                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 50),
                    ColumnWidthPercentage = 70,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnWidthPercentage = 30,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);
                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Header";
                SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), mainLayoutControl, "headerInfo", "Header");

                // Logo
                var logoBlock = new ContentBlock();
                logoBlock.Html = string.Format(@"<h1><a href=""[pages]{0}"">Telerik International University</a></h1> <h3>established 2005, Sofia</h3>", SampleConstants.HomePageId);
                logoBlock.CssClass = "sfContentBlock";
                string logoId = SampleUtilities.AddLocalizedControlToTemplate(new Guid(SampleConstants.EducationTemplateId), logoBlock, "Header_Left", "Content block", "en");

                Dictionary<string, object> logoProperties = new Dictionary<string, object>();

                logoProperties.Add("Html", string.Format(@"<h1><a href=""[pages]{0}"">Internationale Universit&auml;t Telerik</a></h1> <h3>gegr&uuml;ndet im 2005, in Sofia</h3>", SampleConstants.HomePageId));
                SampleUtilities.UpdateLocalizedControlInTemplate(logoId, new Guid(SampleConstants.EducationTemplateId), logoProperties, "de");

                // Language/search layout
                var languagesSearchLayoutControl = new LayoutControl();
                List<ColumnDetails> languagesSearchLayoutColumns = new List<ColumnDetails>();
                ColumnDetails languagesSearchLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 46,
                    PlaceholderId = "Left"
                };
                languagesSearchLayoutColumns.Add(languagesSearchLayoutColumn1);
                ColumnDetails languagesSearchLayoutColumn2 = new ColumnDetails()
                {
                    ColumnWidthPercentage = 54,
                    PlaceholderId = "Right"
                };
                languagesSearchLayoutColumns.Add(languagesSearchLayoutColumn2);
                languagesSearchLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(languagesSearchLayoutColumns, string.Empty);
                languagesSearchLayoutControl.ID = "LanguageSearch";
                SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), languagesSearchLayoutControl, "Header_Right", "Language and Search");

                // Language
                var languages = new LanguageSelectorControl();
                languages.SelectorType = LanguageSelectorType.Vertical;
                SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), languages, "LanguageSearch_Right", "Language selector");

                // Login layout
                //var loginLayoutControl = new LayoutControl();
                //List<ColumnDetails> loginLayoutColumns = new List<ColumnDetails>();
                //ColumnDetails loginLayoutColumn1 = new ColumnDetails()
                //{
                //    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                //    PlaceholderId = "Center"
                //};
                //loginLayoutColumns.Add(loginLayoutColumn1);
                //loginLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(loginLayoutColumns, "login-status");
                //loginLayoutControl.ID = "Login";
                //SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), loginLayoutControl, "Header_Right", "Login");

                //// Login name
                //LoginNameControl loginNameControl = new LoginNameControl();
                //SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), loginNameControl, "Login_Center", "Login name");

                //// Login status
                //LoginStatusControl loginStatusControl = new LoginStatusControl();
                //SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), loginStatusControl, "Login_Center", "Login status");

                // Image
                ImageControl headerImage = new ImageControl();
                headerImage.ImageId = SampleUtilities.GetLocalizedImageId("the_building", "en");
                headerImage.CssClass = "headerImage";
                string controlId = SampleUtilities.AddLocalizedControlToTemplate(new Guid(SampleConstants.EducationTemplateId), headerImage, "image", "Image", "en");

                Dictionary<string, object> properties = new Dictionary<string, object>();
                properties.Add("ImageId", SampleUtilities.GetLocalizedImageId("headerspring1", "de"));
                SampleUtilities.UpdateLocalizedControlInTemplate(controlId, new Guid(SampleConstants.EducationTemplateId), properties, "de");

                // Explore your potentials
                ContentBlockBase exploreContentBlock = new ContentBlockBase();
                exploreContentBlock.Html = @"<h4>Explore your potentials</h4> <p>Share your voice and unlock your potentials while we will equip you with the skills you need for the future!</p>";
                SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), exploreContentBlock, "tagline", "Content block");

                // Header navigation
                var headerNavigationControl = new NavigationControl();
                headerNavigationControl.NavigationMode = NavigationModes.HorizontalSimple;
                headerNavigationControl.SelectionMode = PageSelectionModes.TopLevelPages;
                headerNavigationControl.Skin = "education";
                SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), headerNavigationControl, "header", "Navigation");

                // Footer navigation
                var footerNavigationControl = new NavigationControl();
                footerNavigationControl.NavigationMode = NavigationModes.SiteMapInColumns;
                footerNavigationControl.SelectionMode = PageSelectionModes.TopLevelPages;
                footerNavigationControl.Skin = "footer";
                SampleUtilities.AddControlToTemplate(new Guid(SampleConstants.EducationTemplateId), footerNavigationControl, "footernavigation", "Navigation");
            }
        }
        private void CreateAthleticsPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AthleticsPageId), "Athletics", new Guid(SampleConstants.AcademicsPageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase athleticsBlock = new ContentBlockBase();
                athleticsBlock.Html = @"<h2>Athletics</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), athleticsBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var sport_tiuImageId = SampleUtilities.GetLocalizedImageId("sport_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Campus Sport </h3> <p>Just across the street from the Admission Office Building lies the Telerik Sports Center, the main building for our athletics and wellness programs on campus. At TSC, you&rsquo;ll find a comprehensive lineup of aquatic, fitness, sports and wellness activities. Most of these services are available at no charge to TIU students and at highly reduced rates for TIU employees, as well as alumni and their family members.Our teams are young and we work pretty hard every season to improve our results. With the help of some generous investors we were able to attract great coaches for our Basketball and American Football teams and we are thrilled to see the results at the end of this season.</p> <h3>Sport in the city</h3> <p>The city of Sofia offers a wide range of possiblities for sports enthousiasts. The most popular sports attraction&nbsp;of the city is the local soccer club ""CSKA Sofia"", which won the national championships 31 times. Those who want to get active by themselves will find a wide range of sport&nbsp; courses at&nbsp; the university's Sports Institute.</p>", sport_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.AthleticsPageId), "Uni-Sport", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase athleticsBlockDE = new ContentBlockBase();
                athleticsBlockDE.Html = @"<h2>Uni-Sport</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), athleticsBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var sport_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("sport_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" style=""float: left; margin-right: 15px; margin-bottom: 5px;"" src=""[images]{0}"" /></p> <h3>Campus-Sport </h3> <p>Nur &uuml;ber die Stra&szlig;e von der Zulassungsstelle B&uuml;rogeb&auml;ude liegt die Telerik Sports Center, das Hauptgeb&auml;ude f&uuml;r unsere Leichtathletik-und Wellness-Programme auf campus.At TSC, finden Sie eine umfassende Palette von Wasserpflanzen, Fitness-, Sport-und Wellness-Aktivit&auml;ten. Die meisten dieser Dienste sind kostenlos, um TIU Studenten und bei stark reduzierten Preise f&uuml;r TIU Mitarbeiter sowie Alumni und ihrer Familienangeh&ouml;rigen members.Our Teams verf&uuml;gbar sind jung und wir arbeiten ziemlich hart zu jeder Jahreszeit, unsere Ergebnisse zu verbessern. Mit der Hilfe einiger gro&szlig;z&uuml;giger Investoren konnten wir tolle Trainer f&uuml;r unsere Basketball und American Football-Teams zu gewinnen, und wir sind begeistert, dass die Ergebnisse am Ende dieser Saison zu sehen. </p> <h3>Sport in der Stadt</h3> <p>Die Stadt Sofia bietet ein breites Spektrum an M&ouml;glichkeiten f&uuml;r Sport-Liebhaber alter. Die beliebtesten Sportarten Attraktion der Stadt ist die &ouml;rtliche Fu&szlig;ballverein ""CSKA Sofia"", die den nationalen Meisterschaften 31 Mal gewonnen. Diejenigen, die sich von selbst aktiv werden wollen finden Sie eine breite Palette von Sport-Kurse an der Uni-Sport-Institut.</p>", sport_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.AthleticsPageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }
        private void CreateCampusMapPage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusMapPageId), "Campus map", new Guid(SampleConstants.CampusLifePageId), "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase campusMapBlock = new ContentBlockBase();
                campusMapBlock.Html = @"<h2>Campus map</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), navigationControl, "Main_Left", "Navigation", "en");

                ImageControl campusMapImage = new ImageControl();
                campusMapImage.ImageId = SampleUtilities.GetLocalizedImageId("campus", "en");
                campusMapImage.Width = 676;
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapImage, "Main_Right", "Image", "en");

                var legendHeaderLayoutControl = new LayoutControl();
                List<ColumnDetails> legendHeaderLayoutColumns = new List<ColumnDetails>();
                ColumnDetails legendHeaderLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 100,
                    PlaceholderId = "Center"
                };
                legendHeaderLayoutColumns.Add(legendHeaderLayoutColumn1);

                legendHeaderLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(legendHeaderLayoutColumns, string.Empty);
                legendHeaderLayoutControl.ID = "LegendHeader";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendHeaderLayoutControl, "Main_Right", "100%", "en");

                ContentBlock legendBlock = new ContentBlock();
                legendBlock.Html = @"<h3>Legend</h3>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendBlock, "LegendHeader_Center", "Content block", "en");

                var legendLayoutControl = new LayoutControl();
                List<ColumnDetails> legendLayoutColumns = new List<ColumnDetails>();
                ColumnDetails legendLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 33,
                    PlaceholderId = "Left33"
                };
                legendLayoutColumns.Add(legendLayoutColumn1);
                ColumnDetails legendLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 34,
                    PlaceholderId = "Middle34"
                };
                legendLayoutColumns.Add(legendLayoutColumn2);
                ColumnDetails legendLayoutColumn3 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 33,
                    PlaceholderId = "Right33"
                };
                legendLayoutColumns.Add(legendLayoutColumn3);

                legendLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(legendLayoutColumns, string.Empty);
                legendLayoutControl.ID = "Legend";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendLayoutControl, "Main_Right", "33% + 34% + 33%", "en");

                ContentBlockBase contentBlockLeft = new ContentBlockBase();
                contentBlockLeft.Html = @"1. Dorm A (Ryan Mcguire)<br /> 2. Fine Arts building<br /> 3. Computing center<br /> 4. Dorm B (Tomas Newman)";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockLeft, "Legend_Left33", "Content block", "en");

                ContentBlockBase contentBlockMiddle = new ContentBlockBase();
                contentBlockMiddle.Html = @"5. Biology faculty<br /> 6. Chemistry building<br /> 7. Dorm C (Micheal Burgess)<br /> 8. Administration center";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockMiddle, "Legend_Middle34", "Content block", "en");

                ContentBlockBase contentBlockRight = new ContentBlockBase();
                contentBlockRight.Html = @"9. Athletics facilities<br /> 10.Main Building<br /> 11.Liberal arts building<br /> 12. Dorm D (Melvin Richards)";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockRight, "Legend_Right33", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusMapPageId), "Campus-Karte", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase campusMapBlockDE = new ContentBlockBase();
                campusMapBlockDE.Html = @"<h2>Campus-Karte</h2>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageSiblings;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ImageControl campusMapImageDE = new ImageControl();
                campusMapImageDE.ImageId = SampleUtilities.GetLocalizedImageId("campus", "de");
                campusMapImageDE.Width = 676;
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), campusMapImageDE, "Main_Right", "Image", "de");

                var legendHeaderLayoutControlDE = new LayoutControl();
                List<ColumnDetails> legendHeaderLayoutColumns = new List<ColumnDetails>();
                ColumnDetails legendHeaderLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 100,
                    PlaceholderId = "Center"
                };
                legendHeaderLayoutColumns.Add(legendHeaderLayoutColumn1);

                legendHeaderLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(legendHeaderLayoutColumns, string.Empty);
                legendHeaderLayoutControlDE.ID = "LegendHeader";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendHeaderLayoutControlDE, "Main_Right", "100%", "de");

                ContentBlock legendBlockDE = new ContentBlock();
                legendBlockDE.Html = @"<h3>Legend</h3>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendBlockDE, "LegendHeader_Center", "Content block", "de");

                var legendLayoutControlDE = new LayoutControl();
                List<ColumnDetails> legendLayoutColumns = new List<ColumnDetails>();
                ColumnDetails legendLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 33,
                    PlaceholderId = "Left33"
                };
                legendLayoutColumns.Add(legendLayoutColumn1);
                ColumnDetails legendLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 34,
                    PlaceholderId = "Middle34"
                };
                legendLayoutColumns.Add(legendLayoutColumn2);
                ColumnDetails legendLayoutColumn3 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 33,
                    PlaceholderId = "Right33"
                };
                legendLayoutColumns.Add(legendLayoutColumn3);

                legendLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(legendLayoutColumns, string.Empty);
                legendLayoutControlDE.ID = "Legend";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), legendLayoutControlDE, "Main_Right", "33% + 34% + 33%", "de");

                ContentBlockBase contentBlockLeftDE = new ContentBlockBase();
                contentBlockLeftDE.Html = @"1. Dorm A (Ryan Mcguire)<br /> 2. Fine Arts building<br /> 3. Computing center<br /> 4. Dorm B (Tomas Newman)";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockLeftDE, "Legend_Left33", "Content block", "de");

                ContentBlockBase contentBlockMiddleDE = new ContentBlockBase();
                contentBlockMiddleDE.Html = @"5. Biology faculty<br /> 6. Chemistry building<br /> 7. Dorm C (Micheal Burgess)<br /> 8. Administration center";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockMiddleDE, "Legend_Middle34", "Content block", "de");

                ContentBlockBase contentBlockRightDE = new ContentBlockBase();
                contentBlockRightDE.Html = @"9. Athletics facilities<br /> 10.Main Building<br /> 11.Liberal arts building<br /> 12. Dorm D (Melvin Richards)";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusMapPageId), contentBlockRightDE, "Legend_Right33", "Content block", "de");
            }
        }
        private void CreateCampusLifePage()
        {
            var result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusLifePageId), "Campus life", "en");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), new Guid(SampleConstants.EducationTemplateId), "en");

                ContentBlockBase campusLifeBlock = new ContentBlockBase();
                campusLifeBlock.Html = @"<h1>Campus life</h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), campusLifeBlock, "content", "Content block", "en");

                var mainLayoutControl = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControl.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControl.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), mainLayoutControl, "content", "25% + 75%", "en");

                var navigationControl = new NavigationControl();
                navigationControl.NavigationMode = NavigationModes.VerticalSimple;
                navigationControl.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControl.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), navigationControl, "Main_Left", "Navigation", "en");

                ContentBlockBase contentBlock = new ContentBlockBase();
                var campuslife_tiuImageId = SampleUtilities.GetLocalizedImageId("campuslife_tiu", "en");

                contentBlock.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <h3>Ideal conditions for studying</h3> <p>Campus life is all about comfort, fun and interaction.&nbsp; We have invested in creating a &ldquo;small town&rdquo; atmosphere, where on the one hand you can find everything you need in order to live comfortably and on the other &ndash; you can easily get to know everyone around.&nbsp; </p> <p>There are many facilities, besides the educational ones, that our students can use for their everyday needs, including gyms, theater halls, shops and coffee shops, dining halls, recreation rooms, media halls and even child care facilities. </p> <p>We also very proud of our Activities Center where students can sign up for different activities, sports and hobbies or even start up their own recreational class and promote it across campus.</p>", campuslife_tiuImageId);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), contentBlock, "Main_Right", "Content block", "en");
            }

            result = SampleUtilities.CreateLocalizedPage(new Guid(SampleConstants.CampusLifePageId), "Leben auf dem Campus", "de");

            if (result)
            {
                SampleUtilities.SetTemplateToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), new Guid(SampleConstants.EducationTemplateId), "de");

                ContentBlockBase campusLifeBlockDE = new ContentBlockBase();
                campusLifeBlockDE.Html = @"<h1>Leben auf dem Campus</h1>";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), campusLifeBlockDE, "content", "Content block", "de");

                var mainLayoutControlDE = new LayoutControl();
                List<ColumnDetails> mainLayoutColumns = new List<ColumnDetails>();
                ColumnDetails mainLayoutColumn1 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 0),
                    ColumnWidthPercentage = 25,
                    PlaceholderId = "Left"
                };
                mainLayoutColumns.Add(mainLayoutColumn1);
                ColumnDetails mainLayoutColumn2 = new ColumnDetails()
                {
                    ColumnSpaces = new ColumnSpaces(0, 0, 0, 12),
                    ColumnWidthPercentage = 75,
                    PlaceholderId = "Right"
                };
                mainLayoutColumns.Add(mainLayoutColumn2);

                mainLayoutControlDE.Layout = SampleUtilities.GenerateLayoutTemplate(mainLayoutColumns, string.Empty);
                mainLayoutControlDE.ID = "Main";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), mainLayoutControlDE, "content", "25% + 75%", "de");

                var navigationControlDE = new NavigationControl();
                navigationControlDE.NavigationMode = NavigationModes.VerticalSimple;
                navigationControlDE.SelectionMode = PageSelectionModes.CurrentPageChildren;
                navigationControlDE.Skin = "left";
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), navigationControlDE, "Main_Left", "Navigation", "de");

                ContentBlockBase contentBlockDE = new ContentBlockBase();
                var campuslife_tiuImageIdDE = SampleUtilities.GetLocalizedImageId("campuslife_tiu", "de");

                contentBlockDE.Html = string.Format(@"<p><img alt="""" src=""[images]{0}"" /></p> <p>Campus Leben dreht sich alles um Komfort, Spa&szlig; und Interaktion. Sie k&ouml;nnen leicht f&uuml;r jedermann rund wissen - Wir haben bei der Schaffung einer ""Kleinstadt"" Atmosph&auml;re, wo auf der einen Seite alles, was Sie brauchen, um bequem zu leben und auf der anderen Seite finden investiert.</p> <p>Es gibt viele Einrichtungen, neben den p&auml;dagogischen sind, dass unsere Sch&uuml;ler f&uuml;r ihre t&auml;glichen Bed&uuml;rfnisse, einschlie&szlig;lich Turnhallen, Theatern, Gesch&auml;ften und Caf&eacute;s, Kantinen, Aufenthaltsr&auml;ume, Medien Hallen und Einrichtungen zur Kinderbetreuung zu verwenden.</p> <p>Wir haben auch sehr stolz auf unsere Activities Center, wo die Studenten anmelden k&ouml;nnen f&uuml;r verschiedene Aktivit&auml;ten, Sport und Hobbys oder sogar anfangen, ihre eigenen Erholungs-Klasse und f&ouml;rdern es &uuml;ber den Campus.</p>", campuslife_tiuImageIdDE);
                SampleUtilities.AddControlToLocalizedPage(new Guid(SampleConstants.CampusLifePageId), contentBlockDE, "Main_Right", "Content block", "de");
            }
        }