コード例 #1
0
 private bool DeleteREEspelho(int nIdREEspelho, bool ShowMessage)
 {
     mdlDataBaseAccess.Tabelas.XsdTbREsEspelhos.tbREsEspelhosRow dtrwREEspelho = this.TypDatSetTbREsEspelhos.tbREsEspelhos.FindBynIdExportadornIdReEspelho(m_nIdExportador, nIdREEspelho);
     if ((dtrwREEspelho == null) || (dtrwREEspelho.RowState == System.Data.DataRowState.Deleted))
     {
         return(false);
     }
     dtrwREEspelho.Delete();
     if (SaveTbREsEspelhos())
     {
         m_typDatSetTbREsEspelhos = null;
         return(true);
     }
     return(false);
 }