コード例 #1
0
 public GroupEntry(string name)
 {
     Name    = name;
     Folders = new ParentedCollection <FolderEntry>(this);
     Folders.CollectionChanged += Folders_CollectionChanged;
     RefreshIcon();
 }
コード例 #2
0
 public override void InitializeConfig()
 {
     tvwApps.ItemsSource = CurrentApps = new ParentedCollection <AppEntry>(null,
                                                                           AppsManager.BuildNestedStructure(
                                                                               app => new AppEntry(app),
                                                                               (folderName, children) => new AppEntry(folderName, children)));
 }
コード例 #3
0
 public GroupEntry(string name, Keys shortcutKey, bool startup, IEnumerable <FolderEntry> folders)
 {
     Name        = name;
     Startup     = startup;
     ShortcutKey = shortcutKey;
     Folders     = new ParentedCollection <FolderEntry>(this, folders);
     Folders.CollectionChanged += Folders_CollectionChanged;
     RefreshIcon();
 }
コード例 #4
0
 public override void InitializeConfig() {
     tvwGroups.ItemsSource = CurrentGroups = new ParentedCollection<GroupEntry>(null,
             GroupsManager.Groups.Select(g => new GroupEntry(
             g.Name, g.ShortcutKey, g.Startup, g.Paths.Select(p => new FolderEntry(p)))));
 }
コード例 #5
0
 public GroupEntry(string name) {
     Name = name;
     Folders = new ParentedCollection<FolderEntry>(this);
     Folders.CollectionChanged += Folders_CollectionChanged;
     RefreshIcon();
 }
コード例 #6
0
 public GroupEntry(string name, Keys shortcutKey, bool startup, IEnumerable<FolderEntry> folders) {
     Name = name;
     Startup = startup;
     ShortcutKey = shortcutKey;
     Folders = new ParentedCollection<FolderEntry>(this, folders);
     Folders.CollectionChanged += Folders_CollectionChanged;
     RefreshIcon();
 }
コード例 #7
0
 public AppEntry(string folderName, IEnumerable <AppEntry> children)
 {
     Name     = folderName;
     Children = new ParentedCollection <AppEntry>(this, children);
 }
コード例 #8
0
 public override void InitializeConfig() {
     tvwApps.ItemsSource = CurrentApps = new ParentedCollection<AppEntry>(null,
             AppsManager.BuildNestedStructure(
             app => new AppEntry(app),
             (folderName, children) => new AppEntry(folderName, children)));
 }
コード例 #9
0
 public AppEntry(string folderName, IEnumerable<AppEntry> children) {
     Name = folderName;
     Children = new ParentedCollection<AppEntry>(this, children);
 }
コード例 #10
0
 public override void InitializeConfig()
 {
     tvwGroups.ItemsSource = CurrentGroups = new ParentedCollection <GroupEntry>(null,
                                                                                 GroupsManager.Groups.Select(g => new GroupEntry(
                                                                                                                 g.Name, g.ShortcutKey, g.Startup, g.Paths.Select(p => new FolderEntry(p)))));
 }