using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using ReadSample;
using WriteSample;

namespace TestDLLs
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnTest_Click(object sender, EventArgs e)
        {
            FH_Read fhRead = new FH_Read();
            FH_Write fhWrite = new FH_Write();
 
            // -1 = wir holen alles was an Read verfügbar ist
            DataTable dt = fhRead.FlowHeater_GetDataTable(-1);

            // nur damit wir am Bildschirm was sehen
            dataGridView1.DataSource = dt;

            fhWrite.FlowHeater_SetDataTable(dt);
        }
    }
}