예제 #1
0
        public LocalRootFolder()
            : base(string.Empty, null)
        {
            using (DataSourceShell shellItem = LocalExplorerFactory.GetPCRootShellItem())
            {
                this.Name = shellItem.DisplayName;
                this.Icon = shellItem.Icon;
            }

            this.IsCheckVisible = false;
            this.IsExpanded     = true;
            this.IsSelected     = true;
            this.Parent         = this;
        }
예제 #2
0
        public CDRomRootFolder(string jsonPath)
            : base()
        {
            if (jsonPath.IsNullOrEmpty())
            {
                throw new ArgumentNullException();
            }
            using (DataSourceShell shellItem = LocalExplorerFactory.GetPCRootShellItem())
            {
                this.Name = shellItem.DisplayName;
                this.Icon = shellItem.Icon;
            }

            this.JsonPath   = jsonPath;
            this.IsExpanded = true;
            this.IsSelected = true;
            this.IsChecked  = true;
            this.Parent     = this;
        }
예제 #3
0
        public CopyBackupRootFolder(string rootFolder, string displayName)
            : base(string.Empty, null, null)
        {
            if (rootFolder.IsNullOrEmpty())
            {
                throw new ArgumentNullException();
            }

            RootFolder = rootFolder;

            using (DataSourceShell shellItem = LocalExplorerFactory.GetPCRootShellItem())
            {
                this.Name = displayName;
                this.Icon = shellItem.Icon;
            }

            this.IsCheckVisible = false;
            this.IsExpanded     = true;
            this.IsSelected     = true;
            this.Parent         = this;
        }