示例#1
0
 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);
     }
 }
示例#2
0
 public void Remove(int Index)
 {
     MappedJSValue.InvokeAsync("silentsplice", _IWebView, _IWebView.Factory.CreateInt(Index), _IWebView.Factory.CreateInt(1));
     Items.RemoveAt(Index);
 }
示例#3
0
 public void Reset()
 {
     MappedJSValue.InvokeAsync("silentremoveAll", _IWebView);
     Items.Clear();
 }
示例#4
0
 public void Insert(IJSCSGlue iIJSCBridge, int Index)
 {
     MappedJSValue.InvokeAsync("silentsplice", _IWebView, _IWebView.Factory.CreateInt(Index), _IWebView.Factory.CreateInt(1), iIJSCBridge.GetJSSessionValue());
     Items[Index] = iIJSCBridge;
 }