private void File_C_Click(object sender, EventArgs e) { //如果选中了某项 if (this.Nomarl_Member.SelectedItems.Count > 0) { //根据选中的IP对上线主机集合进行查找 String Ip = this.Nomarl_Member.SelectedItems[0].Text.Trim(); for (int i = 0; i < Globle.Online_Computer_Attr.Count; i++) { //如果找到了 if (Globle.Online_Computer_Attr[i].Ip == Ip) { File_Manager FM = new File_Manager(Ip, Globle.Online_Computer_Attr[i].Socket, this); FM.Show(); } } } }