/// <summary> /// Initializes a new <see cref="CategoryViewModel"/>. /// </summary>5 /// <param name="client">The <see cref="IDocularClient"/> used to fetch data from the database.</param> public CategoryViewModel(IDocularClient client) : base(client, Resources.Strings.General.CategoriesCaption, (Path)System.Windows.Application.Current.Resources["FolderIcon"]) { Contract.Requires <ArgumentNullException>(client != null); }
/// <summary> /// Initializes a new <see cref="CollectionViewModel{T}"/>. /// </summary> /// <param name="client">An <see cref="IDocularClient"/> used to fetch the data.</param> /// <param name="name">The <see cref="CollectionViewModel{T}"/>s name.</param> protected CollectionViewModel(IDocularClient client, String name) : base(client, name) { }
/// <summary> /// Initializes a new <see cref="CollectionViewModel{T}"/>. /// </summary> /// <param name="client">An <see cref="IDocularClient"/> used to fetch the data.</param> /// <param name="name">The <see cref="CollectionViewModel{T}"/>s name.</param> /// <param name="icon">The <see cref="CollectionViewModel{T}"/>'s icon.</param> protected CollectionViewModel(IDocularClient client, String name, Path icon) : base(client, name, icon) { }
/// <summary> /// Initializes a new <see cref="CollectionViewModel{T}"/>. /// </summary> /// <param name="client">An <see cref="IDocularClient"/> used to fetch the data.</param> protected CollectionViewModel(IDocularClient client) : base(client) { }
/// <summary> /// Initializes a new <see cref="TagViewModel"/>. /// </summary> /// <param name="client">The <see cref="IDocularClient"/> used to fetch data from the database.</param> public TagViewModel(IDocularClient client) : base(client, Resources.Strings.General.TagsCaption, (Path)System.Windows.Application.Current.Resources["TicketIcon"]) { Contract.Requires <ArgumentNullException>(client != null); }
/// <summary> /// Initializes a new <see cref="BaseViewModel"/>. /// </summary> /// <param name="client">An <see cref="IDocularClient"/> used to fetch the data.</param> /// <param name="name">The <see cref="BaseViewModel"/>s name.</param> /// <param name="icon">The <see cref="BaseViewModel"/>'s icon.</param> protected BaseViewModel(IDocularClient client, String name, Path icon) : this(client, name) { this.Icon = icon; }
/// <summary> /// Initializes a new <see cref="BaseViewModel"/>. /// </summary> /// <param name="client">An <see cref="IDocularClient"/> used to fetch the data.</param> /// <param name="name">The <see cref="BaseViewModel"/>s name.</param> protected BaseViewModel(IDocularClient client, String name) : this(name) { this.Client = client; }
/// <summary> /// Initializes a new <see cref="BaseViewModel"/>. /// </summary> /// <param name="client">An <see cref="IDocularClient"/> used to fetch the data.</param> protected BaseViewModel(IDocularClient client) : this((String)null) { this.Client = client; }