public void Save()
 {
     if (null != _authors)
     {
         StorageProvider.SaveToLocalStorage(Constants.Strings.AuthorsLibrary, _authors);
         if (null != OnAuthorsChanged)
         {
             OnAuthorsChanged(this, new EventArgs());
         }
     }
 }
 public void Update()
 {
     _authors = StorageProvider.LoadFromLocalStorage <List <Author> >(Constants.Strings.AuthorsLibrary);
 }
 public AuthorsController()
 {
     _authors = StorageProvider.LoadFromLocalStorage <List <Author> >(Constants.Strings.AuthorsLibrary);
 }
 public void Update()
 {
     _publishers = StorageProvider.LoadFromLocalStorage <List <Publisher> >(Constants.Strings.PublishersLibrary);
 }
 public PublishersController()
 {
     _publishers = StorageProvider.LoadFromLocalStorage <List <Publisher> >(Constants.Strings.PublishersLibrary);
 }
Ejemplo n.º 6
0
 public BookController()
 {
     _books = StorageProvider.LoadFromLocalStorage <List <Book> >(Constants.Strings.BooksLibrary);
 }
Ejemplo n.º 7
0
 public void Update()
 {
     _books = StorageProvider.LoadFromLocalStorage <List <Book> >(Constants.Strings.BooksLibrary);
 }