private void Button_Click(object sender, RoutedEventArgs e)
        {
            var queryResult = _mongoDBWrapper.CountLines();
            var win2        = new CountResult(queryResult.ToJson());

            win2.Show();
        }
        /// <summary>
        /// Map reduce to get the number of km
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_4(object sender, RoutedEventArgs e)
        {
            var success           = int.TryParse(Month1.Text, out int result);
            var queryResult       = _mongoDBWrapper.ThirdQuery(success ? result : 1);
            var countResultWindow = new CountResult(queryResult.ToJson(), "value", "km parcourus en un mois par l'ensemble des avions.");

            countResultWindow.Show();
        }
        private void Button_Click_9(object sender, RoutedEventArgs e)
        {
            var success           = int.TryParse(Year1.Text, out int result);
            var queryResult       = _mongoDBWrapper.SeventhQuery(!string.IsNullOrEmpty(City4.Text) && City4.Text != "Nom de la ville" ? City4.Text : "Detroit, MI", success ? result : 2016);
            var countResultWindow = new CountResult(queryResult.ToJson(), "value", "min de retard sur l'année " + (success ? result : 2016) + " à " + (!string.IsNullOrEmpty(City4.Text) && City4.Text != "Nom de la ville" ? City4.Text : "Detroit, MI"));

            countResultWindow.Show();
        }