public ModuleLayoutDescriptor(string name, string page, int pageSorter, string group, int groupSorter, string label, int labelSorter, IVisualServiceMetadata visualServieMetadata) { IsStart = false; Visible = true; Name = name; Page = page; PageSorter = pageSorter; Group = group; GroupSorter = groupSorter; Label = label; LabelSorter = labelSorter; VisualServieMetadata = visualServieMetadata; if (visualServieMetadata.ImageUri != null) LargeGlyph = new BitmapImage(new Uri(visualServieMetadata.ImageUri)); }
public ModuleLayoutDescriptor GenerateDescriptor(IVisualServiceMetadata module) { return new ModuleLayoutDescriptor(module.Descriptor, "Application", 1, "Application", 1, "Application " + module.Descriptor, 1, module); }
/// <summary> /// Gets a Service on based of his Metadata /// </summary> /// <typeparam name="T">Your Service interface</typeparam> /// <param name="serviceMetadata">Your Service Metadata</param> /// <returns>The Service [Can be Null]</returns> public T CreateService <T>(IVisualServiceMetadata serviceMetadata) where T : class, IVisualService { var service = ServicePool.Instance.GetSingelService <T>(serviceMetadata); return(service); }