...
public void ChAll_TableAdapter()
{
DataSet1TableAdapters.1TableAdapter t1 = ...
DataSet1TableAdapters.2TableAdapter t2 = ...
Ch_TableAdapter(t1);
Ch_TableAdapter(t2);
}
...
public void Ch_TableAdapter(TableAdapter TA)
{
TA.Connection = null
}
...
Функция с одим параметром для двух разных TableAdapter
Код:
public void Ch_TableAdapter([COLOR="red"]TableAdapter[/COLOR] TA)
[COLOR="red"]Искомое[/COLOR]