コード例 #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;
 }