/// <summary> /// Constructor /// </summary> /// <param name="myLL">Kontrolklassen for logiklag som parameter</param> /// <param name="MDTO">Reference til monitorerings-DTO'en i BTAHovedvindue</param> public Gemvindue(ControlLogikLag myLL, ref MonitorerDTO MDTO) { this.currentLL = myLL; InitializeComponent(); this.GDTO = currentLL.GLL.GDTO; this.MDTO = MDTO; LLængde.Text = (MDTO.RåBlodtrykssignal.Count / 1000).ToString() + " sek"; }
public Program() { //Dependensy injektion currentDL = new ControlDataLag(); currentLL = new ControlLogikLag(currentDL); currentPL = new ControlPræsentationsLag(currentLL); currentPL.startGUI(); }
/// <summary> /// Constructor /// </summary> /// <param name="myLL">Kontrolklassen for logiklag som parameter</param> public KalibreringsVindue(ControlLogikLag myLL) { this.currentLL = myLL; InitializeComponent(); this.KDTO = currentLL.KLL.KDTO; btnKalibreringNr2.Enabled = false; txbKalibreringNr2.Enabled = false; txbKalibreringNr1.Text = (0).ToString(); txbKalibreringNr2.Text = (0).ToString(); }
//private SemaphoreSlim sem; /// <summary> /// Constructor, der initialisere BTA-vinduet og opretter en kalibrerings DTO /// </summary> public BTAHovedvindue(ControlLogikLag myLL) { currentLL = myLL; InitializeComponent(); KDTO = new KalibreringDTO(); MDTO = new MonitorerDTO(); currentLL.MLL.indstilRefTilDTO(ref MDTO); BTChartInit(); alarmLydTilstand = true; alarmOnOff = true; currentLL.MLL.sem = new SemaphoreSlim(1); }
/// <summary> /// Constructor der initialiserer Præsentationslaget /// </summary> /// <param name="myLL">Modtager kontrolklassen for logiklag som parameter</param> public ControlPræsentationsLag(ControlLogikLag myLL) { currentLL = myLL; }