Exemple #1
0
        //----------------------------------------------------------------------------------------------------
        public void GetSiteNav_Return(AjaxResponse ajaxResponse)
        {
            if (UI.Errors.ExceptionHandler.Check(ajaxResponse))
            {
                return;
            }

            this.Model = ajaxResponse.ReturnObj.As <NavSiteInfo>();
            this.Set_IsOpens_FromLocalStorage();

            if (this.Model.IsInDemoMode)
            {
                J(".TopBarHolder .LogoLink").html("ASPdatabase.NET <span style='font-size: .6em;'> ... (Click Here to Learn More)</span>");
            }

            var holder = jF2(".DatabaseBoxesHolder");

            holder.html("");
            for (int i = 0; i < this.Model.Databases.Length; i++)
            {
                var databaseBox = new DatabaseBox();
                databaseBox.Model = this.Model.Databases[i];
                databaseBox.Instantiate();
                databaseBox.OnChange.After.AddHandler(this, "DatabaseBox_OnChange", 0);
                holder.append(databaseBox.jRoot);
            }
            jRoot.show();
            this.CheckLocalStorage_Scroll();
        }
Exemple #2
0
        //-------------------------------------------------------------------------------------- CSS & HTML --
        public new static string GetCssTree()
        {
            string rtn = "";

            rtn += GetCssRoot();
            rtn += DatabaseBox.GetCssTree();
            rtn += SectionBox.GetCssTree();
            return(rtn);
        }