Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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)
 {
 }
Beispiel #3
0
 /// <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)
 {
 }
Beispiel #4
0
 /// <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)
 {
 }
Beispiel #5
0
 /// <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);
 }
Beispiel #6
0
 /// <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;
 }
Beispiel #7
0
 /// <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;
 }
Beispiel #8
0
 /// <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;
 }