public void Update() { _menu.Update(); if (_menu.GetSelectedItem("No! (Return to Menu)")) { _menuStack.Pop(); _systemMain.SetStack(_menuStack); } if (_menu.GetSelectedItem("Yes! (Start Quiz)")) { _booklet.Reset(); _menuStack.Push(new QuizDisplay(_booklet.GetNextQuiz(), this)); _systemMain.SetStack(_menuStack); } }
public bool SaveBooklet(PlayerIndex playerIndex, Booklet booklet) { booklet.Reset(); this.WaitOnOperation(); try { _currentBooklet = booklet; if (!_nameWrapper.BookletNames.Contains(booklet.GetTitle())) { _nameWrapper.BookletNames.Add(booklet.GetTitle()); } FindCabinet(playerIndex, CabinetMode.Save, booklet.GetTitle()); this.Close(); return(true); } catch (Exception) { return(false); } }
public bool SaveBooklet(PlayerIndex playerIndex, Booklet booklet) { booklet.Reset(); this.WaitOnOperation(); try { _currentBooklet = booklet; if (!_nameWrapper.BookletNames.Contains(booklet.GetTitle())) { _nameWrapper.BookletNames.Add(booklet.GetTitle()); } FindCabinet(playerIndex, CabinetMode.Save, booklet.GetTitle()); this.Close(); return true; } catch (Exception) { return false; } }