public DirectoryItemViewModel(string fullpath, DirectoryType type, string Name, bool hidden)
 {
     this.ExpandCommand = new RelayCommand(Expand);
     this.Hidden        = hidden;
     this.FullPath      = fullpath;
     this._type         = type;
     this.Name          = Name;
     this.ClearChildren();
     this.Image = new BitmapImage(new Uri(DirectoryStructure.GetPicture(this.Type)));
 }
 public InspectViewModel(string fullpath, DirectoryType type, string name, bool hidden)
 {
     FullPath = fullpath;
     Name     = name;
     Type     = type;
     Image    = new BitmapImage(new Uri(DirectoryStructure.GetPicture(type)));
     if (FileBrowserSetting.ShowHiddenFiles)
     {
         Hidden = false;
     }
     else
     {
         Hidden = hidden;
     }
 }