Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentType" /> class.
 /// </summary>
 /// <param name="name">The name of the document type.</param>
 /// <param name="factory">The document factory.</param>
 /// <param name="icon">
 /// The document icon (<see cref="ImageSource"/> or <see cref="MultiColorGlyph"/>).
 /// </param>
 /// <param name="fileExtensions">The <see cref="FileExtensions"/>.</param>
 /// <param name="isCreatable">
 /// <see langword = "true" /> if the document type should be listed in the "New" menu;
 /// otherwise, <see langword="false"/>.
 /// </param>
 /// <param name="isLoadable">
 /// <see langword="true"/> if existing documents of this type can be loaded; otherwise,
 /// <see langword="false"/>.
 /// </param>
 /// <param name="isSavable">
 /// <see langword="true"/> if existing documents of this type can be saved; otherwise,
 /// <see langword="false"/>.
 /// </param>
 /// <param name="priority">
 /// The <see cref="Priority"/>.
 /// </param>
 public DocumentType(
     string name, DocumentFactory factory, object icon = null,
     IEnumerable<string> fileExtensions = null, bool isCreatable = false,
     bool isLoadable = false, bool isSavable = false, int priority = 0)
 {
     Name = name;
     Factory = factory;
     Icon = icon;
     FileExtensions = fileExtensions;
     IsCreatable = isCreatable;
     IsLoadable = isLoadable;
     IsSavable = isSavable;
     Priority = priority;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentType" /> class.
 /// </summary>
 /// <param name="name">The name of the document type.</param>
 /// <param name="factory">The document factory.</param>
 /// <param name="icon">
 /// The document icon (<see cref="ImageSource"/> or <see cref="MultiColorGlyph"/>).
 /// </param>
 /// <param name="fileExtensions">The <see cref="FileExtensions"/>.</param>
 /// <param name="isCreatable">
 /// <see langword = "true" /> if the document type should be listed in the "New" menu;
 /// otherwise, <see langword="false"/>.
 /// </param>
 /// <param name="isLoadable">
 /// <see langword="true"/> if existing documents of this type can be loaded; otherwise,
 /// <see langword="false"/>.
 /// </param>
 /// <param name="isSavable">
 /// <see langword="true"/> if existing documents of this type can be saved; otherwise,
 /// <see langword="false"/>.
 /// </param>
 /// <param name="priority">
 /// The <see cref="Priority"/>.
 /// </param>
 public DocumentType(
     string name, DocumentFactory factory, object icon = null,
     IEnumerable <string> fileExtensions = null, bool isCreatable = false,
     bool isLoadable = false, bool isSavable = false, int priority = 0)
 {
     Name           = name;
     Factory        = factory;
     Icon           = icon;
     FileExtensions = fileExtensions;
     IsCreatable    = isCreatable;
     IsLoadable     = isLoadable;
     IsSavable      = isSavable;
     Priority       = priority;
 }