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()); }
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); }
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()); }