Exemple #1
0
        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);
        }
Exemple #2
0
 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()));
 }
Exemple #3
0
 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));
 }
Exemple #4
0
 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));
 }
Exemple #5
0
 static public T GetRepresentation <T>(this RepresentationResult item)
 {
     return(item.GetRepresentation().Convert <T>());
 }