Example #1
0
 private void BtnCalcular_Click(object sender, EventArgs e)
 {
     DAOClassesdeRede.OrdernarListaRedes();
     DAOClassesdeRede.TotalListaHosts();
     if (DAOClassesdeRede.ListaValida)
     {
         richTextBox1.Clear();
         richTextBox1.AppendText(DAOClassesdeRede.TextoParaInfoDeRede());
         DAOClassesdeRede.MakeListSubredes();
         richTextBox1.AppendText(DAOClassesdeRede.MostrarSubredes());
     }
 }
Example #2
0
        private void btnProseguirCalculo_Click(object sender, EventArgs e)
        {
            //DAOClassesdeRede.mostrarClasses();
            string[] ipbase = txtboxIPBase.Text.Split('.');
            DAOClassesdeRede.ClassificarRede(ipbase);

            if (ClassesDeRede.ValidAddress)
            {
                txtboxIPBase.Enabled        = false;
                btnProseguirCalculo.Enabled = false;
                nudHosts.Enabled            = true;
                btnAdicionarHost.Enabled    = true;
                btnCalcular.Enabled         = true;
                dataGridView1.Enabled       = true;
                richTextBox1.AppendText(DAOClassesdeRede.TextoParaInfoDeRede());
            }
        }