/// <summary> /// Reads in the waterlevels from the database using the FillByNovana method. /// Only necessary fields are read. /// </summary> /// <param name="DataBaseFileName"></param> public void ReadWaterLevels(bool OnlyRo) { WATLEVELTableAdapter WTA = new WATLEVELTableAdapter(); WTA.Connection.ConnectionString = ConnectionString; if (OnlyRo) { WTA.FillByNovanaOnlyRo(WATLEVEL); } else { WTA.FillByNovana(WATLEVEL); } WTA.Dispose(); }
/// <summary> /// Reads in the waterlevels from the database using the FillByNovana method. /// Only necessary fields are read. /// </summary> /// <param name="DataBaseFileName"></param> public void ReadWaterLevels( bool OnlyRo) { WATLEVELTableAdapter WTA = new WATLEVELTableAdapter(); WTA.Connection.ConnectionString = ConnectionString; if (OnlyRo) WTA.FillByNovanaOnlyRo(WATLEVEL); else WTA.FillByNovana(WATLEVEL); WTA.Dispose(); }