public Connect(int personId, IPerson person, IJsonContainer jsonContainer, IMessageContent messageContent, IUIViewModel uIViewModel) { _PersonId = personId; _person = person; _jsonContainer = jsonContainer; _uIViewModel = uIViewModel; }
/// <summary> /// Only for server /// </summary> /// <param name="uIViewModel"></param> private void ShowUsersOnline(IUIViewModel uIViewModel) { uIViewModel.UsersOnline = ""; foreach (var item in UsersOnline.Persons) { uIViewModel.UsersOnline += item.Name + "\n"; } }
public ServerConfig(IUIViewModel uIViewModel) { _uIViewModel = uIViewModel; StartServer(); }