public override void afterCancela() { base.afterCancela(); if (vTP_Modo == TTpModo.tm_Insert) { BS_CadLocal.RemoveCurrent(); } }
public override void excluirRegistro() { if ((this.vTP_Modo == TTpModo.tm_Standby) || (this.vTP_Modo == TTpModo.tm_busca)) { if (MessageBox.Show("Confirma Exclusão do Registro?", "Mensagem", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == System.Windows.Forms.DialogResult.Yes) { TCN_CadLocal.deletarLocal(BS_CadLocal.Current as TRegistro_CadLocal); BS_CadLocal.RemoveCurrent(); pDados.LimparRegistro(); afterBusca(); } } }