private void LibraryOnLibraryChanged(object sender, LibraryViewModelArgs args) { switch (args.LibraryOperation) { case LibraryOperation.UpdateStarted: Percent = 0; ProgressState = ProgressState.Normal; break; case LibraryOperation.UpdatePercentChanged: Percent = args.Percent ?? 0; break; case LibraryOperation.UpdateMangaChanged: switch (args.MangaOperation) { case MangaOperation.Added: break; case MangaOperation.Deleted: break; case MangaOperation.UpdateStarted: break; case MangaOperation.UpdateCompleted: TaskbarIcon.ShowInTray(Strings.Library_Status_MangaUpdate + args.Manga.Name + " завершено.", args.Manga); break; case MangaOperation.None: break; default: throw new ArgumentOutOfRangeException(); } break; case LibraryOperation.UpdateCompleted: Percent = 0; ProgressState = ProgressState.None; break; default: throw new ArgumentOutOfRangeException(); } }