private WINDOW_TYPE CreateWindowRepresentationInternal(object target, out LinkSyncroDaemon daemon, string layout = CmlLinkSource.DEFAULT_LAYOUT) { RepresentationResult result = this.AssertCreateRepresentation(target, layout); WINDOW_TYPE window = result.GetRepresentation <WINDOW_TYPE>(); daemon = result.CreateLinkSyncroDaemon <PERIODIC_PROCESS_TYPE>(); AttachLinkSyncroDaemon(window, daemon); return(window); }
static public T GetRepresentation <T>(this RepresentationResult item) { return(item.GetRepresentation().Convert <T>()); }