/// <summary> /// 加群好友 /// </summary> private void AddUserList() { listinfo.Clear(); int count = dataGridView1.Rows.Count; for (int i = 0; i < count; i++) { DataGridViewCheckBoxCell checkCell = (DataGridViewCheckBoxCell)dataGridView1.Rows[i].Cells[0]; Boolean flag = Convert.ToBoolean(checkCell.Value); if (flag == true) { common.AddGroupUser info1 = new AddGroupUser(); string groupname = dataGridView1.Rows[checkCell.RowIndex].Cells["GroupName"].FormattedValue.ToString(); string nickname = dataGridView1.Rows[checkCell.RowIndex].Cells["NickName"].FormattedValue.ToString(); string username = dataGridView1.Rows[checkCell.RowIndex].Cells["UserName"].FormattedValue.ToString(); info1.NickName = nickname; info1.Value = username; if (info1.Value == "") { return; } listinfo.Add(info1); } } }
public FrmGroupUser(List <common.GroupUserAndNickName> list_GroupName1, List <common.MemberList> group_MemberList1, AddGroupUser info1, CookieContainer mycookieContainer1, int wxorWx21) { InitializeComponent(); List_GroupName = list_GroupName1; Group_MemberList = group_MemberList1; info = info1; myCookieContainer = mycookieContainer1; WxorWx2 = wxorWx21; }