예제 #1
0
 void LstUsers_MouseDoubleClick(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (lstUsers.SelectedItem == null)
     {
         return;
     }
     session.BeginOpenChat(lstUsers.SelectedItem.ToString(), new AsyncCallback(EndOpenChat), null);
 }
예제 #2
0
        static void Session_SessionAutenticated(object sender, EventArgs e)
        {
            Console.WriteLine("Authenticated");
            Console.Write("Room name:");
            string room = Console.ReadLine();

            session.BeginOpenChat(room, new AsyncCallback(EndOpenChat), null);
        }