public DataGridTableStyle(bool isDefaultTableStyle) { is_default = isDefaultTableStyle; allow_sorting = true; datagrid = null; header_forecolor = def_header_forecolor; mapping_name = string.Empty; table_relations = new ArrayList(); column_styles = new GridColumnStylesCollection(this); alternating_backcolor = def_alternating_backcolor; columnheaders_visible = true; gridline_color = def_gridline_color; gridline_style = DataGridLineStyle.Solid; header_backcolor = def_header_backcolor; header_font = null; link_color = def_link_color; link_hovercolor = def_link_hovercolor; preferredcolumn_width = ThemeEngine.Current.DataGridPreferredColumnWidth; preferredrow_height = ThemeEngine.Current.DefaultFont.Height + 3; _readonly = false; rowheaders_visible = true; selection_backcolor = def_selection_backcolor; selection_forecolor = def_selection_forecolor; rowheaders_width = 35; backcolor = def_backcolor; forecolor = def_forecolor; }
public DataGridTableStyle() { this.allowSorting = true; this.alternatingBackColor = System.Drawing.Color.Gold; this.backColor = System.Drawing.Color.White; this.gridLineColor = Color.Red; this.gridLineStyle = System.Windows.Forms.DataGridLineStyle.Solid; this.headerBackColor = System.Drawing.Color.AntiqueWhite; }
public DataGridTableStyle (bool isDefaultTableStyle) { is_default = isDefaultTableStyle; allow_sorting = true; datagrid = null; header_forecolor = def_header_forecolor; mapping_name = string.Empty; table_relations = new ArrayList (); column_styles = new GridColumnStylesCollection (this); alternating_backcolor = def_alternating_backcolor; columnheaders_visible = true; gridline_color = def_gridline_color; gridline_style = DataGridLineStyle.Solid; header_backcolor = def_header_backcolor; header_font = null; link_color = def_link_color; link_hovercolor = def_link_hovercolor; preferredcolumn_width = ThemeEngine.Current.DataGridPreferredColumnWidth; preferredrow_height = ThemeEngine.Current.DefaultFont.Height + 3; _readonly = false; rowheaders_visible = true; selection_backcolor = def_selection_backcolor; selection_forecolor = def_selection_forecolor; rowheaders_width = 35; backcolor = def_backcolor; forecolor = def_forecolor; }
public DataGridTableStyle(bool isDefaultTableStyle) { this.relationshipRect = Rectangle.Empty; this.focusedRelation = -1; this.relationsList = new ArrayList(2); this.mappingName = ""; this.allowSorting = true; this.alternatingBackBrush = DefaultAlternatingBackBrush; this.backBrush = DefaultBackBrush; this.foreBrush = DefaultForeBrush; this.gridLineBrush = DefaultGridLineBrush; this.gridLineStyle = DataGridLineStyle.Solid; this.headerBackBrush = DefaultHeaderBackBrush; this.headerForeBrush = DefaultHeaderForeBrush; this.headerForePen = DefaultHeaderForePen; this.linkBrush = DefaultLinkBrush; this.preferredColumnWidth = 0x4b; this.prefferedRowHeight = defaultFontHeight + 3; this.selectionBackBrush = DefaultSelectionBackBrush; this.selectionForeBrush = DefaultSelectionForeBrush; this.rowHeaderWidth = 0x23; this.rowHeadersVisible = true; this.columnHeadersVisible = true; this.gridColumns = new GridColumnStylesCollection(this, isDefaultTableStyle); this.gridColumns.CollectionChanged += new CollectionChangeEventHandler(this.OnColumnCollectionChanged); this.isDefaultTableStyle = isDefaultTableStyle; }