public void openprchat(string friend) { String ss = friend; if (ss.StartsWith("[O]")) { String s = ss.Substring(3); if (oclist.ContainsKey(s)) { } else { Privatechat pc = new Privatechat(s, senddel, dclosed); oclist.Add(s, pc); pc.Show(); } } else { MessageBox.Show(ss + " not online!"); } }
public void openprchat(string friend) { String ss = friend; if (ss.StartsWith("[O]")) { String s = ss.Substring(3); if (oclist.ContainsKey(s)) { } else { Privatechat pc = new Privatechat(s, senddel,dclosed); oclist.Add(s, pc); pc.Show(); } } else MessageBox.Show(ss + " not online!"); }