public NationNodeVM(ExplorerTreeNodeVM parent, LocalGameClient client, string nation) : base(parent, client.Localization.GetLocalizedNationName(nation), LoadChildenStrategy.LazyDynamicAsync) { _client = client; this.Nation = nation; _unikey = new NationUnikey(client, nation); }
protected FileSystemObjectVM(ExplorerTreeNodeVM parent, string path, string name, LoadChildenStrategy loadChildenStrategy) : base(parent, name, loadChildenStrategy) { this.Path = path == null ? null : PathEx.NormalizeDirectorySeparators(path); this.InitializeCommands(); }
public PackageFolderVM(ExplorerTreeNodeVM parent, string packageFile, string localPath) : base(parent, UnifiedPath.Combine(packageFile, localPath), UnifiedPath.GetFileName(localPath)) { this.LocalPath = localPath; this.PackagePath = packageFile; _childEntries = new List <ZipEntry>(); }
public FolderVM(ExplorerTreeNodeVM parent, string path, string name) : base(parent, path, name, LoadChildenStrategy.LazyStaticAsync) { this.UpdateIconSource(); if (!this.IsInPackage && Directory.Exists(this.Path)) { _watcher = new FileSystemWatcher(this.Path); _watcher.Created += FileSystemWatcher_Changed; _watcher.Deleted += FileSystemWatcher_Changed; _watcher.Renamed += FileSystemWatcher_Renamed; } }
public PackageVM(ExplorerTreeNodeVM parent, string path) : base(parent, path) { }
public FolderVM(ExplorerTreeNodeVM parent, string path) : this(parent, path, IOPath.GetFileName(path)) { }
public PackageFileVM(ExplorerTreeNodeVM parent, string packageFile, string localPath, string name) : base(parent, UnifiedPath.Combine(packageFile, localPath), name) { this.LocalPath = localPath; this.PackagePath = packageFile; }
public FileVM(ExplorerTreeNodeVM parent, string path, string name) : base(parent, path, name, LoadChildenStrategy.Manual) { this.InitializeCommands(); }
public FileVM(ExplorerTreeNodeVM parent, string path) : this(parent, path, UnifiedPath.GetFileName(path)) { }
public VehicleNodeVMBase(ExplorerTreeNodeVM parent, string name, LoadChildenStrategy loadChildrenStrategy) : base(parent, name, loadChildrenStrategy) { VehicleNodeVMBase.VehicleSortingRuleChanged += OnVehicleSortingRuleChanged; }
public RemotePackageFileVM(ExplorerTreeNodeVM parent, string packageFile, string localPath) : base(parent, packageFile, localPath) { }
void IAddChild.AddChild(ExplorerTreeNodeVM child) { this.InternalChildren.Add(child); }