void init() { __model = new PM_GridModel(this); __noRender = false; __displayedCells = new List <cellInfo>(); __hHeadearsHeight = 20; __vHeadersWidth = 50; __hHeaderVisible = true; __vHeaderVisible = true; __linesColor = Colors.Black; __backGroundColor = Colors.LightGray; __vScrollBar = new ScrollBar(); __hScrollBar = new ScrollBar(); __vScrollBar.Orientation = Orientation.Vertical; __vScrollBar.Width = __scrollBarsWidth; __vScrollBar.SmallChange = 1; __hScrollBar.Orientation = Orientation.Horizontal; __hScrollBar.Height = __scrollBarsWidth; __hScrollBar.SmallChange = 1; __scrollBars = PM_GridScrollBars.BOTH; __scrollBarsWidth = 15; __vScrollBar.Scroll += scroll; __hScrollBar.Scroll += scroll; initMainPanel(); this.SizeChanged += sizeChanged; }
/// <summary> /// Ne provoque pas la mise à jour de la grille. /// </summary> /// <param name="_model"></param> public void setModel(PM_GridModel _model) { __model = _model; render(); }