public CProfileControlViewModel(CMainPageViewModel mainPageViewModel, CProfileModel model)
 {
     ParentViewModel  = mainPageViewModel;
     Nickname         = model.Nickname;
     RegistrationDate = model.RegistrationDate.ToShortDateString();
     GamesCount       = model.GamesCount;
     WinRate          = model.WinRate;
 }
 internal ProfileControl(CMainPageViewModel mainPageViewModel, CProfileModel model)
 {
     InitializeComponent();
     DataContext = new CProfileControlViewModel(mainPageViewModel, model);
     foreach (CGameInfoModel gameInfoModel in model.GamesInfo)
     {
         GamesList.Children.Add(new GameInfoItem(mainPageViewModel, gameInfoModel));
     }
 }