Пример #1
0
 public void openChat(Friend f,string msg)
 {
     FrmChat frm = new FrmChat(f);
     f.Frmchatting = frm;
     frm.Show();
     f.IsOpen = true;
     f.Frmchatting.txtChattingContent.AppendText(f.Nickname + ":" + msg + "\r\n");
 }
Пример #2
0
 void ucf_myDBClick(object sender, EventArgs e)
 {
     UCFriend ucf = (UCFriend)sender;
     foreach (Friend olucf in onlineFriends)
     {
         if (olucf.IP.ToString() == ucf.CurFriend.IP.ToString())
         {
             if (olucf.IsOpen == false)
             {
                 FrmChat frm = new FrmChat(ucf.CurFriend);
                 ucf.CurFriend.Frmchatting = frm;
                 frm.Show();
                 olucf.IsOpen = true;
             }
         }
     }
 }