/// <summary> /// 获取群列表。 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnGetGroups_Click(object sender, RoutedEventArgs e) { List <CQGroupInfo> groups = CQ.GetGroupList(); string str = String.Empty; foreach (CQGroupInfo info in groups) { str += info.GroupNumber + ":" + info.GroupName + " "; } this.AddLog(String.Format("[{0}] [=][测试] 取群列表 拥有群数:{1} {2}", DateTime.Now, groups.Count, str)); }