Ejemplo n.º 1
0
        private void ViewOrders(string customerID)
        {
            this.Cursor = Cursors.WaitCursor;

            // Show the CustomerOrders dialog, passing in the customer ID.
            CustomerOrdersForm co = new CustomerOrdersForm();

            // Get the related list of orders for the current customer.
            CurrencyManager  cm   = ((CurrencyManager)this.BindingContext[northwindDS, "Customers.CustOrders"]);
            IBindingListView list = (IBindingListView)cm.List;

            co.ShowDialog(customerID, this, list);

            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 2
0
        private void ViewOrders(string customerID)
        {
            this.Cursor = Cursors.WaitCursor;

            // Show the CustomerOrders dialog, passing in the customer ID.
            CustomerOrdersForm co = new CustomerOrdersForm();

            // Get the related list of orders for the current customer.
            CurrencyManager cm = ((CurrencyManager)this.BindingContext[northwindDS, "Customers.CustOrders"]);
            IBindingListView list = (IBindingListView)cm.List;

            co.ShowDialog(customerID, this, list);

            this.Cursor = Cursors.Default;
        }