public void Dispose() { if (!Util.ObjectIsNull(cda)) { cda.Dispose(); } if (!Util.ObjectIsNull(ds)) { ds.Dispose(); } if (!Util.ObjectIsNull(bs)) { bs.CancelEdit(); bs.Dispose(); } if (!Util.ObjectIsNull(epda)) { epda.Connection.Close(); epda.Dispose(); } if (!Util.ObjectIsNull(eda)) { eda.Connection.Close(); eda.Dispose(); } if (!Util.ObjectIsNull(pda)) { pda.Connection.Close(); pda.Dispose(); } }