示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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;
     }
 }