예제 #1
0
        private void CustomerSearch_Click(object sender, RoutedEventArgs e)
        {
            PersonFilter filter = new PersonFilter(this);

            filter.Owner = Application.Current.MainWindow as MainWindow;
            filter.ShowDialog();
        }
예제 #2
0
        private void PickOrCreateBuyer_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ComboBox cb = sender as ComboBox;

            if (cb != null)
            {
                MainWindow wnd = Application.Current.MainWindow as MainWindow;

                if (cb.SelectedIndex == 1)
                {
                    PersonFilter pFilter = new PersonFilter(this);
                    pFilter.Owner = wnd;
                    pFilter.ShowDialog();
                }
                else if (cb.SelectedIndex == 2)
                {
                    CustomerPage customerPage = new CustomerPage(this);
                    wnd.NavigationStack.Push(customerPage);
                    wnd.MainContent.Content = new Frame()
                    {
                        Content = customerPage
                    };
                }
            }
        }
예제 #3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //search
            PersonFilter filter = new PersonFilter();
            MainWindow   wnd    = Application.Current.MainWindow as MainWindow;

            filter.Owner = wnd;

            // inventoryTypes = wnd.GetInventoryTypes();

            filter.mainWnd         = wnd;
            filter.vendorParentWnd = this;

            ObservableCollection <KeyValuePair <long, string> > list1 = new ObservableCollection <KeyValuePair <long, string> >();

            //foreach (InventoryTypeDTO inventoryType in inventoryTypes)
            //{
            //    if (inventoryType.InventoryTypeName != "Arrangements")
            //    {
            //        list1.Add(new KeyValuePair<long, string>(inventoryType.InventoryTypeId, inventoryType.InventoryTypeName));
            //    }
            //}

            //filter.InventoryTypeCombo.ItemsSource = list1;
            filter.ShowDialog();
        }
예제 #4
0
        private void CustomerSearch_Click(object sender, RoutedEventArgs e)
        {
            PersonFilter filter = new PersonFilter();
            MainWindow   wnd    = Application.Current.MainWindow as MainWindow;

            filter.Owner = wnd;

            //GetPersonResponse response = wnd.GetCustomers(new GetPersonRequest());

            //List<PersonDTO> people = response.PersonAndAddress;

            filter.mainWnd            = wnd;
            filter.workOrderParentWnd = this;

            ObservableCollection <KeyValuePair <long, string> > list1 = new ObservableCollection <KeyValuePair <long, string> >();

            //foreach (InventoryTypeDTO inventoryType in inventoryTypes)
            //{
            //    if (inventoryType.InventoryTypeName != "Arrangements")
            //    {
            //        list1.Add(new KeyValuePair<long, string>(inventoryType.InventoryTypeId, inventoryType.InventoryTypeName));
            //    }
            //}

            //filter.InventoryTypeCombo.ItemsSource = list1;

            filter.ShowDialog();
        }
예제 #5
0
        private void SearchButton_Click(object sender, RoutedEventArgs e)
        {
            PersonFilter filter = new PersonFilter(this);

            filter.ShowDialog();
        }