Example #1
0
        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!");
            }
        }
Example #2
0
 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!");
 }