Пример #1
0
        private void btFilterExcept_Click(object sender, EventArgs e)
        {
            List = List1;
            SSHInfo mau = new SSHInfo();

            mau.ShowDialog();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            List.Clear();
            List = List1;
            SSHInfo mau = new SSHInfo();

            mau.Show();
        }
Пример #3
0
        private void button7_Click(object sender, EventArgs e)
        {
            List.Clear();
            List <SSH> new_list = new List <SSH>();

            new_list = ListIP.DistinctBy(i => i.Ip).ToList();
            DupCount = ListIP.Count - new_list.Count;
            List     = new_list;
            SSHInfo mau = new SSHInfo();

            mau.ShowDialog();
        }
Пример #4
0
        private void button6_Click(object sender, EventArgs e)
        {
            List.Clear();
            string[]    country = txtCAll.Text.Split(',');
            List <code> code    = country.Select(item => new code()
            {
                Country = item
            }).ToList();
            var        result = ListIP.Where(p => p.Country.Any(pi => code.Any(ci => ci.Country == p.Country)));
            List <SSH> hhh    = new List <SSH>(result);

            List = hhh;
            SSHInfo mau = new SSHInfo();

            mau.ShowDialog();
        }
Пример #5
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (rbEg.Checked)
            {
                List.Clear();
                string[]    country = txtEg.Text.Split(',');
                List <code> code    = country.Select(item => new code()
                {
                    Country = item
                }).ToList();
                var        result = List1.Where(p => p.Country.Any(pi => code.Any(ci => ci.Country == p.Country)));
                List <SSH> hhh    = new List <SSH>(result);
                List = hhh;
                SSHInfo mau = new SSHInfo();
                mau.ShowDialog();
            }
            if (rbEu.Checked)
            {
                List.Clear();
                string[]    country = txtEu.Text.Split(',');
                List <code> code    = country.Select(item => new code()
                {
                    Country = item
                }).ToList();
                var        result = List1.Where(p => p.Country.Any(pi => code.Any(ci => ci.Country == p.Country)));
                List <SSH> hhh    = new List <SSH>(result);
                List = hhh;
                SSHInfo mau = new SSHInfo();
                mau.ShowDialog();
            }
            if (rbSp.Checked)
            {
                List.Clear();
                string[]    country = txtSp.Text.Split(',');
                List <code> code    = country.Select(item => new code()
                {
                    Country = item
                }).ToList();
                var        result = List1.Where(p => p.Country.Any(pi => code.Any(ci => ci.Country == p.Country)));
                List <SSH> hhh    = new List <SSH>(result);
                List = hhh;
                SSHInfo mau = new SSHInfo();
                mau.ShowDialog();
            }
            if (rbAll.Checked)
            {
                List.Clear();
                string[]    country = txtCAll.Text.Split(',');
                List <code> code    = country.Select(item => new code()
                {
                    Country = item
                }).ToList();
                var        result = List1.Where(p => p.Country.Any(pi => code.Any(ci => ci.Country == p.Country)));
                List <SSH> hhh    = new List <SSH>(result);
                List = hhh;
                SSHInfo mau = new SSHInfo();
                mau.ShowDialog();
            }
            if (rbEUUS.Checked)
            {
                List.Clear();
                string[]    country = txtEUUS.Text.Split(',');
                List <code> code    = country.Select(item => new code()
                {
                    Country = item
                }).ToList();
                var        result = List1.Where(p => p.Country.Any(pi => code.Any(ci => ci.Country == p.Country)));
                List <SSH> hhh    = new List <SSH>(result);
                List = hhh;
                SSHInfo mau = new SSHInfo();
                mau.ShowDialog();
            }

            if (rbProper.Checked)
            {
                List.Clear();
                string[]    country = txProper.Text.Split(',');
                List <code> code    = country.Select(item => new code()
                {
                    Country = item
                }).ToList();
                var        result = List1.Where(p => p.Country.Any(pi => code.Any(ci => ci.Country == p.Country)));
                List <SSH> hhh    = new List <SSH>(result);
                List = hhh;
                SSHInfo mau = new SSHInfo();
                mau.ShowDialog();
            }
        }