public CompraLista()
        {
            this.fechaSeleccion = DateTime.Now;
            this.compraBiz      = new CompraBiz(this.fechaSeleccion);

            InitializeComponent();
        }
        private void CargarDatosCompraList()
        {
            if (this.cmbMes.SelectedItem == null)
            {
                return;
            }

            var anio = 0;

            if (!int.TryParse(this.txtAnio.Text, out anio) && anio < 2000 && anio > 3000)
            {
                MessageBox.Show("El año no tiene un formato valido");
                this.txtAnio.Text = this.fechaSeleccion.Year.ToString();
                return;
            }
            var ms = (KeyValuePair <int, string>) this.cmbMes.SelectedItem;

            this.fechaSeleccion = new DateTime(anio, ms.Key, 1);
            this.compraBiz      = new CompraBiz(this.fechaSeleccion);

            this.compraBiz.Cargar();

            this.CtlActualizarDtgLista();
        }