public override void afterCancela() { base.afterCancela(); if (this.vTP_Modo == TTpModo.tm_Insert) { BS_CMI.RemoveCurrent(); } }
public override void afterExclui() { 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_CadCMI.Excluir(BS_CMI.Current as TRegistro_CadCMI, null); BS_CMI.RemoveCurrent(); pDados.LimparRegistro(); afterBusca(); } } }