public RFIDReader(RaceLoggerDO dataObject, RaceLoggerGUI gui) { m_dataObject = dataObject; m_gui = gui; m_serial = 0; PassRefToGUI(); }
static void Main() { RFIDReader m_rfidReader1; RFIDReader m_rfidReader2; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); RaceLoggerDO dataObject = new RaceLoggerDO(); RaceLoggerGUI raceLoggerGUI = new RaceLoggerGUI(dataObject); m_rfidReader1 = new RFIDReader(dataObject, raceLoggerGUI); m_rfidReader2 = new RFIDReader(dataObject, raceLoggerGUI); Application.Run(raceLoggerGUI); }