Пример #1
0
 public override void afterCancela()
 {
     base.afterCancela();
     if (vTP_Modo == TTpModo.tm_Insert)
     {
         BS_CadRua.RemoveCurrent();
     }
 }
Пример #2
0
 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_CadRua.Excluir(BS_CadRua.Current as TRegistro_CadRua, null);
             BS_CadRua.RemoveCurrent();
             pDados.LimparRegistro();
             afterBusca();
         }
     }
 }