Пример #1
0
        public BingoGameVerifier()
        {
            schedule = new OpenSkieScheduler3.ScheduleDataSet(StaticDsnConnection.dsn);
            schedule.Create();
            schedule.Fill();

            bingo_events        = new BingoEventInterface();
            bingo_game_tracking = new BingoSQLTracking.BingoTracking();
            bingo_game_tracking.ConnnectBingoTrackingToDatabase(StaticDsnConnection.dsn.DataSource);
            bingo_game_tracking.Create();
            bingo_game_tracking.HookEvents(bingo_events);
            bingo_game_tracking.LoadCurrent();

            // setup to be able to serve information to others.
            //bingo_game_core = new BingoGameCore3.Networking.FlashdriveSlaveHost();
            //bingo_game_core.Start();

            //bingo_game_core_data = new BingoGameCore3.BallData.FlashdriveController();
            //bingo_game_core_data.Events = bingo_events;
            //bingo_game_core_data.Start();
            //bingo_game_ball_device = bingo_game_core_data;

            // setup events to track the state of the current game.
            bingo_events.BingodayChanged += new BingoEvents.SimpleDateEvent(bingo_events_BingodayChanged);
            bingo_events.SessionChanged  += new BingoEvents.SimpleIntEvent(bingo_events_SessionChanged);
            bingo_events.GameChanged     += new BingoEvents.SimpleIntEvent(bingo_events_GameChanged);
            bingo_events.BallPulled      += new BingoEvents.SimpleIntEvent(bingo_events_BallPulled);
        }
Пример #2
0
        public BingoHall()
        {
            BingodayChanged += BingoHall_BingodayChanged;
            SessionChanged  += BingoHall_SessionChanged;
            GameChanged     += BingoHall_GameChanged;
            bingo_tracking   = new BingoSQLTracking.BingoTracking();

            bingo_tracking.ConnnectBingoTrackingToDatabase("game_database3.db");

            schedule = new ScheduleDataSet();

            Events = new BingoEventInterface();

            bingo_tracking.HookEvents(Events);

            Events.SessionChanging += new BingoEvents.SimpleIntQueryEvent(Events_SessionChanging);
            Events.BingodayChanged += new BingoEvents.SimpleDateEvent(event_interface_BingodayChanged);
            Events.SessionChanged  += new BingoEvents.SimpleIntEvent(event_interface_SessionChanged);
            Events.GameChanged     += new BingoEvents.SimpleIntEvent(Events_GameChanged);
        }