Example #1
0
 public static void SaveChangesAuthor(AuthorVM sender)
 {
     Author newAuthor = new Author(sender.firstName, sender.lastName, sender.id);
     sender.magazine.shopMagazine.authors.Remove(sender.selectedAuthor);
     sender.magazine.shopMagazine.authors.Add(newAuthor);
     sender.ActualizeAuthorsList();
 }
Example #2
0
 public static void DeleteAuthor(AuthorVM sender)
 {
     sender.magazine.shopMagazine.authors.Remove(sender.selectedAuthor);
     sender.ActualizeAuthorsList();
 }
Example #3
0
 public static void AddAuthor(AuthorVM sender)
 {
     Author newAuthor = new Author(sender.firstName, sender.lastName, sender.id);
     sender.magazine.shopMagazine.authors.Add(newAuthor);
     sender.ActualizeAuthorsList();
 }