Beispiel #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            negAccesPoint negaccespoint = new negAccesPoint();
            entAccesPoint entaccespoint = new entAccesPoint();

            //entaccespoint.idAccesPoint = Convert.ToInt32(dgvAPs.CurrentRow.Cells["Clave"].Value.ToString());
            negaccespoint.EliminaDato(entaccespoint);
            CargarDGV();
            InhabilitarObjetos();
            LimpiarObjetos();
        }
Beispiel #2
0
        public void Contabilizar()
        {
            negSwitches negswitches = new negSwitches();

            lblSwitches.Text = negswitches.CargarDatos().Rows.Count.ToString();
            negRadios negradios = new negRadios();

            lblRadios.Text = negradios.CargarDatos().Rows.Count.ToString();
            negAccesPoint negap = new negAccesPoint();

            lblAP.Text = negap.CargarDatos().Rows.Count.ToString();
        }
Beispiel #3
0
 private void button5_Click(object sender, EventArgs e)
 {
     negAccesPoint negaccespoint = new negAccesPoint();
     entAccesPoint entaccespoint = new entAccesPoint();
     //entaccespoint.Edificio = Convert.ToInt32(cmbEdificios.SelectedValue);
     //entaccespoint.Marca = Convert.ToInt32(cmbEdificios.SelectedValue);
     //entaccespoint.Modelo = Convert.ToInt32(cmbEdificios.SelectedValue);
     //entaccespoint.HostName = txtHostName.Text;
     //entaccespoint.SSID = Convert.ToInt32(cmbEdificios.SelectedValue);
     //entaccespoint.Serie = txtSerie.Text;
     //entaccespoint.Mac = txtMac.Text;
     //entaccespoint.Ip = txtIp.Text;
     //entaccespoint.User = Convert.ToInt32(cmbEdificios.SelectedValue);
     //entaccespoint.Pass = txtPass.Text;
     //entaccespoint.Key = txtKey.Text;
     //entaccespoint.Seguridad = Convert.ToInt32(cmbEdificios.SelectedValue);
     //if (rdbA.Checked)
     //{
     //    entaccespoint.Estado = "Activo";
     //}
     //else
     //{
     //    entaccespoint.Estado = "Inactivo";
     //}
     //if (Nuevo)
     //{
     //    negaccespoint.InsertarDato(entaccespoint);
     //}
     //else
     //{
     //    entaccespoint.idAccesPoint = Convert.ToInt32(dgvAPs.CurrentRow.Cells["Clave"].Value.ToString());
     //    negaccespoint.ActualizaDato(entaccespoint);
     //}
     //CargarDGV();
     //InhabilitarObjetos();
     //LimpiarObjetos();
 }
Beispiel #4
0
 public void CargarDGV()
 {
     negAccesPoint negaccespoint = new negAccesPoint();
     //dgvAPs.DataSource = negaccespoint.CargarDatos();
 }