Esempio n. 1
0
        public void setColumnHeaderStyle(int _columnIndex, PM_GridCellStyle _style)
        {
            cellInfo _cellInfo = new cellInfo(__model.column(_columnIndex).header, _columnIndex, 0);

            _cellInfo.cell.style = _style;
            updateCell(_cellInfo);
        }
Esempio n. 2
0
        public void setRowHeaderStyle(int _rowIndex, PM_GridCellStyle _style)
        {
            cellInfo _cellInfo = new cellInfo(__model.row(_rowIndex).header, 0, _rowIndex);

            _cellInfo.cell.style = _style;
            updateCell(_cellInfo);
        }
Esempio n. 3
0
        public void setCellStyle(int _columnIndex, int _rowIndex, PM_GridCellStyle _style)
        {
            cellInfo _cellInfo = new cellInfo(__model.row(_rowIndex).cell(_columnIndex), _columnIndex, _rowIndex);

            _cellInfo.cell.style = _style;
            updateCell(_cellInfo);
        }
Esempio n. 4
0
 public override void applyStyle(PM_GridCellStyle _style)
 {
     // assert(_style != null)
     __control.Background = new SolidColorBrush(_style.backColor);
     __control.Foreground = new SolidColorBrush(_style.foreColor);
     __control.HorizontalContentAlignment = _style.contentHorizontalAlignement;
     __control.VerticalContentAlignment   = _style.contentVerticalAlignement;
 }
Esempio n. 5
0
        public void setRowStyle(int _index, PM_GridCellStyle _style)
        {
            PM_GridRow _row = row(_index);

            if (_row == null)
            {
                return;
            }
            _row.style = _style;
        }
Esempio n. 6
0
        public void setColumnStyle(int _index, PM_GridCellStyle _style)
        {
            PM_GridColumn _column = column(_index);

            if (_column == null)
            {
                return;
            }
            _column.style = _style;
        }
Esempio n. 7
0
 public PM_GridModel(PM_Grid _grid)
 {
     __grid          = _grid;
     readOnly        = PM_state.FALSE;
     style           = new PM_GridCellStyle();
     style.backColor = Colors.LightGray;
     style.foreColor = Colors.Black;
     style.contentHorizontalAlignement = HorizontalAlignment.Center;
     style.contentVerticalAlignement   = VerticalAlignment.Center;
 }
Esempio n. 8
0
 public override void applyStyle(PM_GridCellStyle _style)
 {
     base.applyStyle(_style);
 }
Esempio n. 9
0
 public abstract void applyStyle(PM_GridCellStyle _style);
Esempio n. 10
0
 public void setVerticalHeaderStyle(PM_GridCellStyle _style)
 {
     __model.verticalHeaderStyle = _style;
     updateCells();
 }
Esempio n. 11
0
 public void setHorizontalHeaderStyle(PM_GridCellStyle _style)
 {
     __model.horizontalHeaderStyle = _style;
     updateCells();
 }
Esempio n. 12
0
 public void setRowStyle(int _rowIndex, PM_GridCellStyle _style)
 {
     __model.setRowStyle(_rowIndex, _style);
     updateCells();
 }
Esempio n. 13
0
 public void setColumnStyle(int _columnIndex, PM_GridCellStyle _style)
 {
     __model.setColumnStyle(_columnIndex, _style);
     updateCells();
 }
Esempio n. 14
0
 public void setStyle(PM_GridCellStyle _style)
 {
     __model.style = _style;
     updateCells();
 }