public CalculateBloodPreassure(iBusinessLogic businessLogic) { numberOfReadings = 500; bpList = new List <double>(); _alarm = new Alarm(); _businessLogic = businessLogic; }
public Save(iBusinessLogic businessLogic, EmployeeDTO employee) { InitializeComponent(); _businessLogic = businessLogic; _saveData = new SaveData(); _Employee = employee; }
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 }
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 }
public Main(iBusinessLogic businessLogic) { _businessLogic = businessLogic; _businessLogic.AttachToRawFineObserver(this); _businessLogic.AttachToSystolicObserver(this); _businessLogic.AttachToMeanBPObserver(this); _businessLogic.AttachToPulseObserver(this); InitializeComponent(); FormBorderStyle = FormBorderStyle.None; }
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; }
public Calibrate(iBusinessLogic businessLogic) { InitializeComponent(); _BusinessLogic = businessLogic; }
public Login(iBusinessLogic businessLogic) { InitializeComponent(); _businessLogic = businessLogic; _saveData = new SaveData(); }
public CtrlPresentation(iBusinessLogic mybl) { currentBL = mybl; Application.SetCompatibleTextRenderingDefault(false); _myMain = new Main(currentBL); }