protected void Page_Load(object sender, EventArgs e)
        {
            OpPriceSelect   ohs = new OpPriceSelect();
            OperationResult obj = OperationManager.Singleton.executeOperation(ohs);

            if ((obj == null) || (!obj.Status))
            {
                return;
            }
            else
            {
                DbItem[]  items  = obj.DbItems;
                PriceDb[] prices = items.Cast <PriceDb>().ToArray();

                price.InnerHtml += "<h1>" + prices[0].Title + "</h1><p>" + prices[0].Text + "</p>";
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] == null || Session["function"] == null)
            {
                Response.Redirect("~/Index.aspx");
            }

            Panel1.Visible = false;
            Panel2.Visible = false;
            Panel3.Visible = false;
            Panel4.Visible = false;
            Panel5.Visible = false;
            Panel6.Visible = false;
            Panel7.Visible = false;
            OpUserSelect    ous = new OpUserSelect();
            OperationResult obj = OperationManager.Singleton.executeOperation(ous);

            if ((obj == null) || (!obj.Status))
            {
                return;
            }
            else
            {
                DbItem[] items = obj.DbItems;
                UserDb[] users = items.Cast <UserDb>().ToArray();


                GridView1.DataSource = obj.DbItems;
                GridView1.DataBind();
            }
            OpContactSelect ocs  = new OpContactSelect();
            OperationResult obj2 = OperationManager.Singleton.executeOperation(ocs);

            if ((obj2 == null) || (!obj2.Status))
            {
                return;
            }
            else
            {
                DbItem[]    items    = obj2.DbItems;
                ContactDb[] contacts = items.Cast <ContactDb>().ToArray();


                GridView2.DataSource = obj2.DbItems;
                GridView2.DataBind();
            }
            OpGallerySelect ogs  = new OpGallerySelect();
            OperationResult obj3 = OperationManager.Singleton.executeOperation(ogs);

            if ((obj3 == null) || (!obj3.Status))
            {
                return;
            }
            else
            {
                DbItem[]    items     = obj3.DbItems;
                GalleryDb[] galleries = items.Cast <GalleryDb>().ToArray();


                GridView3.DataSource = obj3.DbItems;
                GridView3.DataBind();
            }
            OpAboutSelect   oas  = new OpAboutSelect();
            OperationResult obj4 = OperationManager.Singleton.executeOperation(oas);

            if ((obj4 == null) || (!obj4.Status))
            {
                return;
            }
            else
            {
                DbItem[]  items  = obj4.DbItems;
                AboutDb[] abouts = items.Cast <AboutDb>().ToArray();


                GridView4.DataSource = obj4.DbItems;
                GridView4.DataBind();
            }
            OpHomeSelect    ohs  = new OpHomeSelect();
            OperationResult obj5 = OperationManager.Singleton.executeOperation(ohs);

            if ((obj5 == null) || (!obj5.Status))
            {
                return;
            }
            else
            {
                DbItem[] items = obj5.DbItems;
                HomeDb[] homes = items.Cast <HomeDb>().ToArray();


                GridView5.DataSource = obj5.DbItems;
                GridView5.DataBind();
            }
            OpHistorySelect ohis = new OpHistorySelect();
            OperationResult obj6 = OperationManager.Singleton.executeOperation(ohis);

            if ((obj6 == null) || (!obj6.Status))
            {
                return;
            }
            else
            {
                DbItem[]    items     = obj6.DbItems;
                HistoryDb[] histories = items.Cast <HistoryDb>().ToArray();


                GridView6.DataSource = obj6.DbItems;
                GridView6.DataBind();
            }
            OpPriceSelect   ops  = new OpPriceSelect();
            OperationResult obj7 = OperationManager.Singleton.executeOperation(ops);

            if ((obj7 == null) || (!obj7.Status))
            {
                return;
            }
            else
            {
                DbItem[]  items  = obj7.DbItems;
                PriceDb[] prices = items.Cast <PriceDb>().ToArray();


                GridView7.DataSource = obj7.DbItems;
                GridView7.DataBind();
            }
            OpModernDaySelect omds = new OpModernDaySelect();
            OperationResult   obj8 = OperationManager.Singleton.executeOperation(omds);

            if ((obj8 == null) || (!obj8.Status))
            {
                return;
            }
            else
            {
                DbItem[]      items   = obj8.DbItems;
                ModernDayDb[] moderns = items.Cast <ModernDayDb>().ToArray();

                GridView8.DataSource = obj8.DbItems;
                GridView8.DataBind();
            }
        }