private void MainForm_Load(object sender, EventArgs e) { try { StreamReader sr = new StreamReader(Application.StartupPath + "\\Intervalle.inf"); this.TemperaturIntervall = Convert.ToSingle(sr.ReadLine()); this.FeuchtigkeitIntervall = Convert.ToSingle(sr.ReadLine()); this.DüngerIntervall = Convert.ToSingle(sr.ReadLine()); this.LichtIntervall = Convert.ToSingle(sr.ReadLine()); sr.Close(); } catch { } this.Mwv = new Messwertverwaltung(this, this.TemperaturIntervall, this.LichtIntervall, this.FeuchtigkeitIntervall, this.DüngerIntervall); this.schnittStelle = new RS232COM(this.Mwv, 115200, "1", 8); }
public IACServer(int port, Messwertverwaltung mwv, RS232COM com) : base(port) { this.mwv = mwv; this.ComPort = com; }