Esempio n. 1
0
        private void btnCreateGiftSertificate_Click(object sender, RoutedEventArgs e)
        {
            CreateGiftSertificate createGiftSertificate = new CreateGiftSertificate();

            createGiftSertificate.ShowDialog();

            var query = from item in db.GiftSertificate
                        select item;

            dgGiftSertificate.ItemsSource = query.ToList();
        }
        private void btnBuyGiftSertificate_Click(object sender, RoutedEventArgs e)
        {
            CreateGiftSertificate createGiftSertificate = new CreateGiftSertificate();

            createGiftSertificate.ShowDialog();
        }