Exemplo n.º 1
0
        public static Type ToCellType(this CellBodyType cellBodyType)
        {
            switch (cellBodyType)
            {
            case CellBodyType.Button:
                return(typeof(ButtonCell));

            case CellBodyType.CheckBox:
                return(typeof(CheckBoxCell));

            case CellBodyType.Default:
            default:
                return(typeof(CellBody));
            }
        }
Exemplo n.º 2
0
 public ColumnHeaderViewModel(string name, CellBodyType defaultCellBodyType = CellBodyType.Default)
 {
     this.Name = name;
     this.DefaultCellBodyType = defaultCellBodyType;
 }