Пример #1
0
 private void btnguardareditarservicio_Click(object sender, EventArgs e)
 {
     if (ValidarCampos())
     {
         FormServicios frm = Owner as FormServicios;
         servicioDAL.Modificar(RecuperarInformacion());
         frm.LlenarGrid();
         Close();
     }
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)//nuevo
 {
     if (ValidarCampos())
     {
         servicioDAL.Agregar(RecuperarInformacion());
         FormServicios frm = Owner as FormServicios;//Se direcciona del formulario hijo al padre,el objeto ya existe, solo se hace referencia
         frm.LlenarGrid();
         //frm.dataGridView1.Rows.Insert(0, "1", txtCV.Text, txtPlacas.Text, txtOrigen.Text, txtDestino.Text, txtCelular.Text);
         Close();
     }
 }
Пример #3
0
        private void btnDashboard_Click(object sender, EventArgs e)
        {
            FormServicios fm = new FormServicios();

            fm.FormClosed      += new FormClosedEventHandler(MostrarFormLogoAlCerrarForms);
            pictureBox1.Visible = true;
            pictureBox2.Visible = false;
            pictureBox4.Visible = false;
            pictureBox3.Visible = false;
            AbrirFormEnPanel(fm);
        }