예제 #1
0
 public Menu()
 {
     InitializeComponent();
     if (DataContext == null)
     {
         DataContext = new MenuViewModel.MenuVM();
     }
     if (cartContext.Products == null)
     {
         cartContext.Products = new ObservableCollection <ProductDTO>();
     }
 }
예제 #2
0
 public Menu()
 {
     InitializeComponent();
     DataContext = new MenuViewModel.MenuVM();
 }