Example #1
0
 public BoardViewModel(IShell shell,
                       IBoard board,
                       IAttachmentViewer attachmentViewer,
                       FavoriteBoardsService favoriteBoardsService) {
     Shell = shell;
     Board = board;
     AttachmentViewer = attachmentViewer;
     FavoriteBoardsService = favoriteBoardsService;
     Threads = new ObservableCollection<BoardThreadViewModel>();
     Pages = new BindableCollection<int>();
     TryAgainAction = ChangePage;
 }
Example #2
0
 public HomeViewModel(IShell shell,
                      IBoard board,
                      FavoriteBoardsService favoriteBoardsService,
                      AllowedBoardsService allowedBoardsService,
                      SettingsViewModel settingsViewModel,
                      FavoritesViewModel favoritesViewModel,
                      RecentThreadsViewModel recentThreadsViewModel) {
     IsCloseable = false;
     DisplayName = Translate("Name");
     Shell = shell;
     Board = board;
     FavoriteBoardsService = favoriteBoardsService;
     SettingsViewModel = settingsViewModel;
     FavoritesViewModel = favoritesViewModel;
     AllowedBoardsService = allowedBoardsService;
     RecentThreadsViewModel = recentThreadsViewModel;
     Categories = new BindableCollection<BoardsCategory>();
     TryAgainAction = async () => await LoadCategories();
 }