Пример #1
0
 private void search_btn_Click(object sender, RoutedEventArgs e)
 {
     searchIceCreamUC = new SearchIceCreamUC();
     ((MainWindow)System.Windows.Application.Current.MainWindow).inner_grid.Children.Clear();
     ((MainWindow)System.Windows.Application.Current.MainWindow).shopAreaGrid.Children.Clear();
     ((MainWindow)System.Windows.Application.Current.MainWindow).profile_grid.Children.Clear();
     ((MainWindow)System.Windows.Application.Current.MainWindow).content_grid.Children.Clear();
     ((MainWindow)System.Windows.Application.Current.MainWindow).content_grid.Children.Add(searchIceCreamUC);
 }
 private void back_btn_Click(object sender, RoutedEventArgs e)
 {
     SearchIceCreamUC = new SearchIceCreamUC();
     ((MainWindow)System.Windows.Application.Current.MainWindow).content_grid.Children.Clear();
     ((MainWindow)System.Windows.Application.Current.MainWindow).content_grid.Children.Add(SearchIceCreamUC);
 }