/// <summary> /// ステータスストリップのユーザー数テキストを設定する /// </summary> private void UpdateUserCntText() { string channelName; int userCnt = 0; ChannelInfoEx[] channelInfoExs = TwitchChatClient.GetChannelInfoExsByJoined(true); if (channelInfoExs != null && channelInfoExs.Length > 0) { /* * metroLabelStatus5.Text = ""; */ foreach (ChannelInfoEx channelInfoEx in channelInfoExs) { channelName = channelInfoEx.RealName; // 実際のチャンネル名 userCnt += TwitchChatClient.GetChannelUserCount(channelName); } } /* * metroLabelStatus1.Text = "【ユーザー数】" + string.Format("{0, 6}", userCnt) + "人"; */ }