예제 #1
0
 public override void afterCancela()
 {
     base.afterCancela();
     if (vTP_Modo == TTpModo.tm_Insert)
     {
         BS_TipoServico.RemoveCurrent();
     }
 }
예제 #2
0
 public override void excluirRegistro()
 {
     if (BS_TipoServico.Current != null)
     {
         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_CadTipoServico.Excluir(BS_TipoServico.Current as TRegistro_CadTipoServico, null);
                 BS_TipoServico.RemoveCurrent();
                 pDados.LimparRegistro();
                 afterBusca();
             }
         }
     }
 }