예제 #1
0
 public void AddFavouriteBoard(ForumBoards board)
 {
     if (!PinnedBoards.Contains(board))
     {
         PinnedBoards.Add(board);
         Settings.ForumsPinnedBoards = string.Join(",", PinnedBoards.Cast <int>());
     }
 }
예제 #2
0
 public ForumsMainViewModel()
 {
     if (!string.IsNullOrEmpty(Settings.ForumsPinnedBoards))
     {
         foreach (var item in Settings.ForumsPinnedBoards.Split(',').Select(int.Parse).Cast <ForumBoards>())
         {
             PinnedBoards.Add(item);
         }
     }
 }