示例#1
0
 //查找公司
 private void buttonFindCompany_Click(object sender, EventArgs e)
 {
     if (textBoxFindCompany.Text != "")
     {
         this.flowLayoutPanelStrangers.Controls.Clear();
         DataMgr.Instance.getGroupByID(int.Parse(textBoxFindCompany.Text), delegate(GroupInfoModel model) {
             if (model.Gid == 0)
             {
                 return;
             }
             AddGroupItem otherItem = new AddGroupItem(model.Name, model.Gid, model.Face);
             addGroupItemSafePost(otherItem);
         });
     }
 }
示例#2
0
 void addGroupItemSafePost(AddGroupItem _addGroupItem)
 {
     m_SyncContext.Post(addGroupItem, _addGroupItem);
 }