Exemplo n.º 1
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);
     }
 }
Exemplo n.º 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;
     }
 }