private void btnSendOffer_Click(object sender, RoutedEventArgs e)
        {
            currentMealOffer.CookParticipant  = currentCook;
            currentMealOffer.EaterParticipant = currentEater;
            currentMealOffer.EaterParticipant.HasAwaitingMealOffer = true;
            currentMealOffer.EaterParticipant.AwaitingMeals        = currentMealOffer;
            currentMealOffer.Date = dateMealDate.SelectedDate.Value;
            currentMealOffer.Time = cmbSetTime.SelectedItem.ToString();


            Console.WriteLine(currentMealOffer.GetType() + " current meal");
            currentCook.Meals.Add(currentMealOffer);
            Eater.MealOffers++;
            Console.WriteLine("Meal offers = " + Eater.MealOffers);

            Console.WriteLine("Selected time " + cmbSetTime.SelectedItem.ToString());
            Console.WriteLine(currentCook.Meals.Count + " number of meals");


            dbAccess.saveFiles();
            btnCancel_Click(sender, e);
        }
 //this method saves the DB and call the method above
 private void savingAccountAndClosingWindow(RoutedEventArgs e)
 {
     dbAccess.saveFiles();
     //closing this window
     cancelAccountCreation(this, e);
 }