コード例 #1
0
        public RFIDReader(RaceLoggerDO dataObject, RaceLoggerGUI gui)
        {
            m_dataObject = dataObject;
            m_gui        = gui;
            m_serial     = 0;

            PassRefToGUI();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: yeungsta/race-logger
        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);
        }