private IQ muc_OnRoomConfig(Room room, IQ parent) { muzzle.XDataForm form = new muzzle.XDataForm(parent); if (form.ShowDialog() != DialogResult.OK) { return(null); } return((IQ)form.GetResponse()); }
private void jc_OnMessage(object sender, jabber.protocol.client.Message msg) { jabber.protocol.x.Data x = msg["x", URI.XDATA] as jabber.protocol.x.Data; if (x != null) { muzzle.XDataForm f = new muzzle.XDataForm(msg); f.ShowDialog(this); jc.Write(f.GetResponse()); } else { MessageBox.Show(this, msg.Body, msg.From, MessageBoxButtons.OK); } }
private void jc_OnMessage(object sender, jabber.protocol.client.Message msg) { jabber.protocol.x.Data x = msg["x", URI.XDATA] as jabber.protocol.x.Data; if (x != null) { muzzle.XDataForm f = new muzzle.XDataForm(msg); f.ShowDialog(this); jc.Write(f.GetResponse()); } else MessageBox.Show(this, msg.Body, msg.From, MessageBoxButtons.OK); }
private IQ muc_OnRoomConfig(Room room, IQ parent) { muzzle.XDataForm form = new muzzle.XDataForm(parent); if (form.ShowDialog() != DialogResult.OK) return null; return (IQ)form.GetResponse(); }