internal void RequestExecutableCreation(IJsCsGlue glueObject)
        {
            if (!_Mapping)
            {
                ExecutableObjectsToCreate.Add(glueObject);
                return;
            }

            var command = _Factory.CreateObject(ObjectObservability.ReadOnlyObservable);

            glueObject.SetJsValue(command, _Cache);
        }
Exemple #2
0
        internal void RequestExecutableCreation(IJsCsGlue glueObject)
        {
            if (!_Mapping)
            {
                _ExecutableObjectsToCreate.Add(glueObject);
                return;
            }

            var command = _Factory.CreateObject(true);

            glueObject.SetJsValue(command, _Cache);
        }
        internal void RequestCommandCreation(IJsCsGlue glueObject, bool canExecute)
        {
            if (!_Mapping)
            {
                _CommandCreationRequest.AddRequest(glueObject, canExecute);
                return;
            }
            var command = _Factory.CreateObject(ObjectObservability.ReadOnlyObservable);

            command.SetValue("CanExecuteValue", _Factory.CreateBool(canExecute));
            command.SetValue("CanExecuteCount", _Factory.CreateInt(1));
            glueObject.SetJsValue(command, _Cache);
        }
Exemple #4
0
 private void SetJsValue(IJavascriptObject jsObject)
 {
     _Object.SetJsValue(jsObject, _Cache);
 }
 private void SetJsValue(IJsCsGlue glue, IJavascriptObject @object)
 {
     glue.SetJsValue(@object, _Cache);
 }