예제 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Agregar a1 = new Agregar();

            a1.Show();
            this.Hide();
        }
예제 #2
0
        private void BotonAgregar_Click(object sender, EventArgs e)
        {
            HideSubMenu();
            MoverForm();
            Agregar Formulario2 = new Agregar();

            Formulario2.label6.Text = "Agregar";
            Formulario2.Show();
        }
        private void BotonEditar_Click(object sender, EventArgs e)
        {
            Editar = true;
            Agregar Formulario3 = new Agregar();

            Formulario3.label6.Text                      = "Editar";
            Formulario3.textBoxNombre.Text               = bunifuCustomDataGrid1.CurrentRow.Cells["Nombre"].Value.ToString();
            Formulario3.textBoxApellido.Text             = bunifuCustomDataGrid1.CurrentRow.Cells["Apellido"].Value.ToString();
            Formulario3.ComboboxObraSocial.SelectedValue = bunifuCustomDataGrid1.CurrentRow.Cells["Obra_social"].Value.ToString();
            Formulario3.TexboxFecha.Text                 = bunifuCustomDataGrid1.CurrentRow.Cells["Fecha_de_Nacimiento"].Value.ToString();
            Formulario3.textBoxNDA.Text                  = bunifuCustomDataGrid1.CurrentRow.Cells["Numero_De_Afiliado"].Value.ToString();
            Formulario3.textBoxTel.Text                  = bunifuCustomDataGrid1.CurrentRow.Cells["Telefono"].Value.ToString();
            Formulario3.textBoxDNI.Text                  = bunifuCustomDataGrid1.CurrentRow.Cells["DNI"].Value.ToString();
            Formulario3.textBoxID.Text                   = bunifuCustomDataGrid1.CurrentRow.Cells["Id"].Value.ToString();
            Formulario3.Show();
        }