public void Add(IJSCSGlue iIJSCBridge, int Index) { MappedJSValue.InvokeAsync("silentsplice", _IWebView, _IWebView.Factory.CreateInt(Index), _IWebView.Factory.CreateInt(0), iIJSCBridge.GetJSSessionValue()); if (Index > Items.Count - 1) { Items.Add(iIJSCBridge); } else { Items.Insert(Index, iIJSCBridge); } }
public void Remove(int Index) { MappedJSValue.InvokeAsync("silentsplice", _IWebView, _IWebView.Factory.CreateInt(Index), _IWebView.Factory.CreateInt(1)); Items.RemoveAt(Index); }
public void Reset() { MappedJSValue.InvokeAsync("silentremoveAll", _IWebView); Items.Clear(); }
public void Insert(IJSCSGlue iIJSCBridge, int Index) { MappedJSValue.InvokeAsync("silentsplice", _IWebView, _IWebView.Factory.CreateInt(Index), _IWebView.Factory.CreateInt(1), iIJSCBridge.GetJSSessionValue()); Items[Index] = iIJSCBridge; }