public MainWindow() { m_game.AddSubscriber(this); InitializeComponent(); worker = new System.ComponentModel.BackgroundWorker(); worker.DoWork += new System.ComponentModel.DoWorkEventHandler(DoWork); }
public void PlayGame(DiceGameModel.DiceGame a_game) { a_game.AddSubscriber(this); m_view.DisplayInstructions(); while (m_view.WantsToPlay()) { m_view.DisplayInstructions(); m_view.DisplayResult(a_game.Play()); } }