コード例 #1
0
        // 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);
        }
コード例 #2
0
 public void Disconnect()
 {
     SausageServer.Vm.ConnectedUsers = SausageServer.SortUsersList();
     Socket.Close();
 }