Esempio n. 1
0
        public PM_GridCell newCell(PM_Grid _grid)
        {
            PM_GridCell _cell;

            switch (type)
            {
            case PM_ColumnType.STRING:
                _cell = new PM_GridCellTextBox(_grid);
                break;

            case PM_ColumnType.INT:
                _cell = new PM_GridCellNumeric_int(_grid);
                break;

            case PM_ColumnType.DOUBLE:
                _cell = new PM_GridCellNumeric_double(_grid);
                break;

            case PM_ColumnType.BOOL:
                _cell = new PM_GridCellCheckBox(_grid);
                break;

            case PM_ColumnType.BUTTON:
                _cell = new PM_GridCellButton(_grid);
                break;

            case PM_ColumnType.DATE:
                _cell = new PM_GridCellDate(_grid);
                break;

            default:
                return(null);
            }
            return(_cell);
        }
Esempio n. 2
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. 3
0
 public PM_GridCellVHeader(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 4
0
 public PM_GridCellButton(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 5
0
 public PM_GridCellDate(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 6
0
 public PM_GridCellCheckBox(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 7
0
 public PM_GridCellNumeric_double(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 8
0
 public PM_GridCellNumeric_int(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 9
0
 public PM_GridCellTextBox(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 10
0
 public PM_GridCell_typed(PM_Grid _grid)
     : base(_grid)
 {
 }
Esempio n. 11
0
 public PM_GridCell(PM_Grid _grid)
 {
     grid     = _grid;
     readOnly = PM_state.UNSET;
 }