Ejemplo n.º 1
0
        private void btnAddComictoOrder_Click(object sender, RoutedEventArgs e)
        {
            var _customerID   = _customer.CustomerID;
            var _comicID      = _comic.ComicID;
            var _date         = DateTime.Now;
            var _comicManager = new ComicManager();
            var mainWindow    = new MainWindow();

            try
            {
                _comicManager.AddComicToOrderForm(_customerID, (int)_comicID, _date);
                MessageBox.Show("Comic added to your order.");
                Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Unable to add comic to order" + ex.Message + ex.StackTrace);
            }
        }