예제 #1
0
        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());
        }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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);
 }
예제 #4
0
 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;
 }
예제 #5
0
 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);
 }
예제 #6
0
        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();
        }