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) { this.foreColor = BaseAutoFormat <FormView> .GetStringProperty("ForeColor", schemeData); this.backColor = BaseAutoFormat <FormView> .GetStringProperty("BackColor", schemeData); this.borderColor = BaseAutoFormat <FormView> .GetStringProperty("BorderColor", schemeData); this.borderWidth = BaseAutoFormat <FormView> .GetStringProperty("BorderWidth", schemeData); this.borderStyle = BaseAutoFormat <FormView> .GetIntProperty("BorderStyle", -1, schemeData); this.cellSpacing = BaseAutoFormat <FormView> .GetIntProperty("CellSpacing", schemeData); this.cellPadding = BaseAutoFormat <FormView> .GetIntProperty("CellPadding", -1, schemeData); this.gridLines = BaseAutoFormat <FormView> .GetIntProperty("GridLines", -1, schemeData); this.rowForeColor = BaseAutoFormat <FormView> .GetStringProperty("RowForeColor", schemeData); this.rowBackColor = BaseAutoFormat <FormView> .GetStringProperty("RowBackColor", schemeData); this.itemFont = BaseAutoFormat <FormView> .GetIntProperty("RowFont", schemeData); this.editRowForeColor = BaseAutoFormat <FormView> .GetStringProperty("EditRowForeColor", schemeData); this.editRowBackColor = BaseAutoFormat <FormView> .GetStringProperty("EditRowBackColor", schemeData); this.editRowFont = BaseAutoFormat <FormView> .GetIntProperty("EditRowFont", schemeData); this.headerForeColor = BaseAutoFormat <FormView> .GetStringProperty("HeaderForeColor", schemeData); this.headerBackColor = BaseAutoFormat <FormView> .GetStringProperty("HeaderBackColor", schemeData); this.headerFont = BaseAutoFormat <FormView> .GetIntProperty("HeaderFont", schemeData); this.footerForeColor = BaseAutoFormat <FormView> .GetStringProperty("FooterForeColor", schemeData); this.footerBackColor = BaseAutoFormat <FormView> .GetStringProperty("FooterBackColor", schemeData); this.footerFont = BaseAutoFormat <FormView> .GetIntProperty("FooterFont", schemeData); this.pagerForeColor = BaseAutoFormat <FormView> .GetStringProperty("PagerForeColor", schemeData); this.pagerBackColor = BaseAutoFormat <FormView> .GetStringProperty("PagerBackColor", schemeData); this.pagerFont = BaseAutoFormat <FormView> .GetIntProperty("PagerFont", schemeData); this.pagerAlign = BaseAutoFormat <FormView> .GetIntProperty("PagerAlign", schemeData); this.pagerButtons = BaseAutoFormat <FormView> .GetIntProperty("PagerButtons", 1, schemeData); this.renderOuterTable = BaseAutoFormat <FormView> .GetStringProperty("RenderOuterTable", schemeData); }
protected override void Initialize(DataRow schemeData) { this._backColor = BaseAutoFormat <ChangePassword> .GetStringProperty("BackColor", schemeData); this._borderColor = BaseAutoFormat <ChangePassword> .GetStringProperty("BorderColor", schemeData); this._borderWidth = BaseAutoFormat <ChangePassword> .GetStringProperty("BorderWidth", schemeData); this._borderStyle = BaseAutoFormat <ChangePassword> .GetIntProperty("BorderStyle", -1, schemeData); this._fontSize = BaseAutoFormat <ChangePassword> .GetStringProperty("FontSize", schemeData); this._fontName = BaseAutoFormat <ChangePassword> .GetStringProperty("FontName", schemeData); this._titleTextBackColor = BaseAutoFormat <ChangePassword> .GetStringProperty("TitleTextBackColor", schemeData); this._titleTextForeColor = BaseAutoFormat <ChangePassword> .GetStringProperty("TitleTextForeColor", schemeData); this._titleTextFont = BaseAutoFormat <ChangePassword> .GetIntProperty("TitleTextFont", schemeData); this._titleTextFontSize = BaseAutoFormat <ChangePassword> .GetStringProperty("TitleTextFontSize", schemeData); this._instructionTextForeColor = BaseAutoFormat <ChangePassword> .GetStringProperty("InstructionTextForeColor", schemeData); this._instructionTextFont = BaseAutoFormat <ChangePassword> .GetIntProperty("InstructionTextFont", schemeData); this._borderPadding = BaseAutoFormat <ChangePassword> .GetIntProperty("BorderPadding", 1, schemeData); this._textboxFontSize = BaseAutoFormat <ChangePassword> .GetStringProperty("TextboxFontSize", schemeData); this._buttonBackColor = BaseAutoFormat <ChangePassword> .GetStringProperty("ButtonBackColor", schemeData); this._buttonForeColor = BaseAutoFormat <ChangePassword> .GetStringProperty("ButtonForeColor", schemeData); this._buttonFontSize = BaseAutoFormat <ChangePassword> .GetStringProperty("ButtonFontSize", schemeData); this._buttonFontName = BaseAutoFormat <ChangePassword> .GetStringProperty("ButtonFontName", schemeData); this._buttonBorderColor = BaseAutoFormat <ChangePassword> .GetStringProperty("ButtonBorderColor", schemeData); this._buttonBorderWidth = BaseAutoFormat <ChangePassword> .GetStringProperty("ButtonBorderWidth", schemeData); this._buttonBorderStyle = BaseAutoFormat <ChangePassword> .GetIntProperty("ButtonBorderStyle", -1, schemeData); this._passwordHintForeColor = BaseAutoFormat <ChangePassword> .GetStringProperty("PasswordHintForeColor", schemeData); this._passwordHintFont = BaseAutoFormat <ChangePassword> .GetIntProperty("PasswordHintFont", schemeData); this._renderOuterTable = BaseAutoFormat <ChangePassword> .GetStringProperty("RenderOuterTable", schemeData); }
protected override void Initialize(DataRow schemeData) { this.backColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("BackColor", schemeData); this.borderColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("BorderColor", schemeData); this.borderWidth = BaseAutoFormat <PasswordRecovery> .GetStringProperty("BorderWidth", schemeData); this.borderStyle = BaseAutoFormat <PasswordRecovery> .GetIntProperty("BorderStyle", -1, schemeData); this.fontSize = BaseAutoFormat <PasswordRecovery> .GetStringProperty("FontSize", schemeData); this.fontName = BaseAutoFormat <PasswordRecovery> .GetStringProperty("FontName", schemeData); this.titleTextBackColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("TitleTextBackColor", schemeData); this.titleTextForeColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("TitleTextForeColor", schemeData); this.titleTextFont = BaseAutoFormat <PasswordRecovery> .GetIntProperty("TitleTextFont", schemeData); this.titleTextFontSize = BaseAutoFormat <PasswordRecovery> .GetStringProperty("TitleTextFontSize", schemeData); this.instructionTextForeColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("InstructionTextForeColor", schemeData); this.instructionTextFont = BaseAutoFormat <PasswordRecovery> .GetIntProperty("InstructionTextFont", schemeData); this.borderPadding = BaseAutoFormat <PasswordRecovery> .GetIntProperty("BorderPadding", 1, schemeData); this.textboxFontSize = BaseAutoFormat <PasswordRecovery> .GetStringProperty("TextboxFontSize", schemeData); this.submitButtonBackColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("SubmitButtonBackColor", schemeData); this.submitButtonForeColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("SubmitButtonForeColor", schemeData); this.submitButtonFontSize = BaseAutoFormat <PasswordRecovery> .GetStringProperty("SubmitButtonFontSize", schemeData); this.submitButtonFontName = BaseAutoFormat <PasswordRecovery> .GetStringProperty("SubmitButtonFontName", schemeData); this.submitButtonBorderColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("SubmitButtonBorderColor", schemeData); this.submitButtonBorderWidth = BaseAutoFormat <PasswordRecovery> .GetStringProperty("SubmitButtonBorderWidth", schemeData); this.submitButtonBorderStyle = BaseAutoFormat <PasswordRecovery> .GetIntProperty("SubmitButtonBorderStyle", -1, schemeData); this.successTextForeColor = BaseAutoFormat <PasswordRecovery> .GetStringProperty("SuccessTextForeColor", schemeData); this.successTextFont = BaseAutoFormat <PasswordRecovery> .GetIntProperty("SuccessTextFont", schemeData); this.renderOuterTable = BaseAutoFormat <PasswordRecovery> .GetStringProperty("RenderOuterTable", schemeData); }
protected override void Initialize(DataRow schemeData) { this.foreColor = BaseAutoFormat <DataList> .GetStringProperty("ForeColor", schemeData); this.backColor = BaseAutoFormat <DataList> .GetStringProperty("BackColor", schemeData); this.borderColor = BaseAutoFormat <DataList> .GetStringProperty("BorderColor", schemeData); this.borderWidth = BaseAutoFormat <DataList> .GetStringProperty("BorderWidth", schemeData); this.borderStyle = BaseAutoFormat <DataList> .GetIntProperty("BorderStyle", -1, schemeData); this.cellSpacing = BaseAutoFormat <DataList> .GetIntProperty("CellSpacing", schemeData); this.cellPadding = BaseAutoFormat <DataList> .GetIntProperty("CellPadding", -1, schemeData); this.gridLines = BaseAutoFormat <DataList> .GetIntProperty("GridLines", -1, schemeData); this.itemForeColor = BaseAutoFormat <DataList> .GetStringProperty("ItemForeColor", schemeData); this.itemBackColor = BaseAutoFormat <DataList> .GetStringProperty("ItemBackColor", schemeData); this.itemFont = BaseAutoFormat <DataList> .GetIntProperty("ItemFont", schemeData); this.alternatingItemForeColor = BaseAutoFormat <DataList> .GetStringProperty("AltItemForeColor", schemeData); this.alternatingItemBackColor = BaseAutoFormat <DataList> .GetStringProperty("AltItemBackColor", schemeData); this.alternatingItemFont = BaseAutoFormat <DataList> .GetIntProperty("AltItemFont", schemeData); this.selectedItemForeColor = BaseAutoFormat <DataList> .GetStringProperty("SelItemForeColor", schemeData); this.selectedItemBackColor = BaseAutoFormat <DataList> .GetStringProperty("SelItemBackColor", schemeData); this.selectedItemFont = BaseAutoFormat <DataList> .GetIntProperty("SelItemFont", schemeData); this.headerForeColor = BaseAutoFormat <DataList> .GetStringProperty("HeaderForeColor", schemeData); this.headerBackColor = BaseAutoFormat <DataList> .GetStringProperty("HeaderBackColor", schemeData); this.headerFont = BaseAutoFormat <DataList> .GetIntProperty("HeaderFont", schemeData); this.footerForeColor = BaseAutoFormat <DataList> .GetStringProperty("FooterForeColor", schemeData); this.footerBackColor = BaseAutoFormat <DataList> .GetStringProperty("FooterBackColor", schemeData); this.footerFont = BaseAutoFormat <DataList> .GetIntProperty("FooterFont", schemeData); }
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.foreColor = BaseAutoFormat <GridView> .GetStringProperty("ForeColor", schemeData); this.backColor = BaseAutoFormat <GridView> .GetStringProperty("BackColor", schemeData); this.borderColor = BaseAutoFormat <GridView> .GetStringProperty("BorderColor", schemeData); this.borderWidth = BaseAutoFormat <GridView> .GetStringProperty("BorderWidth", schemeData); this.borderStyle = BaseAutoFormat <GridView> .GetIntProperty("BorderStyle", -1, schemeData); this.cellSpacing = BaseAutoFormat <GridView> .GetIntProperty("CellSpacing", schemeData); this.cellPadding = BaseAutoFormat <GridView> .GetIntProperty("CellPadding", -1, schemeData); this.gridLines = BaseAutoFormat <GridView> .GetIntProperty("GridLines", -1, schemeData); this.itemForeColor = BaseAutoFormat <GridView> .GetStringProperty("ItemForeColor", schemeData); this.itemBackColor = BaseAutoFormat <GridView> .GetStringProperty("ItemBackColor", schemeData); this.itemFont = BaseAutoFormat <GridView> .GetIntProperty("ItemFont", schemeData); this.alternatingItemForeColor = BaseAutoFormat <GridView> .GetStringProperty("AltItemForeColor", schemeData); this.alternatingItemBackColor = BaseAutoFormat <GridView> .GetStringProperty("AltItemBackColor", schemeData); this.alternatingItemFont = BaseAutoFormat <GridView> .GetIntProperty("AltItemFont", schemeData); this.selectedItemForeColor = BaseAutoFormat <GridView> .GetStringProperty("SelItemForeColor", schemeData); this.selectedItemBackColor = BaseAutoFormat <GridView> .GetStringProperty("SelItemBackColor", schemeData); this.selectedItemFont = BaseAutoFormat <GridView> .GetIntProperty("SelItemFont", schemeData); this.headerForeColor = BaseAutoFormat <GridView> .GetStringProperty("HeaderForeColor", schemeData); this.headerBackColor = BaseAutoFormat <GridView> .GetStringProperty("HeaderBackColor", schemeData); this.headerFont = BaseAutoFormat <GridView> .GetIntProperty("HeaderFont", schemeData); this.footerForeColor = BaseAutoFormat <GridView> .GetStringProperty("FooterForeColor", schemeData); this.footerBackColor = BaseAutoFormat <GridView> .GetStringProperty("FooterBackColor", schemeData); this.footerFont = BaseAutoFormat <GridView> .GetIntProperty("FooterFont", schemeData); this.pagerForeColor = BaseAutoFormat <GridView> .GetStringProperty("PagerForeColor", schemeData); this.pagerBackColor = BaseAutoFormat <GridView> .GetStringProperty("PagerBackColor", schemeData); this.pagerFont = BaseAutoFormat <GridView> .GetIntProperty("PagerFont", schemeData); this.pagerAlign = BaseAutoFormat <GridView> .GetIntProperty("PagerAlign", schemeData); this.pagerButtons = BaseAutoFormat <GridView> .GetIntProperty("PagerButtons", 1, schemeData); this.editItemForeColor = BaseAutoFormat <GridView> .GetStringProperty("EditItemForeColor", schemeData); this.editItemBackColor = BaseAutoFormat <GridView> .GetStringProperty("EditItemBackColor", schemeData); this.editItemFont = BaseAutoFormat <GridView> .GetIntProperty("EditItemFont", schemeData); this.sortedAscendingCellBackColor = BaseAutoFormat <GridView> .GetStringProperty("SortedAscendingCellBackColor", schemeData); this.sortedDescendingCellBackColor = BaseAutoFormat <GridView> .GetStringProperty("SortedDescendingCellBackColor", schemeData); this.sortedAscendingHeaderBackColor = BaseAutoFormat <GridView> .GetStringProperty("SortedAscendingHeaderBackColor", schemeData); this.sortedDescendingHeaderBackColor = BaseAutoFormat <GridView> .GetStringProperty("SortedDescendingHeaderBackColor", schemeData); }
protected override void Initialize(DataRow schemeData) { if (schemeData != null) { this.Width = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("Width", schemeData), CultureInfo.InvariantCulture); this.Height = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("Height", schemeData), CultureInfo.InvariantCulture); this.FontName = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("FontName", schemeData); this.FontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("FontSize", schemeData), CultureInfo.InvariantCulture); this.ForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("ForeColor", schemeData)); this.BackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("BackColor", schemeData)); this.BorderColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("BorderColor", schemeData)); this.BorderWidth = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("BorderWidth", schemeData), CultureInfo.InvariantCulture); this.BorderStyle = (System.Web.UI.WebControls.BorderStyle)Enum.Parse(typeof(System.Web.UI.WebControls.BorderStyle), BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("BorderStyle", schemeData, "NotSet")); this.ShowGridLines = bool.Parse(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("ShowGridLines", schemeData, "false")); this.CellPadding = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("CellPadding", schemeData, 2); this.CellSpacing = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("CellSpacing", schemeData); this.DayNameFormat = (System.Web.UI.WebControls.DayNameFormat)Enum.Parse(typeof(System.Web.UI.WebControls.DayNameFormat), BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayNameFormat", schemeData, "Short")); this.NextPrevBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("NextPrevBackColor", schemeData)); this.NextPrevFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("NextPrevFont", schemeData); this.NextPrevFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("NextPrevFontSize", schemeData), CultureInfo.InvariantCulture); this.NextPrevForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("NextPrevForeColor", schemeData)); this.NextPrevFormat = (System.Web.UI.WebControls.NextPrevFormat)Enum.Parse(typeof(System.Web.UI.WebControls.NextPrevFormat), BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("NextPrevFormat", schemeData, "CustomText")); this.NextPrevVerticalAlign = (VerticalAlign)Enum.Parse(typeof(VerticalAlign), BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("NextPrevVerticalAlign", schemeData, "NotSet")); this.TitleFormat = (System.Web.UI.WebControls.TitleFormat)Enum.Parse(typeof(System.Web.UI.WebControls.TitleFormat), BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TitleFormat", schemeData, "MonthYear")); this.TitleBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TitleBackColor", schemeData)); this.TitleBorderColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TitleBorderColor", schemeData)); this.TitleBorderStyle = (System.Web.UI.WebControls.BorderStyle)Enum.Parse(typeof(System.Web.UI.WebControls.BorderStyle), BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("BorderStyle", schemeData, "NotSet")); this.TitleBorderWidth = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TitleBorderWidth", schemeData), CultureInfo.InvariantCulture); this.TitleFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("TitleFont", schemeData); this.TitleFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TitleFontSize", schemeData), CultureInfo.InvariantCulture); this.TitleForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TitleForeColor", schemeData)); this.TitleHeight = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TitleHeight", schemeData), CultureInfo.InvariantCulture); this.DayBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayBackColor", schemeData)); this.DayFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("DayFont", schemeData); this.DayFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayFontSize", schemeData), CultureInfo.InvariantCulture); this.DayForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayForeColor", schemeData)); this.DayWidth = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayWidth", schemeData), CultureInfo.InvariantCulture); this.DayHeaderBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayHeaderBackColor", schemeData)); this.DayHeaderFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("DayHeaderFont", schemeData); this.DayHeaderFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayHeaderFontSize", schemeData), CultureInfo.InvariantCulture); this.DayHeaderForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayHeaderForeColor", schemeData)); this.DayHeaderHeight = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("DayHeaderHeight", schemeData), CultureInfo.InvariantCulture); this.TodayDayBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TodayDayBackColor", schemeData)); this.TodayDayFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("TodayDayFont", schemeData); this.TodayDayFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TodayDayFontSize", schemeData), CultureInfo.InvariantCulture); this.TodayDayForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("TodayDayForeColor", schemeData)); this.SelectedDayBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectedDayBackColor", schemeData)); this.SelectedDayFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("SelectedDayFont", schemeData); this.SelectedDayFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectedDayFontSize", schemeData), CultureInfo.InvariantCulture); this.SelectedDayForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectedDayForeColor", schemeData)); this.OtherMonthDayBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("OtherMonthDayBackColor", schemeData)); this.OtherMonthDayFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("OtherMonthDayFont", schemeData); this.OtherMonthDayFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("OtherMonthDayFontSize", schemeData), CultureInfo.InvariantCulture); this.OtherMonthDayForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("OtherMonthDayForeColor", schemeData)); this.WeekendDayBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("WeekendDayBackColor", schemeData)); this.WeekendDayFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("WeekendDayFont", schemeData); this.WeekendDayFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("WeekendDayFontSize", schemeData), CultureInfo.InvariantCulture); this.WeekendDayForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("WeekendDayForeColor", schemeData)); this.SelectorBackColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectorBackColor", schemeData)); this.SelectorFont = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetIntProperty("SelectorFont", schemeData); this.SelectorFontName = BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectorFontName", schemeData); this.SelectorFontSize = new FontUnit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectorFontSize", schemeData), CultureInfo.InvariantCulture); this.SelectorForeColor = ColorTranslator.FromHtml(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectorForeColor", schemeData)); this.SelectorWidth = new Unit(BaseAutoFormat <System.Web.UI.WebControls.Calendar> .GetStringProperty("SelectorWidth", schemeData), CultureInfo.InvariantCulture); } }
protected static string GetStringProperty(string propertyTag, DataRow schemeData) { return(BaseAutoFormat <T> .GetStringProperty(propertyTag, schemeData, string.Empty)); }
protected static int GetIntProperty(string propertyTag, int defaultValue, DataRow schemeData) { return(BaseAutoFormat <T> .GetIntProperty(propertyTag, schemeData, defaultValue)); }
protected static int GetIntProperty(string propertyTag, DataRow schemeData) { return(BaseAutoFormat <T> .GetIntProperty(propertyTag, schemeData, 0)); }
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); }