Esempio n. 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);
        }
Esempio n. 2
0
 static public T GetRepresentation <T>(this RepresentationResult item)
 {
     return(item.GetRepresentation().Convert <T>());
 }