Example #1
0
        private void BtnBuscar_Click(object sender, EventArgs e)
        {
            try
            {
                //invoco formulario de busqueda.
                FrmListadoCuenta unForm = new FrmListadoCuenta(_EmpLogueado);
                unForm.ShowDialog();

                //verifico si hay seleccion
                if (unForm.SalirConSeleccion)
                {
                    TxtCuenta.Text = unForm.NumCuentaSeleccionada.ToString();
                    TxtCuenta_Validating(TxtCuenta, new CancelEventArgs());
                }
            }
            catch (Exception ex)
            {
                if (ex.Message.Length > 40)
                {
                    LblError.Text = ex.Message.Substring(0, 40);
                }
                else
                {
                    LblError.Text = ex.Message;
                }
            }
        }
Example #2
0
        private void cuentasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmListadoCuenta _unForm = new FrmListadoCuenta(_EmpLogueado);

            _unForm.ShowDialog();
        }