private void readAllFromDB() { DatabaseController controller = new DatabaseController(); try { allRecords = controller.readAll(); } catch (Exception e) { Debug.WriteLine(e); } }
public ChartController() { db = new DatabaseController(); allRecords = db.readAll(); }