public FormAltaComunero(Comuneros form_anterior, String id_comunero_cargado, String id_entidad_cargado, String id_comunidad_cargado, int indice)
 {
     InitializeComponent();
     this.form_anterior        = form_anterior;
     this.id_comunero_cargado  = id_comunero_cargado;
     this.id_entidad_cargado   = id_entidad_cargado;
     this.id_comunidad_cargado = id_comunidad_cargado;
     this.indice = indice;
 }
Пример #2
0
        private void textBox_comunero_KeyPress(object sender, KeyPressEventArgs e)
        {
            Comuneros nueva = new Comuneros(this, this.Name, idComunidad);

            nueva.ControlBox    = true;
            nueva.TopMost       = true;
            nueva.WindowState   = FormWindowState.Normal;
            nueva.StartPosition = FormStartPosition.CenterScreen;
            nueva.Show();
        }
Пример #3
0
        private void button_com_Click(object sender, EventArgs e)
        {
            Comuneros nueva = new Comuneros(this, this.Name, id_comunidad_cargado);

            nueva.ControlBox    = true;
            nueva.TopMost       = true;
            nueva.WindowState   = FormWindowState.Normal;
            nueva.StartPosition = FormStartPosition.CenterScreen;
            nueva.Show();
        }
 private void textBox_Comunero_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (Char)Keys.Space)
     {
         Comuneros nueva = new Comuneros(this, this.Name, id_comunidad_cargado.ToString());
         nueva.ControlBox    = true;
         nueva.TopMost       = true;
         nueva.WindowState   = FormWindowState.Normal;
         nueva.StartPosition = FormStartPosition.CenterScreen;
         nueva.Show();
     }
 }
Пример #5
0
 private void textBox_entidad_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (Char)Keys.E || e.KeyChar == 'e')
     {
         Entidades nueva = new Entidades(this, this.Name);
         nueva.ControlBox    = true;
         nueva.TopMost       = true;
         nueva.WindowState   = FormWindowState.Normal;
         nueva.StartPosition = FormStartPosition.CenterScreen;
         nueva.textBox_buscar_nombre.Select();
         nueva.dataGridView1.TabIndex         = 2;
         nueva.textBox_buscar_nombre.TabIndex = 1;
         nueva.Show();
     }
     else if (e.KeyChar == (Char)Keys.Space)
     {
         if (tipo_operacion == "Entrada a Proveedor" || tipo_operacion == "Pago a Proveedor")
         {
             Entidades nueva = new Entidades(this, this.Name);
             nueva.ControlBox    = true;
             nueva.TopMost       = true;
             nueva.WindowState   = FormWindowState.Normal;
             nueva.StartPosition = FormStartPosition.CenterScreen;
             nueva.textBox_buscar_nombre.Select();
             nueva.dataGridView1.TabIndex         = 2;
             nueva.textBox_buscar_nombre.TabIndex = 1;
             nueva.Show();
         }
         else
         {
             Comuneros nueva = new Comuneros(this, this.Name, id_comunidad_cargado);
             nueva.ControlBox    = true;
             nueva.TopMost       = true;
             nueva.WindowState   = FormWindowState.Normal;
             nueva.StartPosition = FormStartPosition.CenterScreen;
             nueva.textBox_buscar.Select();
             nueva.Show();
         }
     }
 }
Пример #6
0
 private void dataGridView_vencimientos_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (Char)Keys.Tab)
     {
         if (dataGridView_vencimientos.CurrentRow.IsNewRow == true && dataGridView_vencimientos.Rows.Count > 1)
         {
             //COMENTO POR ERROR AL TABULAR HASTA LA ULTIMA CELDA DEL DATAGRID
             dataGridView_vencimientos.ClearSelection();
             //button_guardar.Select();
         }
     }
     else if (e.KeyChar == 'e' || e.KeyChar == 'E' || e.KeyChar == (Char)Keys.Space || e.KeyChar == (Char)Keys.Enter)
     {
         Entidades nueva = new Entidades(this, this.Name);
         nueva.ControlBox    = true;
         nueva.TopMost       = true;
         nueva.WindowState   = FormWindowState.Normal;
         nueva.StartPosition = FormStartPosition.CenterScreen;
         nueva.textBox_buscar_nombre.Select();
         nueva.dataGridView1.TabIndex         = 2;
         nueva.textBox_buscar_nombre.TabIndex = 1;
         nueva.Show();
     }
     else if (e.KeyChar == 'p' || e.KeyChar == 'P')
     {
         FormOperacionesListadoProveedores nueva = new FormOperacionesListadoProveedores(this, this.Name, id_comunidad_cargado);
         nueva.Show();
     }
     else if (e.KeyChar == 'c' || e.KeyChar == 'C')
     {
         Comuneros nueva = new Comuneros(this, this.Name, id_comunidad_cargado);
         nueva.ControlBox    = true;
         nueva.TopMost       = true;
         nueva.WindowState   = FormWindowState.Normal;
         nueva.StartPosition = FormStartPosition.CenterScreen;
         nueva.Show();
     }
 }
 public FormAltaComunero(Comuneros form_anterior, String id_comunidad_cargado)
 {
     InitializeComponent();
     this.form_anterior        = form_anterior;
     this.id_comunidad_cargado = id_comunidad_cargado;
 }