コード例 #1
0
        private void TB_Codigo_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                if (TB_Codigo.Text.Trim() == "")
                {
                    return;
                }

                Legajo LegajoAModificar = new Legajo();
                LegajoAModificar = L.BuscarUno(TB_Codigo.Text);

                _CargarLegajo(LegajoAModificar);

                TB_DescLegajo.Focus();
            }
            else if (e.KeyData == Keys.Escape)
            {
                TB_Codigo.Text = "";
            }
        }
コード例 #2
0
 private void AgModLegajo_Shown(object sender, EventArgs e)
 {
     TB_DescLegajo.Focus();
 }