private void StatsClick(object sender, RoutedEventArgs e) { Sound.Play(Sounds.Click); var statistics = new StatisticsClient(); statistics.GetStatisticsCompleted += GetStatisticsCompleted; statistics.GetStatisticsAsync(); _dialog = new Dialog {DialogContents = {Content = new StackPanel()}, Header = {Text = Strings.Statistics}}; _dialog.Loading(LayoutRoot); }