private void tileNew_Click(object sender, EventArgs e) { ContactsSelector selector = new ContactsSelector(); DialogResult res = selector.ShowDialog(); if (res == DialogResult.OK) { this.OpenConversationThread(selector.SelectedJID, true, true); } selector.Dispose(); }
private void button1_Click(object sender, EventArgs e) { if (this.selector == null || this.selector.IsDisposed) { this.selector = new ContactsSelector(); } DialogResult res = this.selector.ShowDialog(this); if (res == DialogResult.OK) { this.OpenConversationThread(this.selector.SelectedJID, true); } this.selector.Dispose(); }