private void buttonInspect_Click(object sender, EventArgs e) { int session = GetSession(); if (session > 0) { try { this_session = new BingoSession(schedule, the_day, session); UpdateStatus("Inspecting Session: " + this_session.session_name.ToString() + "..."); } catch { return; } } else { MessageBox.Show("Cannot open session " + session); return; } //#if null try { playing_session = new BingoSessionEvent(this_session, true); } catch (Exception session_exception) { Log.log(session_exception.Message); return; } { playing_session.LoadPlayers(); RunSession(false); //playing_session.Play(); while (playing_session.Active) { Thread.SpinWait(100); } CardBrowsingForm sb = new CardBrowsingForm(playing_session); sb.ShowDialog(); } //#endif // SessionBrowser sb = new SessionBrowser( schedule, this_session ); // sb.ShowDialog(); }
void bingo_events_BallPulled(object sender, BingoEvents.BingoSimpleIntEventArgs e) { session_event.LoadPlayers(); }