internal void Set(string desStr, int defInt, IntCallBack CallBackFun) { des.text = desStr + ":"; input.value = defInt.ToString(); CurCB += CallBackFun; }
public void RemovePlayer(int id) { if (listBoxPlayers.InvokeRequired) { IntCallBack d = new IntCallBack(RemovePlayer); this.Invoke(d, new object[] { id }); } else { for (int i = 0; i < listBoxPlayers.Items.Count; i++) { if (((Player)listBoxPlayers.Items[i]).ID == id) { listBoxPlayers.Items.Remove((Player)listBoxPlayers.Items[i]); i--; continue; } } } }
private static extern void WechatShareWebPage(string url, string title, string desc, string icon_path, int type, IntCallBack cb);
private static extern void GamePay(string json, int type, IntCallBack cb);
private static extern void WechatShareGameRoom(string url, string title, string des, string roomId, string roomToken, string icon_path, int type, IntCallBack cb);
private static extern void WechatShareImage(string img_path, string icon_path, int type, IntCallBack cb);
private static extern void WechatShareText(string text, int type, IntCallBack cb);