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(); } }
private void bnLeaveRoom_Click(object sender, EventArgs e) { _xmppRoomManager = new RoomManager(_xmppConnection); _xmppRoomManager.LeaveRoom(new Room() { Id = tbRoomToJoin.Text, NickName = "bot user" }); }