/// <summary>
        /// opening the next window ( delete child window )
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Click_deleteChild(object sender, RoutedEventArgs e)
        {
            IEnumerable <Child> untreatedChilds = myBl.UntreatedChilds();  // checks is there is untreated child. Because if there is no untreated child there is no point in opening this window

            if (untreatedChilds.Count() == 0)
            {
                MessageBox.Show("There is no any child to delete!", "Error 404", MessageBoxButton.OK, MessageBoxImage.Warning);
                return;
            }

            Window nextWindow = new deletePopupWindow("Child");

            this.Close();
            nextWindow.ShowDialog();
        }
        /// <summary>
        /// opening the next window ( delete mother window )
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Click_deleteMother(object sender, RoutedEventArgs e)
        {
            IEnumerable <Mother> mothers = myBl.MothersByPredicate();  // checks is there is untreated child. Because if there is no untreated child there is no point in opening this window

            if (mothers.Count() == 0)
            {
                MessageBox.Show("There is no any mother!", "Error 404", MessageBoxButton.OK, MessageBoxImage.Warning);
                return;
            }

            Window nextWindow = new deletePopupWindow("Mother");

            this.Close();
            nextWindow.ShowDialog();
        }