private void PersonsWhoComment(object sender, RoutedEventArgs e) { ListOfCommentsWindow main = new ListOfCommentsWindow(postServices.GetCommentator(currentPost.Id)) { WindowStartupLocation = WindowStartupLocation.CenterScreen }; main.ShowDialog(); }