private void ApplyStyle() { if (this.CommandRenderMode == SortingCommandRenderMode.Button) { if (_commandStyle != null) { _btnAdd.ApplyStyle(CommandStyle); _btnDelete.ApplyStyle(CommandStyle); _btnUp.ApplyStyle(CommandStyle); _btnDown.ApplyStyle(CommandStyle); _btnClear.ApplyStyle(CommandStyle); _btnOK.ApplyStyle(CommandStyle); } } else if (this.CommandRenderMode == SortingCommandRenderMode.ImageButton) { _imgBtnAdd.ApplyStyle(CommandStyle); _imgBtnDelete.ApplyStyle(CommandStyle); _imgBtnUp.ApplyStyle(CommandStyle); _imgBtnDown.ApplyStyle(CommandStyle); _imgBtnOK.ApplyStyle(CommandStyle); } if (this.SetSortingFieldsRenderMode == SortingSetSortingFieldsRenderMode.ListBox) { _lstBoxSetSortingFields.ApplyStyle(SetSortingFieldsStyle); } else if (this.SetSortingFieldsRenderMode == SortingSetSortingFieldsRenderMode.RadioButtonList) { _rdoBtnLstSetSortingFields.ApplyStyle(SetSortingFieldsStyle); } if (_sortingFieldsStyle != null) { _ddlstSortingFields.ApplyStyle(_sortingFieldsStyle); } if (_sortDirectionStyle != null) { _rdoBtnLstSortDirection.ApplyStyle(_sortDirectionStyle); } }