Example #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);
        }
Example #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);
        }
Example #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");
        }