private void JoinMultiVChatRoomCallback(int code, Int64 channel_id, string json_extension)
 {
     if (code == 200)
     {
         //进入房间成功
         Action action = () =>
         {
             MultiVChatForm vchat = new MultiVChatForm(_room_name);
             vchat.Show();
             this.Close();
         };
         this.BeginInvoke(action);
     }
     else
     {
         Action action = () =>
         {
             MessageBox.Show("加入房间失败-错误码:" + code.ToString());
             VChatAPI.End();
         };
         this.BeginInvoke(action);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 挂断
 /// </summary>
 public static void End()
 {
     VChatAPI.End();
 }