示例#1
0
        public void setCellReadOnly(int _columnIndex, int _rowIndex, PM_state _state)
        {
            cellInfo _cellInfo = new cellInfo(__model.row(_rowIndex).cell(_columnIndex), _columnIndex, _rowIndex);

            _cellInfo.cell.readOnly = _state;
            updateCell(_cellInfo);
        }
示例#2
0
        public void setColumnReadOnly(int _index, PM_state _readOnly)
        {
            PM_GridColumn _column = column(_index);

            if (_column == null)
            {
                return;
            }
            _column.readOnly = _readOnly;
        }
示例#3
0
        public void setRowReadOnly(int _index, PM_state _readOnly)
        {
            PM_GridRow _row = row(_index);

            if (_row == null)
            {
                return;
            }
            _row.readOnly = _readOnly;
        }
示例#4
0
 public override void applyIsReadOnly(PM_state _state)
 {
 }
示例#5
0
 /// <summary>
 /// PM_GridCell contient la propriété readOnly mais ne décide pas, à chaque affichage,
 /// d'appliquer son état readOly, ce rôle est laissé à la vue (PM_Grid).
 /// </summary>
 /// <param name="_state"></param>
 public override void applyIsReadOnly(PM_state _state)
 {
     //actual readOnly sera utilisé pour le prochain affichage.
     __actualyReadOnly = _state;
 }
示例#6
0
 public override void applyIsReadOnly(PM_state _state)
 {
     ((PM_GridTextBox)__control).IsReadOnly = (_state == PM_state.TRUE);
 }
示例#7
0
 public abstract void applyIsReadOnly(PM_state _state);
示例#8
0
 public void setRowReadOnly(int _rowIndex, PM_state _state)
 {
     __model.setRowReadOnly(_rowIndex, _state);
     updateCells();
 }
示例#9
0
 public void setColumnReadOnly(int _columnIndex, PM_state _state)
 {
     __model.setColumnReadOnly(_columnIndex, _state);
     updateCells();
 }
示例#10
0
 public void setReadOnly(PM_state _readOnly)
 {
     __model.readOnly = _readOnly;
     updateCells();
 }