/ src / Ryujinx / UI / ViewModels / UserProfileViewModel.cs
UserProfileViewModel.cs
 1  using Ryujinx.Ava.UI.Models;
 2  using System;
 3  using System.Collections.ObjectModel;
 4  using System.Linq;
 5  
 6  namespace Ryujinx.Ava.UI.ViewModels
 7  {
 8      public class UserProfileViewModel : BaseModel, IDisposable
 9      {
10          public UserProfileViewModel()
11          {
12              Profiles = new ObservableCollection<BaseModel>();
13              LostProfiles = new ObservableCollection<UserProfile>();
14              IsEmpty = !LostProfiles.Any();
15          }
16  
17          public ObservableCollection<BaseModel> Profiles { get; set; }
18  
19          public ObservableCollection<UserProfile> LostProfiles { get; set; }
20  
21          public bool IsEmpty { get; set; }
22  
23          public void Dispose()
24          {
25              GC.SuppressFinalize(this);
26          }
27      }
28  }