private void btnEdit_Click(object sender, EventArgs e) { FormFichaMesa ficha = new FormFichaMesa(); ficha.Registro = (modelo.mesa)bs.Current; ficha.ShowDialog(); if (ficha.Registro != null) { controle.MesaDB tabela = new controle.MesaDB(); tabela.consultar(bs); bs.ResetBindings(false); } }
private void btnAdd_Click(object sender, EventArgs e) { FormFichaMesa ficha = new FormFichaMesa(); ficha.Registro = null; ficha.ShowDialog(); if (ficha.Registro != null) { controle.MesaDB tabela = new controle.MesaDB(); tabela.consultar(bs); bs.MoveLast(); bs.ResetBindings(false); } }