Ejemplo n.º 1
0
 public CalculateBloodPreassure(iBusinessLogic businessLogic)
 {
     numberOfReadings = 500;
     bpList           = new List <double>();
     _alarm           = new Alarm();
     _businessLogic   = businessLogic;
 }
Ejemplo n.º 2
0
 public Save(iBusinessLogic businessLogic, EmployeeDTO employee)
 {
     InitializeComponent();
     _businessLogic = businessLogic;
     _saveData      = new SaveData();
     _Employee      = employee;
 }
Ejemplo n.º 3
0
        iBusinessLogic currentBl;                                         //Using an inteface defines implementation

        public MainWindow(EmployeeDbContext dbContext, iBusinessLogic bl) //Injected by DI Container
        {
            this.dbContext = dbContext;
            this.currentBl = bl;
            InitializeComponent(); //Standard WPF
            GetEmployees();        //Specific data initialization
        }
Ejemplo n.º 4
0
 public Program()
 {
     //Opsætning af referencer til implementationer af interfaces
     icurrentDAL   = new CtrlDataAccessLogic();
     icurrentBL    = new CtrlBusinessLogic(icurrentDAL);
     icurrentGUIPL = new  SimpelCtrlRPIUI(icurrentBL);
     //Eller omstil til en anden for UI (User Interface)
     //icurrentGUIPL = new AnotherGUI(icurrentBL);
     icurrentGUIPL.startUpGUI();//Trin start applikation
 }
Ejemplo n.º 5
0
 public Main(iBusinessLogic businessLogic)
 {
     _businessLogic = businessLogic;
     _businessLogic.AttachToRawFineObserver(this);
     _businessLogic.AttachToSystolicObserver(this);
     _businessLogic.AttachToMeanBPObserver(this);
     _businessLogic.AttachToPulseObserver(this);
     InitializeComponent();
     FormBorderStyle = FormBorderStyle.None;
 }
Ejemplo n.º 6
0
 public CalculateBloodPreassure(AutoResetEvent dataReadyResetEvent, Consumer consumer,
                                iBusinessLogic businessLogic, Alarm alarm)
 {
     _dataReadResetEvent = dataReadyResetEvent;
     _consumer           = consumer;
     _systolicValue      = 0;
     _consumer.Attach(this);
     bpList           = new List <double>();
     numberOfReadings = 1000; // Ændres potentielt til noget større.
     _businessLogic   = businessLogic;
     _alarm           = alarm;
 }
 public CtrlWPFGUI(iBusinessLogic mybl)
 {
     this.currentBL = mybl;
 }
 public SimpelCtrlRPIUI(iBusinessLogic mybl)
 {
     this.currentBL = mybl;
 }
Ejemplo n.º 9
0
 public Calibrate(iBusinessLogic businessLogic)
 {
     InitializeComponent();
     _BusinessLogic = businessLogic;
 }
Ejemplo n.º 10
0
 public Login(iBusinessLogic businessLogic)
 {
     InitializeComponent();
     _businessLogic = businessLogic;
     _saveData      = new SaveData();
 }
 public CtrlPresentation(iBusinessLogic mybl)
 {
     currentBL = mybl;
     Application.SetCompatibleTextRenderingDefault(false);
     _myMain = new Main(currentBL);
 }