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();
        }
Exemplo n.º 2
0
        public void SletBolig(BoligBLL bolig)
        {
            BoligDAL boligDAL = new BoligDAL();

            boligDAL.SletBolig(bolig);
        }
Exemplo n.º 3
0
        public void OpdaterBolig(BoligBLL bolig)
        {
            BoligDAL boligDAL = new BoligDAL();

            boligDAL.OpdaterBolig(bolig);
        }
Exemplo n.º 4
0
 public static BoligBLL HentBolig(BoligBLL boligToFind)
 {
     return(BoligDAL.HentBolig(boligToFind));
 }
Exemplo n.º 5
0
 public static bool BoligExists(int boligid)
 {
     return(BoligDAL.BoligExists(boligid));
 }