private void DataTableCleared(object sender, DataTableClearEventArgs e) { DataTableReader reader = (DataTableReader)_readerWeak.Target; if (reader != null) { reader.DataTableCleared(); } else { UnSubscribeEvents(); } }
private void DataTableCleared(object sender, DataTableClearEventArgs e) { DataTableReader target = (DataTableReader)this.readerWeak.Target; if (target != null) { target.DataTableCleared(); } else { this.UnSubscribeEvents(); } }