/// <summary> /// Private constructer called on start-up, loads the data from the database /// </summary> private DomainControler() { dataBaseHelper = new DataBase(); institute = new Institute("it carlow"); institute.setBuildingList(dataBaseHelper.loadBuildingList(institute)); institute.setDeptList(dataBaseHelper.loadDepartmentList(institute)); }
static void Main(string[] args) { DataBase mybd = new DataBase(); Institute itc = new Institute("it carlow"); itc.setBuildingList(mybd.loadBuildingList(itc)); itc.setDeptList(mybd.loadDepartmentList(itc)); Console.Read(); }
private void InitializeVaribales() { dbhelper = controler.getDBHelper(); //get the array of rooms roomList = new Room[dbhelper.getRoomList().getLenght()]; //int numOfRooms = roomList.getLenght(); population = new Lesson[10][][]; for (int x = 0; x < population.Length; x++) { population[x] = new Lesson[40][]; for (int y = 0; y < population[x].Length; y++) {
/// <summary> /// Private constructer called on start-up, loads the data from the database /// </summary> private DomainControler() { dataBaseHelper = new DataBase(); dataBaseHelper.update(); institute = new Institute("it carlow"); }