//查找公司 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); }); } }
void addGroupItemSafePost(AddGroupItem _addGroupItem) { m_SyncContext.Post(addGroupItem, _addGroupItem); }