void SendUsers(int id, string data) { SimpleUser[] s_users = new SimpleUser[users.Count]; for (int i = 0; i < s_users.Length; i++) { s_users[i] = new SimpleUser(users[i]); } string send = Newtonsoft.Json.JsonConvert.SerializeObject(s_users); CallData callData = new CallData { methodName = "GetUsers", data = send }; formatter.Serialize(users[id].tcpClient.GetStream(), JsonConvert.SerializeObject(callData)); }
public void RunRDP(SimpleUser user) { //Process.Start("Cmd.exe", @"/C mstsc.exe /v:" + user.addres.Split(':')[0]); }