/// <summary> /// 获得游戏列表 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnGetRunningList_Click(object sender, EventArgs e) { lstRunning.Items.Clear(); foreach (var runningGame in ServerResponse.GetRunningList()) { lstRunning.Items.Add(runningGame); } }