Beispiel #1
0
        public mainForm(FTDI dev)
        {
            InitializeComponent();

            m_graphBuilder = new GraphBuilder();

            m_bulk = new FTDIBulkDriver(m_graphBuilder, dev, kDevice_Descriptor, 9600u);
            m_reader = new AdnsReader(m_graphBuilder);
            m_printer = new Printer(m_graphBuilder, Graphics.FromHwnd(Handle));

            m_graphBuilder.ConnectApplets(m_bulk, m_reader);
            m_graphBuilder.ConnectApplets(m_reader, m_printer);

            m_bulk.start(900);
        }
Beispiel #2
0
        public mainForm(FTDI dev)
        {
            InitializeComponent();
            m_graphBuilder = new GraphBuilder();
            m_defectoscope = new CHDDriver(m_graphBuilder, dev, kDevice_Descriptor, 9600u);
            m_defectoscopeCharts = new DefectoscopeApplet(m_graphBuilder, mainChartPanel, dipoleChartPanel, dipoleListBox, this);

            m_graphBuilder.ConnectApplets(m_defectoscope, m_defectoscopeCharts);
        }