Пример #1
0
 private void Dos_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)
             {
                 Command_Manager CM = new Command_Manager(Ip, this);
                 CM.Show();
             }
         }
     }
 }
Пример #2
0
        private void Dos_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)
                    {
                        Command_Manager CM = new Command_Manager(Ip, this);
                        CM.Show();
                    }
                }

            }
        }