// need to change the VM names lists, maybe change it to a dictionary public string Rename(string newName) { string oldName = UserInfo.Name; UserInfo.Name = newName; SausageServer.Vm.ConnectedUsers.First(x => x == this).UserInfo.Name = newName; SausageServer.Vm.ConnectedUsers = SausageServer.SortUsersList(); return(oldName); }
public void Disconnect() { SausageServer.Vm.ConnectedUsers = SausageServer.SortUsersList(); Socket.Close(); }