Ejemplo n.º 1
0
        private void _tavDeleteBTN_Click(object sender, EventArgs e)
        {
            TreeAuditValueDO tav = _BS_treeAudits.Current as TreeAuditValueDO;

            if (tav == null)
            {
                return;
            }
            if (tav.IsPersisted)
            {
                tav.Delete();
            }
            _BS_treeAudits.Remove(tav);
        }
 private void _treeAuditDGV_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == this._treeAudit_Remove_ButtonCol.Index)
     {
         TreeAuditValueDO tav = this._BS_treeAudits[e.RowIndex] as TreeAuditValueDO;
         if (tav != null)
         {
             if (tav.IsPersisted)
             {
                 tav.Delete();
             }
             this._BS_treeAudits.Remove(tav);
         }
     }
 }