Exemple #1
0
 public Connect(int personId, IPerson person, IJsonContainer jsonContainer, IMessageContent messageContent, IUIViewModel uIViewModel)
 {
     _PersonId      = personId;
     _person        = person;
     _jsonContainer = jsonContainer;
     _uIViewModel   = uIViewModel;
 }
Exemple #2
0
 /// <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();
 }