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 bool jc_OnRegisterInfo(object sender, Register r) { if (r.Form == null) { return(true); } muzzle.XDataForm f = new muzzle.XDataForm(r.Form); if (f.ShowDialog() != DialogResult.OK) { return(false); } f.FillInResponse(r.Form); return(true); }
private bool jc_OnRegisterInfo(object sender, Register r) { if (r.Form == null) return true; muzzle.XDataForm f = new muzzle.XDataForm(r.Form); if (f.ShowDialog() != DialogResult.OK) return false; f.FillInResponse(r.Form); return true; }
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(); }