private void SetLibrary(int index)
 {
     _libraryId = index;
     InLibrary  = true;
     while (InLibrary)
     {
         Action action = LibraryMenu.SelectOption();
         if (action != null)
         {
             action.Invoke();
         }
     }
 }