private void loadData(string result) { //string strOrder = webService.getResult("order"); HealthResult hResult = getHealthResult(result); List <DatasItem> datas = hResult.datas; string haha = ""; gridSheet.DataSource = datas; }
private HealthResult getHealthResult(string strJson) { HealthResult vj = new HealthResult(); try { vj = JsonConvert.DeserializeObject <HealthResult>(strJson); } catch (Exception ex) { string ss = ex.ToString(); } return(vj); }