Example #1
0
        private void __BindData()
        {
            HtmlBlockItem[] itemArray;
            string          str;
            StringBuilder   builder;
            StringBuilder   builder2;
            StringBuilder   builder3;
            int             num;
            bool            flag;
            int             num2;

            itemArray = HtmlBlockItem.ListByUserId(0, this.nUserId);
            if (((itemArray == null) ? 0 : ((((int)itemArray.Length) < 1) == 0)) != null)
            {
                goto Label_0029;
            }
            goto Label_0274;
Label_0029:
            this.tr1.Visible = 0;
            this.tr2.Visible = 0;
            this.tr3.Visible = 0;
            if (((PortalSettings.get_HomeMode() == 3) == 0) != null)
            {
                goto Label_013A;
            }
            this.tr3.Visible = 1;
            str      = "";
            builder  = new StringBuilder();
            builder2 = new StringBuilder();
            builder3 = new StringBuilder();
            num      = 0;
            goto Label_00F0;
Label_0090:
            str = this.__FormatBlock(num, itemArray[num]);
            switch ((itemArray[num].ColumnNo - 1))
            {
            case 0:
                goto Label_00C0;

            case 1:
                goto Label_00CA;

            case 2:
                goto Label_00D4;
            }
            goto Label_00DF;
Label_00C0:
            builder.Append(str);
            goto Label_00E9;
Label_00CA:
            builder2.Append(str);
            goto Label_00E9;
Label_00D4:
            builder3.Append(str);
            goto Label_00E9;
Label_00DF:
            builder2.Append(str);
Label_00E9:
            num += 1;
Label_00F0:
            if ((num < ((int)itemArray.Length)) != null)
            {
                goto Label_0090;
            }
            this.ltLeft.Text   = builder.ToString();
            this.ltCenter.Text = builder2.ToString();
            this.ltRight.Text  = builder3.ToString();
            goto Label_0274;
Label_013A:
            if (((PortalSettings.get_HomeMode() == 2) == 0) != null)
            {
                goto Label_0200;
            }
            this.tr2.Visible = 1;
            str      = "";
            builder  = new StringBuilder();
            builder3 = new StringBuilder();
            num      = 0;
            goto Label_01CB;
Label_0174:
            str = this.__FormatBlock(num, itemArray[num]);
            switch ((itemArray[num].ColumnNo - 1))
            {
            case 0:
                goto Label_01A4;

            case 1:
                goto Label_01B9;

            case 2:
                goto Label_01AE;
            }
            goto Label_01B9;
Label_01A4:
            builder.Append(str);
            goto Label_01C4;
Label_01AE:
            builder3.Append(str);
            goto Label_01C4;
Label_01B9:
            builder3.Append(str);
Label_01C4:
            num += 1;
Label_01CB:
            if ((num < ((int)itemArray.Length)) != null)
            {
                goto Label_0174;
            }
            this.ltLeft2.Text  = builder.ToString();
            this.ltRight2.Text = builder3.ToString();
            goto Label_0274;
Label_0200:
            if (((PortalSettings.get_HomeMode() == 1) == 0) != null)
            {
                goto Label_0274;
            }
            this.tr1.Visible = 1;
            str      = "";
            builder  = new StringBuilder();
            builder3 = new StringBuilder();
            num      = 0;
            goto Label_0254;
Label_0237:
            str = this.__FormatBlock(num, itemArray[num]);
            builder.Append(str);
            num += 1;
Label_0254:
            if ((num < ((int)itemArray.Length)) != null)
            {
                goto Label_0237;
            }
            this.ltLeft1.Text = builder.ToString();
Label_0274:
            return;
        }