/// <summary> /// Initializes a new instance of the <see cref="FileRowViewModel"/> class. /// </summary> /// <param name="file"> /// The <see cref="File"/> associated with this row /// </param> /// <param name="session"> /// The session /// </param> /// <param name="containerViewModel"> /// The <see cref="IViewModelBase<Thing>"/> that is the container of this <see cref="IRowViewModelBase{Thing}"/> /// </param> public FileRowViewModel(File file, ISession session, IViewModelBase <Thing> containerViewModel, IFileStoreFileAndFolderHandler fileStoreFileAndFolderHandler) : base(file, session, containerViewModel) { if (containerViewModel == null) { throw new ArgumentNullException(nameof(containerViewModel), $"The {nameof(containerViewModel)} may not be null"); } this.parentFileStoreFileAndFolderHandler = fileStoreFileAndFolderHandler; this.UpdateProperties(); }
/// <summary> /// Initializes a new instance of the <see cref="FolderRowViewModel"/> class. /// </summary> /// <param name="folder"> /// The <see cref="Folder"/> associated with this row /// </param> /// <param name="session"> /// The session /// </param> /// <param name="containerViewModel"> /// The <see cref="IViewModelBase{Thing}"/> that is the container of this <see cref="FolderRowViewModel"/> /// </param> public FolderRowViewModel(Folder folder, ISession session, IViewModelBase <Thing> containerViewModel, IFileStoreFileAndFolderHandler parentFileStoreFileAndFolderHandler) : base(folder, session, containerViewModel) { this.parentFileStoreFileAndFolderHandler = parentFileStoreFileAndFolderHandler; }
/// <summary> /// Initializes a new instance of the <see cref="DomainFileStoreRowViewModel"/> class /// </summary> /// <param name="store">The associated <see cref="DomainFileStore"/></param> /// <param name="session">The <see cref="ISession"/></param> /// <param name="containerViewModel">The container view-model</param> public DomainFileStoreRowViewModel(DomainFileStore store, ISession session, IViewModelBase <Thing> containerViewModel) : base(store, session, containerViewModel) { this.fileStoreFileAndFolderHandler = new FileStoreFileAndFolderHandler <DomainFileStore>(this); this.UpdateProperties(); }