/* * Alteração de gastos */ public void Alterar(GastosTO objGastosTO) { GastosBLL gastoBLL = new GastosBLL(); this.gastosTO = gastoBLL.SelectScalar(objGastosTO.ID_GASTOS); if (gastosTO != null) { PreencherValoresTela(gastosTO); gastosTO.StatusBD = StatusTransacao.Update; } this.ShowDialog(); }
public void Excluir(GastosTO objGastosTO) { GastosBLL gastoBLL = new GastosBLL(); this.gastosTO = gastoBLL.SelectScalar(objGastosTO.ID_GASTOS); if (gastosTO != null) { PreencherValoresTela(gastosTO); gastosTO.StatusBD = StatusTransacao.Delete; } DesabilitarComponentes(); this.ShowDialog(); }