public Logik() { Database = new DatabaseAdgang(); DAQdata = new IndhentDAQData(); NulpunktObjekt = new Nulpunktsjustering(); KalibreringObjekt = new Kalibrering(); FilterObj = new Filter(); AnalyseKlasse = new Analyse(); updateUI = new Thread(() => updateListe()); UILISTE = new List<double>(); observers = new List<IObserver>(); FiltreretListe = new List<double>(); databasetal = new List<double>(); minKø = new Queue<double>(100); beregnetNværdi = 0.0; counter = 0; kalibreringKoef = KalibreringObjekt.Kalibrer(); DAQdata.Attach(this); for (int i = 0; i < 299; i++) { UILISTE.Add(0); } }
public HovedGUI(Logik logik_) { InitializeComponent(); logik = logik_; diaSystole = new Analyse(); logik.Attach(this); myTimer = new System.Timers.Timer(); myTimer.Enabled = true; myTimer.Interval = 3000; myTimer.Elapsed += myTimer_Elapsed; logik.Attach(this); Chart.ChartAreas[0].AxisY.Minimum = 0; Chart.ChartAreas[0].AxisY.Maximum = 250; }