Example #1
0
        public XMPPControl()
        {
            InitializeComponent();

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                _xmppConnection = new Connection(new XMPPConnectionSettingsProvider().GetConnectionSettings());
                _xmppRoomManager = new RoomManager(_xmppConnection, new CallBackContainer(){MessageCallBack = MessageCallBack, PresenceCallBack = PresenceCallBack});
                SetupEvents();
            }
        }
Example #2
0
 private void bnLeaveRoom_Click(object sender, EventArgs e)
 {
     _xmppRoomManager = new RoomManager(_xmppConnection);
     _xmppRoomManager.LeaveRoom(new Room() { Id = tbRoomToJoin.Text, NickName = "bot user" });
 }