Ejemplo n.º 1
0
        private void Storage_ToComponentButton_Click(object sender, RoutedEventArgs e)
        {
            var itemEntry = (FullStoragePOCO)StorageDatagrid.SelectedItem;

            foreach (var item in ComponentsDatagrid.Items)
            {
                if (((ComponentPOCO)item).Id == itemEntry.Component.Id)
                {
                    ComponentsDatagrid.SelectedItem = item;
                    ComponentsDatagrid.ScrollIntoView(item);
                    CustomersDatagrid.Focus();
                    break;
                }
            }
            ComponentsTab.IsSelected = true;
            ComponentsDatagrid_SelectionChanged(null, null);
        }
Ejemplo n.º 2
0
        private void Order_ToCustomerButton_Click(object sender, RoutedEventArgs e)
        {
            var itemEntry = (CustomerOrderFullPOCO)CustomerOrdersDatagrid.SelectedItem;

            foreach (var item in CustomersDatagrid.Items)
            {
                if (((CustomerPOCO)item).Id == itemEntry.Customer.Id)
                {
                    CustomersDatagrid.SelectedItem = item;
                    CustomersDatagrid.ScrollIntoView(item);
                    CustomersDatagrid.Focus();
                    break;
                }
            }
            ClientsTab.IsSelected = true;
            CustomersDatagrid_SelectionChanged(null, null);
        }