private void AddPageCreationsSlide(IEnumerable<LogEntry> pageCreationEntries) { var pageCreations = new InformationViewModel() { MainMetricType = "Page Creations", MainMetricValue = string.Format("{0}", pageCreationEntries.Count()) }; InformationView view = new InformationView(); view.DataContext = pageCreations; infoContainer.Children.Add(view); }
private void AddUserRegistrationsSlide(IEnumerable<LogEntry> userRegistrationEntries) { var viewModel = new InformationViewModel() { MainMetricType = "User Registrations", MainMetricValue = string.Format("{0}",userRegistrationEntries.Count()) }; InformationView view = new InformationView(); view.DataContext = viewModel; infoContainer.Children.Add(view); }