Example #1
0
        public MainWindow()
        {
            m_game.AddSubscriber(this);
            InitializeComponent();

            worker         = new System.ComponentModel.BackgroundWorker();
            worker.DoWork += new System.ComponentModel.DoWorkEventHandler(DoWork);
        }
Example #2
0
        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());
            }
        }