Beispiel #1
0
 /// <summary>
 /// The javascript object window.sharpAngieBridge should be set up so that any call to sharpAngieBridge.setProperty(propertyPath, value) will be forwarded to this method.
 /// </summary>
 public void SetViewModelProperty(string clientId, string propertyPath, object value)
 {
     ReflectionsHelper.SetDeepProperty(_viewModel, propertyPath, value,
                                       () =>
     {
         _changingPropertyFromJs = propertyPath;
         _currentClientId        = clientId;
     },
                                       () =>
     {
         _changingPropertyFromJs = null;
         _currentClientId        = clientId;
     });
 }
Beispiel #2
0
 /// <summary>
 /// The javascript object window.sharpAngieBridge should be set up so that any call to sharpAngieBridge.invokeMethod(methodPath, args) will be forwarded to this method.
 /// </summary>
 public void InvokeViewModelMethod(string clientId, string methodPath, object[] args)
 {
     ReflectionsHelper.InvokeDeepMethod(_viewModel, methodPath, args);
 }