private void Graduate_btn_Click(object sender, RoutedEventArgs e)
 {
     GraduationUC         = new GraduationUC(iceCream);
     ProfileBarIceCreamUC = new ProfileBarIceCreamUC(iceCream);
     ((MainWindow)System.Windows.Application.Current.MainWindow).full_content_grid.Children.Clear();
     ((MainWindow)System.Windows.Application.Current.MainWindow).content_grid.Children.Add(GraduationUC);
     ((MainWindow)System.Windows.Application.Current.MainWindow).profile_grid.Children.Add(ProfileBarIceCreamUC);
 }
        private void Graduate(object sender, RoutedEventArgs e)
        {
            IceCream Ic = IceCreamComboBox.SelectedItem as IceCream;

            Ic.UpdateLists();
            graduationUC         = new GraduationUC(Ic);
            profileBarIceCreamUC = new ProfileBarIceCreamUC(Ic);
            ((MainWindow)System.Windows.Application.Current.MainWindow).inner_grid.Children.Clear();
            ((MainWindow)System.Windows.Application.Current.MainWindow).content_grid.Children.Clear();
            ((MainWindow)System.Windows.Application.Current.MainWindow).content_grid.Children.Add(graduationUC);
            ((MainWindow)System.Windows.Application.Current.MainWindow).profile_grid.Children.Add(profileBarIceCreamUC);
        }