private void _bs_CurrentChanged(object sender, EventArgs e) { if (_bs.Current != null) { _itemActual = (dataLista)_bs.Current; } }
public GestionLista() { _itemActual = null; _list = new List <dataLista>(); _bl = new BindingList <dataLista>(_list); _bs = new BindingSource(); _bs.CurrentChanged += _bs_CurrentChanged; _bs.DataSource = _bl; }
public void Inicializa() { _itemActual = null; _bl.Clear(); }