예제 #1
0
        private void joinConferenceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConferenceForm cf = new ConferenceForm();

            cf.DiscoManager = dm;
            cf.Nick         = jc.JID.User;
            if (cf.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            muc.GetRoom(cf.RoomAndNick).Join();
        }
예제 #2
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // pop up AddBookmark dialog
     ConferenceForm cf = new ConferenceForm();
     cf.DiscoManager = dm;
     cf.Nick = muc.DefaultNick;
     if (cf.ShowDialog() != DialogResult.OK)
         return;
     // TODO: add autojoin and name.
     bmm.AddConference(cf.RoomJID, null, false, cf.Nick);
 }
예제 #3
0
        private void lvBookmarks_DoubleClick(object sender, EventArgs e)
        {
            if (lvBookmarks.SelectedItems.Count == 0)
                return;
            ListViewItem lvi = lvBookmarks.SelectedItems[0];

            JID jid = (JID)lvi.Tag;
            BookmarkConference conf = bmm[jid];
            Debug.Assert(conf != null);

            ConferenceForm cf = new ConferenceForm();
            cf.DiscoManager = dm;
            cf.RoomAndNick = new JID(jid.User, jid.Server, conf.Nick);

            if (cf.ShowDialog() != DialogResult.OK)
                return;
            bmm.AddConference(cf.RoomJID, null, false, cf.Nick);
        }
예제 #4
0
        private void joinConferenceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConferenceForm cf = new ConferenceForm();
            cf.DiscoManager = dm;
            cf.Nick = muc.DefaultNick;
            if (cf.ShowDialog() != DialogResult.OK)
                return;

            muc.GetRoom(cf.RoomAndNick).Join();
        }