public SagUI() { InitializeComponent(); //series of loop that add elements in combobox from methods that return lists of elements //uses three different threads to have the list always updated bolig = new BoligDAL(sag_boligID_cbox); Thread t1 = new Thread(new ThreadStart(bolig.GenerateBolig)); t1.IsBackground = true; t1.Start(); sælger = new SælgerDAL(sag_sælgerID_cbox); Thread t2 = new Thread(new ThreadStart(sælger.GenerateSælger)); t2.IsBackground = true; t2.Start(); ejendomsmægler = new EjendomsmæglerDAL(sag_ejendomsmæglerID_cbox); Thread t3 = new Thread(new ThreadStart(ejendomsmægler.GenerateEjendomsmægler)); t3.IsBackground = true; t3.Start(); }
public void SletBolig(BoligBLL bolig) { BoligDAL boligDAL = new BoligDAL(); boligDAL.SletBolig(bolig); }
public void OpdaterBolig(BoligBLL bolig) { BoligDAL boligDAL = new BoligDAL(); boligDAL.OpdaterBolig(bolig); }
public static BoligBLL HentBolig(BoligBLL boligToFind) { return(BoligDAL.HentBolig(boligToFind)); }
public static bool BoligExists(int boligid) { return(BoligDAL.BoligExists(boligid)); }