示例#1
0
        protected override void Initialize(DataRow schemeData)
        {
            if (schemeData != null)
            {
                this.FontName = BaseAutoFormat <Wizard> .GetStringProperty("FontName", schemeData);

                this.FontSize                  = new FontUnit(BaseAutoFormat <Wizard> .GetStringProperty("FontSize", schemeData), CultureInfo.InvariantCulture);
                this.BackColor                 = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("BackColor", schemeData));
                this.BorderColor               = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("BorderColor", schemeData));
                this.BorderWidth               = new Unit(BaseAutoFormat <Wizard> .GetStringProperty("BorderWidth", schemeData), CultureInfo.InvariantCulture);
                this.SideBarStyleBackColor     = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("SideBarStyleBackColor", schemeData));
                this.SideBarStyleVerticalAlign = (VerticalAlign)BaseAutoFormat <Wizard> .GetIntProperty("SideBarStyleVerticalAlign", schemeData);

                this.BorderStyle = (System.Web.UI.WebControls.BorderStyle) BaseAutoFormat <Wizard> .GetIntProperty("BorderStyle", schemeData);

                this.NavigationButtonStyleBorderWidth = new Unit(BaseAutoFormat <Wizard> .GetStringProperty("NavigationButtonStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
                this.NavigationButtonStyleFontName    = BaseAutoFormat <Wizard> .GetStringProperty("NavigationButtonStyleFontName", schemeData);

                this.NavigationButtonStyleFontSize    = new FontUnit(BaseAutoFormat <Wizard> .GetStringProperty("NavigationButtonStyleFontSize", schemeData), CultureInfo.InvariantCulture);
                this.NavigationButtonStyleBorderStyle = (System.Web.UI.WebControls.BorderStyle) BaseAutoFormat <Wizard> .GetIntProperty("NavigationButtonStyleBorderStyle", schemeData);

                this.NavigationButtonStyleBorderColor = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("NavigationButtonStyleBorderColor", schemeData));
                this.NavigationButtonStyleForeColor   = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("NavigationButtonStyleForeColor", schemeData));
                this.NavigationButtonStyleBackColor   = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("NavigationButtonStyleBackColor", schemeData));
                this.StepStyleBorderWidth             = new Unit(BaseAutoFormat <Wizard> .GetStringProperty("StepStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
                this.StepStyleBorderStyle             = (System.Web.UI.WebControls.BorderStyle) BaseAutoFormat <Wizard> .GetIntProperty("StepStyleBorderStyle", schemeData);

                this.StepStyleBorderColor            = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("StepStyleBorderColor", schemeData));
                this.StepStyleForeColor              = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("StepStyleForeColor", schemeData));
                this.StepStyleBackColor              = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("StepStyleBackColor", schemeData));
                this.StepStyleFontSize               = new FontUnit(BaseAutoFormat <Wizard> .GetStringProperty("StepStyleFontSize", schemeData), CultureInfo.InvariantCulture);
                this.SideBarButtonStyleFontUnderline = BaseAutoFormat <Wizard> .GetBooleanProperty("SideBarButtonStyleFontUnderline", schemeData);

                this.SideBarButtonStyleFontName = BaseAutoFormat <Wizard> .GetStringProperty("SideBarButtonStyleFontName", schemeData);

                this.SideBarButtonStyleForeColor   = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("SideBarButtonStyleForeColor", schemeData));
                this.SideBarButtonStyleBorderWidth = new Unit(BaseAutoFormat <Wizard> .GetStringProperty("SideBarButtonStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
                this.SideBarButtonStyleBackColor   = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("SideBarButtonStyleBackColor", schemeData));
                this.HeaderStyleForeColor          = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("HeaderStyleForeColor", schemeData));
                this.HeaderStyleBorderColor        = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("HeaderStyleBorderColor", schemeData));
                this.HeaderStyleBackColor          = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("HeaderStyleBackColor", schemeData));
                this.HeaderStyleFontSize           = new FontUnit(BaseAutoFormat <Wizard> .GetStringProperty("HeaderStyleFontSize", schemeData), CultureInfo.InvariantCulture);
                this.HeaderStyleFontBold           = BaseAutoFormat <Wizard> .GetBooleanProperty("HeaderStyleFontBold", schemeData);

                this.HeaderStyleBorderWidth     = new Unit(BaseAutoFormat <Wizard> .GetStringProperty("HeaderStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
                this.HeaderStyleHorizontalAlign = (HorizontalAlign)BaseAutoFormat <Wizard> .GetIntProperty("HeaderStyleHorizontalAlign", schemeData);

                this.HeaderStyleBorderStyle = (System.Web.UI.WebControls.BorderStyle) BaseAutoFormat <Wizard> .GetIntProperty("HeaderStyleBorderStyle", schemeData);

                this.SideBarStyleBackColor     = ColorTranslator.FromHtml(BaseAutoFormat <Wizard> .GetStringProperty("SideBarStyleBackColor", schemeData));
                this.SideBarStyleVerticalAlign = (VerticalAlign)BaseAutoFormat <Wizard> .GetIntProperty("SideBarStyleVerticalAlign", schemeData);

                this.SideBarStyleFontSize      = new FontUnit(BaseAutoFormat <Wizard> .GetStringProperty("SideBarStyleFontSize", schemeData), CultureInfo.InvariantCulture);
                this.SideBarStyleFontUnderline = BaseAutoFormat <Wizard> .GetBooleanProperty("SideBarStyleFontUnderline", schemeData);

                this.SideBarStyleFontStrikeout = BaseAutoFormat <Wizard> .GetBooleanProperty("SideBarStyleFontStrikeout", schemeData);

                this.SideBarStyleBorderWidth = new Unit(BaseAutoFormat <Wizard> .GetStringProperty("SideBarStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
            }
        }
        protected override void Initialize(DataRow schemeData)
        {
            if (schemeData != null)
            {
                this._fontName = BaseAutoFormat <SiteMapPath> .GetStringProperty("FontName", schemeData);

                this._fontSize      = new FontUnit(BaseAutoFormat <SiteMapPath> .GetStringProperty("FontSize", schemeData), CultureInfo.InvariantCulture);
                this._pathSeparator = BaseAutoFormat <SiteMapPath> .GetStringProperty("PathSeparator", schemeData);

                this._nodeStyleFontBold = BaseAutoFormat <SiteMapPath> .GetBooleanProperty("NodeStyleFontBold", schemeData);

                this._nodeStyleForeColor    = ColorTranslator.FromHtml(BaseAutoFormat <SiteMapPath> .GetStringProperty("NodeStyleForeColor", schemeData));
                this._rootNodeStyleFontBold = BaseAutoFormat <SiteMapPath> .GetBooleanProperty("RootNodeStyleFontBold", schemeData);

                this._rootNodeStyleForeColor     = ColorTranslator.FromHtml(BaseAutoFormat <SiteMapPath> .GetStringProperty("RootNodeStyleForeColor", schemeData));
                this._currentNodeStyleForeColor  = ColorTranslator.FromHtml(BaseAutoFormat <SiteMapPath> .GetStringProperty("CurrentNodeStyleForeColor", schemeData));
                this._pathSeparatorStyleFontBold = BaseAutoFormat <SiteMapPath> .GetBooleanProperty("PathSeparatorStyleFontBold", schemeData);

                this._pathSeparatorStyleForeColor = ColorTranslator.FromHtml(BaseAutoFormat <SiteMapPath> .GetStringProperty("PathSeparatorStyleForeColor", schemeData));
            }
        }
        protected override void Initialize(DataRow schemeData)
        {
            this.backColor = BaseAutoFormat <CreateUserWizard> .GetStringProperty("BackColor", schemeData);

            this.borderColor = BaseAutoFormat <CreateUserWizard> .GetStringProperty("BorderColor", schemeData);

            this.borderWidth = BaseAutoFormat <CreateUserWizard> .GetStringProperty("BorderWidth", schemeData);

            this.borderStyle = BaseAutoFormat <CreateUserWizard> .GetIntProperty("BorderStyle", -1, schemeData);

            this.fontSize = BaseAutoFormat <CreateUserWizard> .GetStringProperty("FontSize", schemeData);

            this.fontName = BaseAutoFormat <CreateUserWizard> .GetStringProperty("FontName", schemeData);

            this.titleTextBackColor = BaseAutoFormat <CreateUserWizard> .GetStringProperty("TitleTextBackColor", schemeData);

            this.titleTextForeColor = BaseAutoFormat <CreateUserWizard> .GetStringProperty("TitleTextForeColor", schemeData);

            this.titleTextFont = BaseAutoFormat <CreateUserWizard> .GetIntProperty("TitleTextFont", schemeData);

            this.NavigationButtonStyleBorderWidth = new Unit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("NavigationButtonStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
            this.NavigationButtonStyleFontName    = BaseAutoFormat <CreateUserWizard> .GetStringProperty("NavigationButtonStyleFontName", schemeData);

            this.NavigationButtonStyleFontSize    = new FontUnit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("NavigationButtonStyleFontSize", schemeData), CultureInfo.InvariantCulture);
            this.NavigationButtonStyleBorderStyle = (BorderStyle)BaseAutoFormat <CreateUserWizard> .GetIntProperty("NavigationButtonStyleBorderStyle", schemeData);

            this.NavigationButtonStyleBorderColor = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("NavigationButtonStyleBorderColor", schemeData));
            this.NavigationButtonStyleForeColor   = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("NavigationButtonStyleForeColor", schemeData));
            this.NavigationButtonStyleBackColor   = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("NavigationButtonStyleBackColor", schemeData));
            this.StepStyleBorderWidth             = new Unit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("StepStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
            this.StepStyleBorderStyle             = (BorderStyle)BaseAutoFormat <CreateUserWizard> .GetIntProperty("StepStyleBorderStyle", schemeData);

            this.StepStyleBorderColor            = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("StepStyleBorderColor", schemeData));
            this.StepStyleForeColor              = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("StepStyleForeColor", schemeData));
            this.StepStyleBackColor              = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("StepStyleBackColor", schemeData));
            this.StepStyleFontSize               = new FontUnit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("StepStyleFontSize", schemeData), CultureInfo.InvariantCulture);
            this.SideBarButtonStyleFontUnderline = BaseAutoFormat <CreateUserWizard> .GetBooleanProperty("SideBarButtonStyleFontUnderline", schemeData);

            this.SideBarButtonStyleFontName = BaseAutoFormat <CreateUserWizard> .GetStringProperty("SideBarButtonStyleFontName", schemeData);

            this.SideBarButtonStyleForeColor   = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("SideBarButtonStyleForeColor", schemeData));
            this.SideBarButtonStyleBorderWidth = new Unit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("SideBarButtonStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
            this.SideBarButtonStyleBackColor   = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("SideBarButtonStyleBackColor", schemeData));
            this.HeaderStyleForeColor          = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("HeaderStyleForeColor", schemeData));
            this.HeaderStyleBorderColor        = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("HeaderStyleBorderColor", schemeData));
            this.HeaderStyleBackColor          = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("HeaderStyleBackColor", schemeData));
            this.HeaderStyleFontSize           = new FontUnit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("HeaderStyleFontSize", schemeData), CultureInfo.InvariantCulture);
            this.HeaderStyleFontBold           = BaseAutoFormat <CreateUserWizard> .GetBooleanProperty("HeaderStyleFontBold", schemeData);

            this.HeaderStyleBorderWidth     = new Unit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("HeaderStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
            this.HeaderStyleHorizontalAlign = (HorizontalAlign)BaseAutoFormat <CreateUserWizard> .GetIntProperty("HeaderStyleHorizontalAlign", schemeData);

            this.HeaderStyleBorderStyle = (BorderStyle)BaseAutoFormat <CreateUserWizard> .GetIntProperty("HeaderStyleBorderStyle", schemeData);

            this.SideBarStyleBackColor     = ColorTranslator.FromHtml(BaseAutoFormat <CreateUserWizard> .GetStringProperty("SideBarStyleBackColor", schemeData));
            this.SideBarStyleVerticalAlign = (VerticalAlign)BaseAutoFormat <CreateUserWizard> .GetIntProperty("SideBarStyleVerticalAlign", schemeData);

            this.SideBarStyleFontSize      = new FontUnit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("SideBarStyleFontSize", schemeData), CultureInfo.InvariantCulture);
            this.SideBarStyleFontUnderline = BaseAutoFormat <CreateUserWizard> .GetBooleanProperty("SideBarStyleFontUnderline", schemeData);

            this.SideBarStyleFontStrikeout = BaseAutoFormat <CreateUserWizard> .GetBooleanProperty("SideBarStyleFontStrikeout", schemeData);

            this.SideBarStyleBorderWidth = new Unit(BaseAutoFormat <CreateUserWizard> .GetStringProperty("SideBarStyleBorderWidth", schemeData), CultureInfo.InvariantCulture);
        }