Пример #1
0
        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);

            this.server = new IACServer(8080, this.Mwv, this.schnittStelle);
            this.server.Start();
        }
Пример #2
0
        //*********************
        //Konstruktoren
        //*********************

        public Bewässerung(RS232COM ComPort)
        {
            InitializeComponent();
            this.ComPort = ComPort;
        }