// Remove contact from gui and hashtable public void RemoveContact(String jid) { if (contacts.ContainsKey(jid)) { Contact c = contacts[jid]; c.Remove(); contacts.Remove(jid); } }