private void Year_Click(object sender, RoutedEventArgs e)
        {
            //redirect the the right page
            YearReg Year = new YearReg();

            Year.Show();
            Window.GetWindow(this).Close();
        }
        private void Year_button_Click(object sender, RoutedEventArgs e)
        {
            //redirect the the right page
            YearReg YearReg = new YearReg();

            YearReg.Show();
            this.Close();
        }