Ejemplo n.º 1
0
 public void OnGet()
 {
     DataTablePartial = new DataTablePartialModel();
     TableName        = "WiertlaTabs";
     TableName        = TableName.ToLower();
     Picked           = "CT";
     TreeDataToJson(viewModel.TreeOfCuttingTools);
     DataToTable(FindDataToTable());
     Resources = resources.GetAllResources();
 }
Ejemplo n.º 2
0
        public void DataToTable(IEnumerable <TableData> tools)
        {
            DataTablePartial = new DataTablePartialModel();
            var list = tools.ToList();

            DataTablePartial.Datas = new List <TableData>();
            DataTablePartial.Datas = list;
            Type type = list[0].GetType();

            DataTablePartial.Infos = type.GetProperties();
        }