private void PhoneConnected(List <string> massTextClient) { ConnectPhone phone = new ConnectPhone(); string switcher = massTextClient[0]; massTextClient.RemoveAt(0); Result = null; ListResult = null; switch (switcher) { case "regs": Result = phone.Regs(massTextClient); break; case "login": Result = phone.Login(massTextClient); break; case "city": ListResult = phone.City(massTextClient); break; case "route": ListResult = phone.Route(massTextClient); break; } if (ListResult != null) { ListResult[ListResult.Count - 1] += "&&&"; } else if (Result != null) { Result += "&&&"; } }
private void PhoneConnected(string[] massTextClient) { ConnectPhone phone = new ConnectPhone(); string[] switcher = massTextClient[1].Split(new char[] { ':' }); switch (switcher[0]) { case "login": Result = phone.Login(massTextClient); break; } }