/// <summary> /// Initializes a new instance of the <see cref="ProcessView"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="guid">The GUID.</param> /// <param name="viewType">The view type.</param> /// <param name="configuration">The configuration.</param> /// <param name="sections">The sections.</param> public ProcessView( string name, Guid guid, ProcessViewType viewType, string configuration, IEnumerable<IProcessViewSection> sections) { Name = name; Guid = guid; ViewType = viewType; Configuration = configuration; SectionList = sections; }
/// <summary> /// Initializes a new instance of the <see cref="ExportAsProcessViewTemplateAttribute"/> class. /// </summary> /// <param name="viewType">Type of the view.</param> public ExportAsProcessViewTemplateAttribute(ProcessViewType viewType) : base(typeof(IProcessViewTemplate)) { _viewType = viewType; }
/// <summary> /// Initializes a new instance of the <see cref="ExportAsProcessViewViewModelAttribute"/> class. /// </summary> /// <param name="viewType">Type of the view.</param> public ExportAsProcessViewViewModelAttribute(ProcessViewType viewType) : base(typeof(IProcessViewViewModel)) { _viewType = viewType; }
/// <summary> /// The get template for type. /// </summary> /// <param name="viewType">The view type.</param> /// <returns>The <see cref="IProcessViewTemplate" />.</returns> public IProcessViewTemplate GetTemplateForType(ProcessViewType viewType) { return ProcessViewsFactory.FirstOrDefault(v => v.Metadata.ViewType == viewType).With(v => v).Return(v => v.Value, null); }