예제 #1
0
        public OfflineFileNodeViewModel(FileInfo fileInfo, OfflineFolderViewModel parent,
                                        ObservableCollection <IBaseNode> parentCollection = null, ObservableCollection <IBaseNode> childCollection = null)
            : base(parent, parentCollection, childCollection)
        {
            Update(fileInfo);

            this.IsDefaultImage       = true;
            this.DefaultImagePathData = ImageService.GetDefaultFileTypePathData(this.Name);
        }
예제 #2
0
        protected OfflineNodeViewModel(OfflineFolderViewModel parent,
                                       ObservableCollection <IBaseNode> parentCollection = null, ObservableCollection <IBaseNode> childCollection = null)
            : base(SdkService.MegaSdk)
        {
            this.Parent           = parent;
            this.ParentCollection = parentCollection;
            this.ChildCollection  = childCollection;

            this.RemoveFromOfflineCommand = new RelayCommand(RemoveFromOffline);
        }
예제 #3
0
        public OfflineFolderNodeViewModel(DirectoryInfo folderInfo, OfflineFolderViewModel parent,
                                          ObservableCollection <IBaseNode> parentCollection = null, ObservableCollection <IBaseNode> childCollection = null)
            : base(parent, parentCollection, childCollection)
        {
            Update(folderInfo);
            SetFolderInfo();

            this.IsDefaultImage       = true;
            this.DefaultImagePathData = ResourceService.VisualResources.GetString("VR_FolderTypePath_default");
        }