Skip to content

Commit

Permalink
NR: use new ObservableList in ShellViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Sep 24, 2023
1 parent a445c25 commit 7d84286
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/NewsReader/NewsReader.Applications/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "<Pending>", Scope = "member", Target = "~M:Waf.NewsReader.Applications.Controllers.DataController.DownloadAndMerge~System.Threading.Tasks.Task")]
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "<Pending>", Scope = "member", Target = "~M:Waf.NewsReader.Applications.Controllers.DataController.Upload~System.Threading.Tasks.Task")]
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "<Pending>", Scope = "member", Target = "~M:Waf.NewsReader.Applications.Controllers.FeedsController.LoadFeed(Waf.NewsReader.Domain.Feed,System.Boolean)~System.Threading.Tasks.Task")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "Waf.NewsReader.Applications.Controllers.AppController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "Waf.NewsReader.Applications.Controllers.DataController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "Waf.NewsReader.Applications.Controllers.FeedsController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "Waf.NewsReader.Applications.Controllers.SettingsController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Waf.NewsReader.Applications.ViewModels.SettingsViewModel.#UICulture")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Waf.NewsReader.Applications.ViewModels.SettingsViewModel.#Culture")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Waf.NewsReader.Applications.ViewModels.SettingsViewModel.#Now")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "Waf.NewsReader.Applications.ViewModels.SettingsViewModel.#CurrencyValue")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "~T:Waf.NewsReader.Applications.Controllers.AppController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "~T:Waf.NewsReader.Applications.Controllers.DataController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "~T:Waf.NewsReader.Applications.Controllers.FeedsController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Scope = "type", Target = "~T:Waf.NewsReader.Applications.Controllers.SettingsController")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "~P:Waf.NewsReader.Applications.ViewModels.SettingsViewModel.UICulture")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "~P:Waf.NewsReader.Applications.ViewModels.SettingsViewModel.Culture")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "~P:Waf.NewsReader.Applications.ViewModels.SettingsViewModel.Now")]
[assembly: SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "~P:Waf.NewsReader.Applications.ViewModels.SettingsViewModel.CurrencyValue")]
[assembly: SuppressMessage("Design", "CA1044:Properties should not be write only", Justification = "<Pending>", Scope = "member", Target = "~P:Waf.NewsReader.Applications.ViewModels.SettingsViewModel.MessageService")]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Waf.NewsReader.Applications.ViewModels;
public class ShellViewModel : ViewModelCore<IShellView>, INavigationService
{
private NavigationItem? selectedFooterMenu;
private ObservableCollection<Feed> feeds = null!;
private ObservableList<Feed> feeds = null!;
private Feed? selectedFeed;
private object? currentPage;

Expand Down Expand Up @@ -45,7 +45,7 @@ public NavigationItem? SelectedFooterMenu
}
}

public ObservableCollection<Feed> Feeds
public ObservableList<Feed> Feeds
{
get => feeds;
internal set => SetProperty(ref feeds, value);
Expand Down

0 comments on commit 7d84286

Please sign in to comment.