void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TheWindow = ((intermediate_agency.EditOrderWindow)(target));
                return;

            case 2:
                this.CustomerComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.OrderStatusComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:

            #line 79 "..\..\EditOrderWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Accept_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void tempFunct(Object SelectedItem)
        {
            Customer SelectedCustomer = SelectedItem as Customer;

            if (SelectedCustomer == null)
            {
                return;
            }

            EditOrderWindow eow = new EditOrderWindow(new Order(), new ObservableCollection <Customer>()
            {
                SelectedCustomer
            }, this.MerchandiseTypes);

            //EditOrderWindow eow = new EditOrderWindow(new Order(), this.Customers, this.MerchandiseTypes);
            if (eow.ShowDialog() == true)
            {
                Order resOrder = eow.GetOrder();
                if (resOrder == null)
                {
                    return;
                }
                SelectedCustomer.Orders.Add(resOrder);
            }
        }