private KlonsData() { _KlonsData = this; CurrentDBTag = null; LoadSettings(); LoadMasterList(); if (Settings.MasterEntry.Name != "") { var me = MasterList.GetMasterEntryByName(Settings.MasterEntry.Name); if (me != null) { Settings.MasterEntry.CopyFrom(me); } } _Params = new KlonsParams(); ReportHelper = new ReportHelperF(); _klonsDataSetHelper = new DataSetHelper( typeof(klonsDataSet), typeof(KlonsAdapters.TableAdapterManager), typeof(KlonsAdapters.QueriesTableAdapter), "ConnectionString1", KlonsF.Properties.Settings.Default); _dataSetHelpers["KlonsData"] = _klonsDataSetHelper; _klonsRepDataSetHelper = new DataSetHelper( typeof(klonsRepDataSet), typeof(KlonsRepAdapters.TableAdapterManager), null, "ConnectionString1", KlonsF.Properties.Settings.Default); _dataSetHelpers["KlonsRep"] = _klonsRepDataSetHelper; }
public void Dispose() { _KlonsData = null; }