public void onSubscribeRoomDone(RoomEvent eventObj)
 {
     Console.WriteLine("onSubscribeRoomDone as " + eventObj.getResult());
     if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
     {
         InvokeOnMainThread(delegate {
             nameTextField.ResignFirstResponder();
             ChatController cc = new ChatController();
             this.NavigationController.PushViewController(cc, true);
         });
     }
 }
 partial void onConnectClicked(NSObject sender)
 {
     if (WarpClient.GetInstance().GetConnectionState() == WarpConnectionState.DISCONNECTED)
     {
         Console.WriteLine("Connecting as " + this.nameTextField.Text);
         WarpClient.GetInstance().Connect(this.nameTextField.Text);
     }
     else
     {
         ChatController cc = new ChatController();
         this.NavigationController.PushViewController(cc, true);
     }
 }
 public void onSubscribeRoomDone(RoomEvent eventObj)
 {
     Console.WriteLine("onSubscribeRoomDone as "+eventObj.getResult());
     if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
     {
         InvokeOnMainThread (delegate {
             nameTextField.ResignFirstResponder();
             ChatController cc = new ChatController();
             this.NavigationController.PushViewController(cc, true);
         });
     }
 }
partial         void onConnectClicked(NSObject sender)
        {
            if(WarpClient.GetInstance().GetConnectionState() == WarpConnectionState.DISCONNECTED)
            {
                Console.WriteLine("Connecting as "+this.nameTextField.Text);
                WarpClient.GetInstance().Connect(this.nameTextField.Text);
            }
            else
            {
                ChatController cc = new ChatController();
                this.NavigationController.PushViewController(cc, true);
            }
        }