Example #1
0
 public override void afterCancela()
 {
     base.afterCancela();
     if (vTP_Modo == TTpModo.tm_Insert)
     {
         BS_CadMoega.RemoveCurrent();
     }
 }
Example #2
0
 public override void excluirRegistro()
 {
     if (g_CadMoega.RowCount > 0)
     {
         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_CadMoega.Deleta_CadMoega(BS_CadMoega.Current as TRegistro_CadMoega);
                 BS_CadMoega.RemoveCurrent();
                 pDados.LimparRegistro();
                 afterBusca();
             }
         }
     }
 }