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 OpdaterSælger(SælgerBLL sælger) { try { SælgerDAL sælgerDAL = new SælgerDAL(); sælgerDAL.OpdaterSælger(sælger); } catch (Exception ex) { throw ex; } }
public void SletSælger(SælgerBLL sælger) { SælgerDAL sælgerDAL = new SælgerDAL(); sælgerDAL.SletSælger(sælger); }
public static SælgerBLL HentSælger(SælgerBLL sælgerToFind) { return(SælgerDAL.HentSælger(sælgerToFind)); }
public void OpretSælger(SælgerBLL sælger) { SælgerDAL sælgerDAL = new SælgerDAL(); sælgerDAL.OpretSælger(sælger); }
public static bool SælgerCPRExists(long cpr, int id) { return(SælgerDAL.SælgerCPRExists(cpr, id)); }
public static bool SælgerExists(int sælgerid) { return(SælgerDAL.SælgerExists(sælgerid)); }