Esempio n. 1
0
 private void 注册表管理ToolStripMenuItem_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)
             {
                 Register_Manager RM = new Register_Manager(Ip, this);
                 RM.Show();
             }
         }
     }
 }
        private void 注册表管理ToolStripMenuItem_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)
                    {
                        Register_Manager RM = new Register_Manager(Ip, this);
                        RM.Show();
                    }
                }

            }
        }