Exemplo n.º 1
0
        public void CargarDatos()
        {
            BLTarifario enlace = new BLTarifario();

            OK = enlace.ObtenerListadoAnalisis().Count > 0;

            BtnCrear.Enabled     = OK;
            NumericUDAño.Enabled = OK;
            OK = OK;
            BtnCrear.Visible = OK;
        }
Exemplo n.º 2
0
        public void CargarDatos()
        {
            BtnSave.Visible = true;
            BLTarifario enlace = new BLTarifario();

            if (enlace.ObtenerListadoAnalisis().Count > 0 && Tarifarios.Count > 0)
            {
                ComboBoxAno.DataSource    = new BindingSource(enlace.ObtenerListadoAno(Tarifarios), null);
                ComboBoxAno.DisplayMember = "Value";
                ComboBoxAno.ValueMember   = "Key";
                BtnSave.Enabled           = true;
                OK = true;
            }
            else
            {
                OK = false;
                BtnSave.Enabled = false;
            }
        }