Exemplo n.º 1
0
        private void BtnChangeIPs_Click(object sender, RoutedEventArgs e)
        {
            String include = txtInclude.Text;
            String exclude = txtExclude.Text;

            List <String> ips = IPRange.RangeListStringToIPList(include);

            ips = IPRange.ExcludeFromListString(ips, exclude);

            MSSQL ms = new MSSQL();

            ms.AddIPs(ips);

            txtInclude.Text = "";
            txtExclude.Text = "";
            PopulateTree();
        }