Beispiel #1
0
 public CalculateBloodPreassure(iBusinessLogic businessLogic)
 {
     numberOfReadings = 500;
     bpList           = new List <double>();
     _alarm           = new Alarm();
     _businessLogic   = businessLogic;
 }
Beispiel #2
0
 public Save(iBusinessLogic businessLogic, EmployeeDTO employee)
 {
     InitializeComponent();
     _businessLogic = businessLogic;
     _saveData      = new SaveData();
     _Employee      = employee;
 }
Beispiel #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
        }
Beispiel #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
 }
Beispiel #5
0
 public Main(iBusinessLogic businessLogic)
 {
     _businessLogic = businessLogic;
     _businessLogic.AttachToRawFineObserver(this);
     _businessLogic.AttachToSystolicObserver(this);
     _businessLogic.AttachToMeanBPObserver(this);
     _businessLogic.AttachToPulseObserver(this);
     InitializeComponent();
     FormBorderStyle = FormBorderStyle.None;
 }
Beispiel #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;
 }
Beispiel #9
0
 public Calibrate(iBusinessLogic businessLogic)
 {
     InitializeComponent();
     _BusinessLogic = businessLogic;
 }
Beispiel #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);
 }