mr.solder5 5 éve
szülő
commit
64e7840628

+ 1 - 0
CopyCenter/MenuWindow.xaml.cs

@@ -58,5 +58,6 @@ namespace CopyCenter
             sw.Show();
             this.Close();
         }
+
     }
 }

+ 1 - 1
CopyCenter/OrdersWindow.xaml

@@ -38,7 +38,7 @@
         <TextBlock HorizontalAlignment="Left" Margin="278,359,0,0" TextWrapping="Wrap" Text="Пользователь" VerticalAlignment="Top" Height="31" Width="94"/>
         <TextBlock HorizontalAlignment="Left" Margin="278,325,0,0" TextWrapping="Wrap" Text="Услуга" VerticalAlignment="Top" Height="31" Width="94"/>
         <TextBlock HorizontalAlignment="Left" Margin="278,287,0,0" TextWrapping="Wrap" Text="Оплата" VerticalAlignment="Top" Height="31" Width="94"/>
-        <TextBox HorizontalAlignment="Left" Height="45" Margin="568,251,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="153"/>
+        <TextBox Name="Search" HorizontalAlignment="Left" Height="45" Margin="568,251,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="153"/>
         <Button HorizontalAlignment="Left" Margin="726,251,0,0" VerticalAlignment="Top" Width="45" Height="44">
             <StackPanel>
                 <Image Source ="orig.png" Height="46" Width="69"/>

+ 7 - 2
CopyCenter/OrdersWindow.xaml.cs

@@ -40,8 +40,9 @@ namespace CopyCenter
             comboBox3.ItemsSource = db.Payments.ToList();
             comboBox3.DisplayMemberPath = "NumberPayment";
             comboBox3.SelectedValuePath = "idPayment";
-        } 
-    
+
+        }
+
         private void Exit_Click(object sender, RoutedEventArgs e)
         {
             MenuWindow mw = new MenuWindow();
@@ -99,5 +100,9 @@ namespace CopyCenter
             OrdersList.ItemsSource = db.Orders.ToList();
         }
 
+        private readonly CollectionViewSource viewSource = new CollectionViewSource();
+        viewSource.Source = list;
+
+
     }
 }