Esempio n. 1
0
 public CategorieUC(Bierkroeg b, BMSModelContainer db, ProductCategorie pc, KassaUC kuc)
 {
     InitializeComponent();
     _bierkroeg = b;
     _db        = db;
     _pc        = pc;
     _kuc       = kuc;
     ic_Producten.ItemsSource = _bierkroeg.Producten.Where(p => p.ProductCategorieId == _pc.Id).OrderBy(p => p.ProductNaam).ToList();
 }
Esempio n. 2
0
        void switchUC()
        {
            g_Placeholder.Children.Clear();
            UserControl _uc = new KassaUC(_bierkroeg, _db, _dag);

            _uc.Width  = g_Placeholder.Width;
            _uc.Height = g_Placeholder.Height;
            g_Placeholder.Children.Add(_uc);
        }