public Update(walangforeverRestaurant.Domain.Model.Products products, Products.List sender)
 {
     InitializeComponent();
     this.txtboxName.Text = products.Name;
     this._products       = products;
     this._sender         = sender;
 }
Beispiel #2
0
        private void btnViewProducts_Click(object sender, RoutedEventArgs e)
        {
            Category category = ((FrameworkElement)sender).DataContext as Category;

            Products.List productWindow = new Products.List(category.Id, category.Name);
            productWindow.Show();
        }
 public Add(Products.List sender)
 {
     InitializeComponent();
     this._sender = sender;
 }