public ViewData(string name) : base(name) { FileHandler file = new FileHandler(); foreach (string s in file.GetDirectorySubfolders(file.Files)) { GameViewModel game = new GameViewModel(Path.GetFileName(s), s); Games.Add(game); } }
public ViewData(string name) : base(name) { FileHandler file = new FileHandler(); foreach (string s in file.GetDirectorySubfolders(file.Files)) { GameViewModel game = new GameViewModel(Path.GetFileName(s), s); Games.Add(game); } }