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 LinkSyncroDaemon CreateLinkSyncroDaemon <PERIODIC_PROCESS_TYPE>(this RepresentationResult item) where PERIODIC_PROCESS_TYPE : PeriodicProcess { return(new LinkSyncroDaemon <PERIODIC_PROCESS_TYPE>(item.GetLinkManager(), item.GetSyncroManager())); }
static public LinkSyncroDaemon CreateLinkSyncroDaemon <PERIODIC_PROCESS_TYPE>(this RepresentationResult item, long li, long si, params KeyValuePair <string, long>[] g) where PERIODIC_PROCESS_TYPE : PeriodicProcess { return(item.CreateLinkSyncroDaemon <PERIODIC_PROCESS_TYPE>(li, si, (IEnumerable <KeyValuePair <string, long> >)g)); }
static public LinkSyncroDaemon CreateLinkSyncroDaemon <PERIODIC_PROCESS_TYPE>(this RepresentationResult item, long li, long si, IEnumerable <KeyValuePair <string, long> > g) where PERIODIC_PROCESS_TYPE : PeriodicProcess { return(new LinkSyncroDaemon <PERIODIC_PROCESS_TYPE>(item.GetLinkManager(), li, item.GetSyncroManager(), si, g)); }
static public T GetRepresentation <T>(this RepresentationResult item) { return(item.GetRepresentation().Convert <T>()); }