示例#1
0
文件: DexGrid.cs 项目: XiaoQiJun/BPS
 public void AddColumn(string headerName, IDictionary<string, string> dicFieldName, HorizontalAlign hAlign, int pixel, ButtonType type)
 {
     ButtonTemplate buttonTemplate = new ButtonTemplate(dicFieldName);
     GridColumn column = new GridColumn(buttonTemplate);
     column.headerName = headerName;
     column.hAlign = HorizontalAlign.Center;
     column.unit = Unit.Pixel(pixel);
     column.type = FieldType.ButtonTemplate;
     columns.Add(column);
     AddToGridColumn(column);
 }
示例#2
0
文件: DexGrid.cs 项目: XiaoQiJun/BPS
 public GridColumn(ButtonTemplate buttonTemplate)
 {
     _buttonTemplate = buttonTemplate;
 }