Esempio n. 1
0
 private void button2_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)
             {
                 Remote_Manager RM = new Remote_Manager(Ip, this);
                 RM.Show();
             }
         }
     }
 }
        private void button2_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)
                    {
                        Remote_Manager RM = new Remote_Manager(Ip, this);
                        RM.Show();
                    }
                }

            }
        }