Exemplo n.º 1
0
 private void Building_Callback(QueryHousePagingResponse response)
 {
     List<ReadEnum> datasource = new List<ReadEnum>();
     foreach (var house in response.List.Record)
     {
         datasource.Add(new ReadEnum
         {
             Text = house.House.Name,
             Value = house.House.ID,
         });
     }
     datasource.Insert(0, new ReadEnum { Value = "-1", Text = "全部" });
     cmbHouse.DataSource = datasource;
 }
Exemplo n.º 2
0
 private void tvBuilding_AfterSelect_CallBack(QueryHousePagingResponse r)
 {
     FullBuilding buiding = tvBuilding.SelectedNode.Tag as FullBuilding;
     if (buiding == null) return;
     buiding.House = r.List.Record;
     tabFloor_SelectedIndexChanged(this, null);
 }