ソースを参照

поиск, сортировка, фильтрация, количество выведенных элементов

unknown 8 ヶ月 前
コミット
6ca6254c49
36 ファイル変更259 行追加27 行削除
  1. BIN
      .vs/Sessioa/FileContentIndex/50945cc1-a57f-4f3b-8423-c9381f839064.vsidx
  2. BIN
      .vs/Sessioa/FileContentIndex/b5ac9b16-a3bb-40e8-83d3-7dcb1448352c.vsidx
  3. BIN
      .vs/Sessioa/FileContentIndex/bc9d5676-bac0-4b51-a8b1-59fc4ff77628.vsidx
  4. BIN
      .vs/Sessioa/FileContentIndex/d6151b9d-e670-4dc3-8677-650f929dc40c.vsidx
  5. BIN
      .vs/Sessioa/FileContentIndex/f70576c8-fc41-4e06-a13e-41a7a624ba1e.vsidx
  6. BIN
      .vs/Sessioa/v17/.suo
  7. 1 0
      Sessioa/App.xaml
  8. 1 1
      Sessioa/MainWindow.xaml
  9. 1 1
      Sessioa/Pages/Autorization.xaml
  10. 21 1
      Sessioa/Pages/ProductsPage.xaml
  11. 64 2
      Sessioa/Pages/ProductsPage.xaml.cs
  12. 1 0
      Sessioa/Sessioa.csproj
  13. BIN
      Sessioa/bin/Debug/Sessioa.exe
  14. BIN
      Sessioa/bin/Debug/Sessioa.pdb
  15. BIN
      Sessioa/obj/Debug/App.baml
  16. 1 1
      Sessioa/obj/Debug/App.g.cs
  17. 1 1
      Sessioa/obj/Debug/App.g.i.cs
  18. BIN
      Sessioa/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  19. BIN
      Sessioa/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  20. BIN
      Sessioa/obj/Debug/MainWindow.baml
  21. 1 1
      Sessioa/obj/Debug/MainWindow.g.cs
  22. 1 1
      Sessioa/obj/Debug/MainWindow.g.i.cs
  23. BIN
      Sessioa/obj/Debug/Pages/Autorization.baml
  24. 1 1
      Sessioa/obj/Debug/Pages/Autorization.g.cs
  25. 1 1
      Sessioa/obj/Debug/Pages/Autorization.g.i.cs
  26. BIN
      Sessioa/obj/Debug/Pages/ProductsPage.baml
  27. 79 6
      Sessioa/obj/Debug/Pages/ProductsPage.g.cs
  28. 79 6
      Sessioa/obj/Debug/Pages/ProductsPage.g.i.cs
  29. BIN
      Sessioa/obj/Debug/Sessioa.csproj.AssemblyReference.cache
  30. 1 1
      Sessioa/obj/Debug/Sessioa.csproj.CoreCompileInputs.cache
  31. BIN
      Sessioa/obj/Debug/Sessioa.exe
  32. BIN
      Sessioa/obj/Debug/Sessioa.g.resources
  33. BIN
      Sessioa/obj/Debug/Sessioa.pdb
  34. 1 1
      Sessioa/obj/Debug/Sessioa_MarkupCompile.cache
  35. 1 1
      Sessioa/obj/Debug/Sessioa_MarkupCompile.i.cache
  36. 3 1
      Sessioa/obj/Debug/Sessioa_MarkupCompile.i.lref

BIN
.vs/Sessioa/FileContentIndex/50945cc1-a57f-4f3b-8423-c9381f839064.vsidx


BIN
.vs/Sessioa/FileContentIndex/b5ac9b16-a3bb-40e8-83d3-7dcb1448352c.vsidx


BIN
.vs/Sessioa/FileContentIndex/bc9d5676-bac0-4b51-a8b1-59fc4ff77628.vsidx


BIN
.vs/Sessioa/FileContentIndex/41a668f7-a82f-4035-9a03-eee430766a37.vsidx → .vs/Sessioa/FileContentIndex/d6151b9d-e670-4dc3-8677-650f929dc40c.vsidx


BIN
.vs/Sessioa/FileContentIndex/f70576c8-fc41-4e06-a13e-41a7a624ba1e.vsidx


BIN
.vs/Sessioa/v17/.suo


+ 1 - 0
Sessioa/App.xaml

@@ -124,5 +124,6 @@
             <Setter Property="FontSize" Value="16"/>
             <Setter Property="FontWeight" Value="Light"/>
         </Style>
+        
     </Application.Resources>
 </Application>

+ 1 - 1
Sessioa/MainWindow.xaml

@@ -8,6 +8,6 @@
         Title="MainWindow" Height="450" Width="800"
         FontFamily="Comic Sans MS">
     <Grid>
-        <Frame Name="FrameMain"/>
+        <Frame Name="FrameMain" NavigationUIVisibility="Hidden"/>
     </Grid>
 </Window>

+ 1 - 1
Sessioa/Pages/Autorization.xaml

@@ -25,7 +25,7 @@
             <StackPanel Orientation="Vertical" VerticalAlignment="Center">
                 <TextBlock Text="Авторизация" Style="{StaticResource TextBlockMain}"/>
                 <TextBox Name="Login" DataContext="Логин" Style="{StaticResource TextBox}" Margin="50,10"/>
-                <TextBox Name="Password" DataContext="Пароль" Style="{StaticResource TextBox}" Margin="50,10"/>
+                <TextBox Name="Password" DataContext="Пароль" Style="{StaticResource TextBox}" Margin="50,10" Cursor="IBeam"/>
                 <Button Name="Sign" Content="Войти" Style="{StaticResource ButtonAct}" Margin="100,0" MaxHeight="60" MaxWidth="400" Click="Sign_Click"/>
             </StackPanel>
         </Border>

+ 21 - 1
Sessioa/Pages/ProductsPage.xaml

@@ -11,7 +11,12 @@
         <BitmapImage x:Key="defaultImage" UriSource="/Resources/picture.png"/>
     </Page.Resources>
     <Grid>
-        <ListBox Name="LB_Product" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
+        <Grid.RowDefinitions>
+            <RowDefinition Height="0.12*"/>
+            <RowDefinition/>
+            <RowDefinition Height="0.07*"/>
+        </Grid.RowDefinitions>
+        <ListBox Name="LB_Product" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.Row="1">
             <ListBox.ItemTemplate>
                 <DataTemplate>
                     <Border BorderBrush="#498C51" BorderThickness="3" CornerRadius="5" Uid="{Binding ProductArticleNumber}" Loaded="Border_Loaded">
@@ -41,5 +46,20 @@
                 </DataTemplate>
             </ListBox.ItemTemplate>
         </ListBox>
+        <Grid>
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition Width="7*"/>
+                <ColumnDefinition/>
+                <ColumnDefinition/>
+            </Grid.ColumnDefinitions>
+            <TextBox Name="SearchTB" TextChanged="SearchTB_TextChanged" Style="{StaticResource TextBox}" MaxHeight="60" Margin="6" DataContext="Поиск"/>
+            <ComboBox Name="CB_Sort" SelectionChanged="CB_Sort_SelectionChanged" MaxHeight="60" Margin="6" Grid.Column="1" FontFamily="Comic Sans MS" FontSize="16" VerticalContentAlignment="Center" FontWeight="Light"/>
+            <ComboBox Name="CB_Filtr" SelectionChanged="CB_Filtr_SelectionChanged" MaxHeight="60" Margin="6" Grid.Column="2" FontFamily="Comic Sans MS" FontSize="16" VerticalContentAlignment="Center" FontWeight="Light"/>
+        </Grid>
+        <StackPanel Grid.Row="2" HorizontalAlignment="Center" Orientation="Horizontal" VerticalAlignment="Center">
+            <TextBlock Name="TB_CountActual" Style="{StaticResource TextBlock}"/>
+            <TextBlock Text=" из " Style="{StaticResource TextBlock}"/>
+            <TextBlock Name="TB_CountAll" Style="{StaticResource TextBlock}"/>
+        </StackPanel>
     </Grid>
 </Page>

+ 64 - 2
Sessioa/Pages/ProductsPage.xaml.cs

@@ -1,5 +1,6 @@
 using Sessioa.BaseModel;
 using Sessioa.Classes;
+using System.Collections.Generic;
 using System.Linq;
 using System.Windows;
 using System.Windows.Controls;
@@ -12,17 +13,28 @@ namespace Sessioa.Pages
     /// </summary>
     public partial class ProductsPage : Page
     {
+        List<Product> listProduct = BaseClass.C_Base.Product.ToList();
+        List<string> sort = new List<string>() { "Без сортировки", "По возрастанию", "По убыванию" };
+        List<string> filtr = new List<string>() { "Все диапазоны", "0 - 9,99%", "10 - 14,99%", "15% >" };
+        string selectSort = "Без сортировки";
+        string selectFiltr = "Все диапазоны";
+
         public ProductsPage()
         {
             InitializeComponent();
-            LB_Product.ItemsSource = BaseClass.C_Base.Product.ToList();
+            LB_Product.ItemsSource = listProduct;
+            CB_Sort.ItemsSource = sort;
+            CB_Sort.SelectedItem = selectSort;
+            CB_Filtr.ItemsSource = filtr;
+            CB_Filtr.SelectedItem = selectFiltr;
+            TB_CountAll.Text = BaseClass.C_Base.Product.Count().ToString();
         }
 
         private void countPr_Loaded(object sender, RoutedEventArgs e)
         {
             TextBlock tb = (TextBlock)sender;
             Product product = BaseClass.C_Base.Product.FirstOrDefault(x => x.ProductArticleNumber == tb.Uid);
-            if (product.ProductDiscountAmount != null || product.ProductDiscountAmount != 0)
+            if (product.ProductDiscountAmount != null && product.ProductDiscountAmount != 0)
                 tb.TextDecorations = TextDecorations.Strikethrough;
         }
 
@@ -56,5 +68,55 @@ namespace Sessioa.Pages
             if (product.ProductDiscountAmount != null && product.ProductDiscountAmount != 0)
                 tb.Text = $"Скидка {product.ProductDiscountAmount}%";
         }
+
+        private void SearchTB_TextChanged(object sender, TextChangedEventArgs e)
+        {
+            setting();
+        }
+        private void setting()
+        {
+            if (SearchTB.Text.Length > 0)
+                listProduct = BaseClass.C_Base.Product.Where(x => x.ProductName.ToLower().Contains(SearchTB.Text.ToLower())).ToList();
+            else listProduct = BaseClass.C_Base.Product.ToList();
+            if (CB_Sort.SelectedIndex != 0)
+            {
+                if (CB_Sort.SelectedIndex == 1)
+                {
+                    listProduct = listProduct.OrderBy(x => x.ProductCost).ToList();
+                }
+                if (CB_Sort.SelectedIndex == 2)
+                {
+                    listProduct = listProduct.OrderByDescending(x => x.ProductCost).ToList();
+                }
+            }
+            if(CB_Filtr.SelectedIndex != 0)
+            {
+                switch(CB_Filtr.SelectedIndex)
+                {
+                    case 1:
+                        listProduct = listProduct.Where(x=>x.ProductDiscountAmount >= 0 && x.ProductDiscountAmount <= 9.99).ToList();
+                        break;
+                    case 2:
+                        listProduct = listProduct.Where(x => x.ProductDiscountAmount >= 10 && x.ProductDiscountAmount <= 14.99).ToList();
+                        break;
+                    case 3:
+                        listProduct = listProduct.Where(x => x.ProductDiscountAmount >= 15).ToList();
+                        break;
+                }
+            }
+            LB_Product.ItemsSource = null;
+            LB_Product.ItemsSource = listProduct;
+            TB_CountActual.Text = listProduct.Count.ToString();
+        }
+
+        private void CB_Filtr_SelectionChanged(object sender, SelectionChangedEventArgs e)
+        {
+            setting();
+        }
+
+        private void CB_Sort_SelectionChanged(object sender, SelectionChangedEventArgs e)
+        {
+            setting();
+        }
     }
 }

+ 1 - 0
Sessioa/Sessioa.csproj

@@ -41,6 +41,7 @@
     <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
       <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
     </Reference>
+    <Reference Include="PresentationFramework.Aero2" />
     <Reference Include="System" />
     <Reference Include="System.ComponentModel.DataAnnotations" />
     <Reference Include="System.Data" />

BIN
Sessioa/bin/Debug/Sessioa.exe


BIN
Sessioa/bin/Debug/Sessioa.pdb


BIN
Sessioa/obj/Debug/App.baml


+ 1 - 1
Sessioa/obj/Debug/App.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "921EAC22CF2B377B3857609CCC595B8BFDA66F8A304875561467798DD86503B1"
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8EEEB997777A6EA415311DAB712AD0817BD6326FAB9663B962347AEFF985D603"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

+ 1 - 1
Sessioa/obj/Debug/App.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "921EAC22CF2B377B3857609CCC595B8BFDA66F8A304875561467798DD86503B1"
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8EEEB997777A6EA415311DAB712AD0817BD6326FAB9663B962347AEFF985D603"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

BIN
Sessioa/obj/Debug/DesignTimeResolveAssemblyReferences.cache


BIN
Sessioa/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
Sessioa/obj/Debug/MainWindow.baml


+ 1 - 1
Sessioa/obj/Debug/MainWindow.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "56DBE4A9765F6D440C7F82F1B333F53E22D24C461D3B847F6AB2BB28D69EBFB6"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "39038BCE65EBDFD87C170FC46F0D64E430506EFE4CE69C511D40B250B32048B1"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

+ 1 - 1
Sessioa/obj/Debug/MainWindow.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "56DBE4A9765F6D440C7F82F1B333F53E22D24C461D3B847F6AB2BB28D69EBFB6"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "39038BCE65EBDFD87C170FC46F0D64E430506EFE4CE69C511D40B250B32048B1"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

BIN
Sessioa/obj/Debug/Pages/Autorization.baml


+ 1 - 1
Sessioa/obj/Debug/Pages/Autorization.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\Autorization.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "79CB8DD400A305A86FD8FCF5A8E90911A27A2F714A8B0E43E061985FE5646DA1"
+#pragma checksum "..\..\..\Pages\Autorization.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7B1D53502A2CF205C7FD1E25FEBDAD4499213702066FF7F38893DF8D41700C3E"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

+ 1 - 1
Sessioa/obj/Debug/Pages/Autorization.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\Autorization.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "79CB8DD400A305A86FD8FCF5A8E90911A27A2F714A8B0E43E061985FE5646DA1"
+#pragma checksum "..\..\..\Pages\Autorization.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7B1D53502A2CF205C7FD1E25FEBDAD4499213702066FF7F38893DF8D41700C3E"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

BIN
Sessioa/obj/Debug/Pages/ProductsPage.baml


+ 79 - 6
Sessioa/obj/Debug/Pages/ProductsPage.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E827F9A890777291EF023B1B41D743F7BF84F4B65F913FA3024A41F7396CD77F"
+#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E33DD3E1F74B57401E7047F857723E79E4E8622F60DAEDAC311F3B6287303948"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -41,13 +41,53 @@ namespace Sessioa.Pages {
     public partial class ProductsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
         
         
-        #line 14 "..\..\..\Pages\ProductsPage.xaml"
+        #line 19 "..\..\..\Pages\ProductsPage.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ListBox LB_Product;
         
         #line default
         #line hidden
         
+        
+        #line 55 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox SearchTB;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 56 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CB_Sort;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 57 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CB_Filtr;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 60 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock TB_CountActual;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 62 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock TB_CountAll;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -81,6 +121,39 @@ namespace Sessioa.Pages {
             case 1:
             this.LB_Product = ((System.Windows.Controls.ListBox)(target));
             return;
+            case 6:
+            this.SearchTB = ((System.Windows.Controls.TextBox)(target));
+            
+            #line 55 "..\..\..\Pages\ProductsPage.xaml"
+            this.SearchTB.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SearchTB_TextChanged);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            this.CB_Sort = ((System.Windows.Controls.ComboBox)(target));
+            
+            #line 56 "..\..\..\Pages\ProductsPage.xaml"
+            this.CB_Sort.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CB_Sort_SelectionChanged);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            this.CB_Filtr = ((System.Windows.Controls.ComboBox)(target));
+            
+            #line 57 "..\..\..\Pages\ProductsPage.xaml"
+            this.CB_Filtr.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CB_Filtr_SelectionChanged);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            this.TB_CountActual = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 10:
+            this.TB_CountAll = ((System.Windows.Controls.TextBlock)(target));
+            return;
             }
             this._contentLoaded = true;
         }
@@ -96,7 +169,7 @@ namespace Sessioa.Pages {
             {
             case 2:
             
-            #line 17 "..\..\..\Pages\ProductsPage.xaml"
+            #line 22 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.Border)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Border_Loaded);
             
             #line default
@@ -104,7 +177,7 @@ namespace Sessioa.Pages {
             break;
             case 3:
             
-            #line 34 "..\..\..\Pages\ProductsPage.xaml"
+            #line 39 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded);
             
             #line default
@@ -112,7 +185,7 @@ namespace Sessioa.Pages {
             break;
             case 4:
             
-            #line 35 "..\..\..\Pages\ProductsPage.xaml"
+            #line 40 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded_1);
             
             #line default
@@ -120,7 +193,7 @@ namespace Sessioa.Pages {
             break;
             case 5:
             
-            #line 38 "..\..\..\Pages\ProductsPage.xaml"
+            #line 43 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Discount_Loaded);
             
             #line default

+ 79 - 6
Sessioa/obj/Debug/Pages/ProductsPage.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E827F9A890777291EF023B1B41D743F7BF84F4B65F913FA3024A41F7396CD77F"
+#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E33DD3E1F74B57401E7047F857723E79E4E8622F60DAEDAC311F3B6287303948"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -41,13 +41,53 @@ namespace Sessioa.Pages {
     public partial class ProductsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
         
         
-        #line 14 "..\..\..\Pages\ProductsPage.xaml"
+        #line 19 "..\..\..\Pages\ProductsPage.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ListBox LB_Product;
         
         #line default
         #line hidden
         
+        
+        #line 55 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox SearchTB;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 56 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CB_Sort;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 57 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CB_Filtr;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 60 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock TB_CountActual;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 62 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock TB_CountAll;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -81,6 +121,39 @@ namespace Sessioa.Pages {
             case 1:
             this.LB_Product = ((System.Windows.Controls.ListBox)(target));
             return;
+            case 6:
+            this.SearchTB = ((System.Windows.Controls.TextBox)(target));
+            
+            #line 55 "..\..\..\Pages\ProductsPage.xaml"
+            this.SearchTB.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SearchTB_TextChanged);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            this.CB_Sort = ((System.Windows.Controls.ComboBox)(target));
+            
+            #line 56 "..\..\..\Pages\ProductsPage.xaml"
+            this.CB_Sort.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CB_Sort_SelectionChanged);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            this.CB_Filtr = ((System.Windows.Controls.ComboBox)(target));
+            
+            #line 57 "..\..\..\Pages\ProductsPage.xaml"
+            this.CB_Filtr.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CB_Filtr_SelectionChanged);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            this.TB_CountActual = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 10:
+            this.TB_CountAll = ((System.Windows.Controls.TextBlock)(target));
+            return;
             }
             this._contentLoaded = true;
         }
@@ -96,7 +169,7 @@ namespace Sessioa.Pages {
             {
             case 2:
             
-            #line 17 "..\..\..\Pages\ProductsPage.xaml"
+            #line 22 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.Border)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Border_Loaded);
             
             #line default
@@ -104,7 +177,7 @@ namespace Sessioa.Pages {
             break;
             case 3:
             
-            #line 34 "..\..\..\Pages\ProductsPage.xaml"
+            #line 39 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded);
             
             #line default
@@ -112,7 +185,7 @@ namespace Sessioa.Pages {
             break;
             case 4:
             
-            #line 35 "..\..\..\Pages\ProductsPage.xaml"
+            #line 40 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded_1);
             
             #line default
@@ -120,7 +193,7 @@ namespace Sessioa.Pages {
             break;
             case 5:
             
-            #line 38 "..\..\..\Pages\ProductsPage.xaml"
+            #line 43 "..\..\..\Pages\ProductsPage.xaml"
             ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Discount_Loaded);
             
             #line default

BIN
Sessioa/obj/Debug/Sessioa.csproj.AssemblyReference.cache


+ 1 - 1
Sessioa/obj/Debug/Sessioa.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-0eca49416f627aa1ba071a778597b3d493dcdadc
+f58cc5301714cb6337e2815de4a39969f368d4bc

BIN
Sessioa/obj/Debug/Sessioa.exe


BIN
Sessioa/obj/Debug/Sessioa.g.resources


BIN
Sessioa/obj/Debug/Sessioa.pdb


+ 1 - 1
Sessioa/obj/Debug/Sessioa_MarkupCompile.cache

@@ -13,7 +13,7 @@ DEBUG;TRACE
 3-1403270689
 2-1121443055
 221943217882
-19-1212566042
+20-1101847567
 MainWindow.xaml;Pages\Autorization.xaml;Pages\ProductsPage.xaml;
 
 False

+ 1 - 1
Sessioa/obj/Debug/Sessioa_MarkupCompile.i.cache

@@ -13,7 +13,7 @@ DEBUG;TRACE
 3-1403270689
 2-1121443055
 23-138870736
-19-1212566042
+20-1101847567
 MainWindow.xaml;Pages\Autorization.xaml;Pages\ProductsPage.xaml;
 
 True

+ 3 - 1
Sessioa/obj/Debug/Sessioa_MarkupCompile.i.lref

@@ -1,4 +1,6 @@
 
-
+F\\main\RDP\43П\шечковано\Desktop\gg\Sessioa\Sessioa\App.xaml;;
+F\\main\RDP\43П\шечковано\Desktop\gg\Sessioa\Sessioa\MainWindow.xaml;;
+F\\main\RDP\43П\шечковано\Desktop\gg\Sessioa\Sessioa\Pages\Autorization.xaml;;
 F\\main\RDP\43П\шечковано\Desktop\gg\Sessioa\Sessioa\Pages\ProductsPage.xaml;;