예제 #1
0
    internal void Set(string desStr, int defInt, IntCallBack CallBackFun)
    {
        des.text    = desStr + ":";
        input.value = defInt.ToString();

        CurCB += CallBackFun;
    }
예제 #2
0
 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;
             }
         }
     }
 }
예제 #3
0
 private static extern void WechatShareWebPage(string url, string title, string desc, string icon_path, int type, IntCallBack cb);
예제 #4
0
 private static extern void GamePay(string json, int type, IntCallBack cb);
예제 #5
0
 private static extern void WechatShareGameRoom(string url, string title, string des, string roomId, string roomToken, string icon_path, int type, IntCallBack cb);
예제 #6
0
 private static extern void WechatShareImage(string img_path, string icon_path, int type, IntCallBack cb);
예제 #7
0
 private static extern void WechatShareText(string text, int type, IntCallBack cb);