예제 #1
0
파일: FrmMain.cs 프로젝트: zmm623/IKendeLib
 public void _OnLogin(Beetle.IChannel channel, Logic.RegisterResponse e)
 {
     Logic.ListUsers list = new Logic.ListUsers();
     channel.Send(list);
     Invoke(new Action <object>(o =>
     {
         toolStrip2.Enabled = false;
         groupBox2.Enabled  = true;
     }), new object());
 }
예제 #2
0
파일: Program.cs 프로젝트: zmm623/IKendeLib
 public void _List(IChannel channel, Logic.ListUsers e)
 {
     Logic.ListUsersResponse response = new Logic.ListUsersResponse();
     foreach (IChannel item in mServer.GetOnlines())
     {
         if (item != channel)
         {
             response.Users.Add(new Logic.UserInfo {
                 Name = item.Name, IP = item.EndPoint.ToString()
             });
         }
     }
     channel.Send(response);
 }
예제 #3
0
파일: FrmMain.cs 프로젝트: hdxhan/IKendeLib
 public void _OnLogin(Beetle.IChannel channel, Logic.RegisterResponse e)
 {
     Logic.ListUsers list = new Logic.ListUsers();
     channel.Send(list);
     Invoke(new Action<object>(o =>
     {
        
         toolStrip2.Enabled = false;
         groupBox2.Enabled = true;
     }), new object());
 }