示例#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);
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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);
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }