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(); }
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); }
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); }
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(); }