예제 #1
0
        private bool PushToRepresentationInternal(CmlValue_Function value, object representation, CmlContext context)
        {
            FunctionSyncro function_syncro = new FunctionSyncro(value.GetFunctionInstance());

            context.AddFunctionSyncro(function_syncro);

            hook.AddDelegate(representation, function_syncro.CreateDelegate(hook.GetHookType()));
            return(true);
        }
예제 #2
0
        private bool PushToRepresentationInternal(CmlValue_Function value, object representation, CmlContext context)
        {
            REPRESENTATION_TYPE cast;
            FunctionSyncro      function_syncro = new FunctionSyncro(value.GetFunctionInstance());

            context.AddFunctionSyncro(function_syncro);

            if (representation.Convert <REPRESENTATION_TYPE>(out cast))
            {
                ApplyFunctionSyncroToRepresentation(cast, function_syncro);
            }

            return(true);
        }