Ejemplo n.º 1
0
 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();
        }
Ejemplo n.º 3
0
        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>();
        }
Ejemplo n.º 4
0
        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;
            }
        }
Ejemplo n.º 5
0
 public PackageVM(ExplorerTreeNodeVM parent, string path)
     : base(parent, path)
 {
 }
Ejemplo n.º 6
0
 public FolderVM(ExplorerTreeNodeVM parent, string path)
     : this(parent, path, IOPath.GetFileName(path))
 {
 }
Ejemplo n.º 7
0
 public PackageFileVM(ExplorerTreeNodeVM parent, string packageFile, string localPath, string name)
     : base(parent, UnifiedPath.Combine(packageFile, localPath), name)
 {
     this.LocalPath   = localPath;
     this.PackagePath = packageFile;
 }
Ejemplo n.º 8
0
 public FileVM(ExplorerTreeNodeVM parent, string path, string name)
     : base(parent, path, name, LoadChildenStrategy.Manual)
 {
     this.InitializeCommands();
 }
Ejemplo n.º 9
0
 public FileVM(ExplorerTreeNodeVM parent, string path)
     : this(parent, path, UnifiedPath.GetFileName(path))
 {
 }
Ejemplo n.º 10
0
 public VehicleNodeVMBase(ExplorerTreeNodeVM parent, string name, LoadChildenStrategy loadChildrenStrategy)
     : base(parent, name, loadChildrenStrategy)
 {
     VehicleNodeVMBase.VehicleSortingRuleChanged += OnVehicleSortingRuleChanged;
 }
Ejemplo n.º 11
0
 public RemotePackageFileVM(ExplorerTreeNodeVM parent, string packageFile, string localPath)
     : base(parent, packageFile, localPath)
 {
 }
Ejemplo n.º 12
0
 void IAddChild.AddChild(ExplorerTreeNodeVM child)
 {
     this.InternalChildren.Add(child);
 }