Просмотр исходного кода

список продуктов

unknown 8 месяцев назад
Родитель
Сommit
b44ee5c59c
35 измененных файлов с 270 добавлено и 73 удалено
  1. BIN
      .vs/Sessioa/FileContentIndex/41a668f7-a82f-4035-9a03-eee430766a37.vsidx
  2. BIN
      .vs/Sessioa/FileContentIndex/a0077d11-4ddb-45e4-bc5f-0395df17bc33.vsidx
  3. 0 0
      .vs/Sessioa/FileContentIndex/b5ac9b16-a3bb-40e8-83d3-7dcb1448352c.vsidx
  4. BIN
      .vs/Sessioa/FileContentIndex/bc9d5676-bac0-4b51-a8b1-59fc4ff77628.vsidx
  5. BIN
      .vs/Sessioa/FileContentIndex/f087d030-1062-4547-ab47-95c62e244f99.vsidx
  6. BIN
      .vs/Sessioa/v17/.suo
  7. 14 4
      Sessioa/App.xaml
  8. 1 1
      Sessioa/Pages/Autorization.xaml.cs
  9. 32 3
      Sessioa/Pages/ProductsPage.xaml
  10. 42 10
      Sessioa/Pages/ProductsPage.xaml.cs
  11. 40 38
      Sessioa/Properties/Resources.Designer.cs
  12. 12 5
      Sessioa/Properties/Resources.resx
  13. BIN
      Sessioa/Resources/picture.png
  14. 3 0
      Sessioa/Sessioa.csproj
  15. BIN
      Sessioa/bin/Debug/Sessioa.exe
  16. BIN
      Sessioa/bin/Debug/Sessioa.pdb
  17. BIN
      Sessioa/obj/Debug/App.baml
  18. 1 1
      Sessioa/obj/Debug/App.g.cs
  19. 1 1
      Sessioa/obj/Debug/App.g.i.cs
  20. BIN
      Sessioa/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  21. BIN
      Sessioa/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  22. BIN
      Sessioa/obj/Debug/Pages/ProductsPage.baml
  23. 60 2
      Sessioa/obj/Debug/Pages/ProductsPage.g.cs
  24. 60 2
      Sessioa/obj/Debug/Pages/ProductsPage.g.i.cs
  25. BIN
      Sessioa/obj/Debug/Sessioa.Properties.Resources.resources
  26. BIN
      Sessioa/obj/Debug/Sessioa.csproj.AssemblyReference.cache
  27. 1 1
      Sessioa/obj/Debug/Sessioa.csproj.CoreCompileInputs.cache
  28. BIN
      Sessioa/obj/Debug/Sessioa.csproj.GenerateResource.cache
  29. BIN
      Sessioa/obj/Debug/Sessioa.exe
  30. BIN
      Sessioa/obj/Debug/Sessioa.g.resources
  31. BIN
      Sessioa/obj/Debug/Sessioa.pdb
  32. 1 1
      Sessioa/obj/Debug/Sessioa_MarkupCompile.cache
  33. 1 1
      Sessioa/obj/Debug/Sessioa_MarkupCompile.i.cache
  34. 1 3
      Sessioa/obj/Debug/Sessioa_MarkupCompile.i.lref
  35. BIN
      Sessioa/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll

BIN
.vs/Sessioa/FileContentIndex/41a668f7-a82f-4035-9a03-eee430766a37.vsidx


BIN
.vs/Sessioa/FileContentIndex/a0077d11-4ddb-45e4-bc5f-0395df17bc33.vsidx


+ 0 - 0
.vs/Sessioa/FileContentIndex/3421c21a-a169-4ffd-b5e8-b7a0b0d55877.vsidx → .vs/Sessioa/FileContentIndex/b5ac9b16-a3bb-40e8-83d3-7dcb1448352c.vsidx


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


BIN
.vs/Sessioa/FileContentIndex/f087d030-1062-4547-ab47-95c62e244f99.vsidx


BIN
.vs/Sessioa/v17/.suo


+ 14 - 4
Sessioa/App.xaml

@@ -9,7 +9,7 @@
             <Setter Property="Foreground" Value="Black"/>
             <Setter Property="VerticalContentAlignment" Value="Center"/>
             <Setter Property="FontFamily" Value="Comic Sans MS"/>
-            <Setter Property="FontSize" Value="14"/>
+            <Setter Property="FontSize" Value="16"/>
             <Setter Property="BorderThickness" Value="1"/>
             <Setter Property="BorderBrush" Value="#498C51"/>
             <Setter Property="SelectionOpacity" Value="1"/>
@@ -26,7 +26,7 @@
                                         <ColumnDefinition Width="11"/>
                                     </Grid.ColumnDefinitions>
                                     <ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" Focusable="False"/>
-                                    <TextBlock x:Name="Text" Foreground="#696969" Grid.Column="1" VerticalAlignment="Center" FontFamily="Comic Sans MS" FontSize="14" Text="{TemplateBinding DataContext}"/>
+                                    <TextBlock x:Name="Text" Foreground="#696969" Grid.Column="1" VerticalAlignment="Center" FontFamily="Comic Sans MS" FontSize="16" Text="{TemplateBinding DataContext}"/>
                                 </Grid>
                             </Border>
                         </Grid>
@@ -66,7 +66,7 @@
             <Setter Property="Background" Value="#76E383"/>
             <Setter Property="BorderBrush" Value="#498C51"/>
             <Setter Property="FontFamily" Value="Comic Sans MS"/>
-            <Setter Property="FontSize" Value="14"/>
+            <Setter Property="FontSize" Value="16"/>
             <Setter Property="Template">
                 <Setter.Value>
                     <ControlTemplate TargetType="{x:Type Button}">
@@ -89,7 +89,7 @@
             <Setter Property="Background" Value="#498C51"/>
             <Setter Property="BorderBrush" Value="#00b34a"/>
             <Setter Property="FontFamily" Value="Comic Sans MS"/>
-            <Setter Property="FontSize" Value="14"/>
+            <Setter Property="FontSize" Value="16"/>
             <Setter Property="Template">
                 <Setter.Value>
                     <ControlTemplate TargetType="{x:Type Button}">
@@ -114,5 +114,15 @@
             <Setter Property="FontWeight" Value="Bold"/>
             <Setter Property="HorizontalAlignment" Value="Center"/>
         </Style>
+        <Style x:Key="TextBlockBold" TargetType="{x:Type TextBlock}">
+            <Setter Property="FontFamily" Value="Comic Sans MS"/>
+            <Setter Property="FontSize" Value="16"/>
+            <Setter Property="FontWeight" Value="Bold"/>
+        </Style>
+        <Style x:Key="TextBlock" TargetType="{x:Type TextBlock}">
+            <Setter Property="FontFamily" Value="Comic Sans MS"/>
+            <Setter Property="FontSize" Value="16"/>
+            <Setter Property="FontWeight" Value="Light"/>
+        </Style>
     </Application.Resources>
 </Application>

+ 1 - 1
Sessioa/Pages/Autorization.xaml.cs

@@ -36,7 +36,7 @@ namespace Sessioa.Pages
             {
                 if(user.UserPassword == Password.Text)
                 {
-
+                    FrameClass.C_Frame.Navigate(new ProductsPage());
                 }
                 else
                 {

+ 32 - 3
Sessioa/Pages/ProductsPage.xaml

@@ -7,10 +7,39 @@
       mc:Ignorable="d" 
       d:DesignHeight="450" d:DesignWidth="800"
       Title="ProductsPage">
-
+    <Page.Resources>
+        <BitmapImage x:Key="defaultImage" UriSource="/Resources/picture.png"/>
+    </Page.Resources>
     <Grid>
-        <ListBox>
-            
+        <ListBox Name="LB_Product" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
+            <ListBox.ItemTemplate>
+                <DataTemplate>
+                    <Border BorderBrush="#498C51" BorderThickness="3" CornerRadius="5" Uid="{Binding ProductArticleNumber}" Loaded="Border_Loaded">
+                        <Grid>
+                            <Grid.ColumnDefinitions>
+                                <ColumnDefinition Width="0.3*"/>
+                                <ColumnDefinition Width="2*"/>
+                                <ColumnDefinition Width="0.5*"/>
+                            </Grid.ColumnDefinitions>
+                            <Image Source="{Binding ProductPhoto, TargetNullValue={StaticResource defaultImage}}" Margin="5" MaxWidth="80"/>
+                            <StackPanel Grid.Column="1">
+                                <TextBlock Text="{Binding ProductName}" Style="{StaticResource TextBlockBold}"/>
+                                <TextBlock Text="{Binding ProductDescription}" Style="{StaticResource TextBlock}"/>
+                                <StackPanel Orientation="Horizontal">
+                                    <TextBlock Text="Производитель:" Style="{StaticResource TextBlock}" Margin="0,0,5,0"/>
+                                    <TextBlock Text="{Binding Manufacturer.ProductManufacturer}" Style="{StaticResource TextBlock}"/>
+                                </StackPanel>
+                                <StackPanel Orientation="Horizontal">
+                                    <TextBlock Text="Цена: " Style="{StaticResource TextBlock}" Margin="0,0,5,0"/>
+                                    <TextBlock Name="countPr" Text="{Binding ProductCost, StringFormat={}{0:C}}" Style="{StaticResource TextBlock}" Uid="{Binding ProductArticleNumber}" Loaded="countPr_Loaded"/>
+                                    <TextBlock Name="countDPr" Style="{StaticResource TextBlock}" Uid="{Binding ProductArticleNumber}" Visibility="Collapsed" Loaded="countPr_Loaded_1" Margin="5,0,0,0"/>
+                                </StackPanel>
+                            </StackPanel>
+                            <TextBlock Name="Discount" Loaded="Discount_Loaded" Uid="{Binding ProductArticleNumber}" Style="{StaticResource TextBlock}" Grid.Column="2" VerticalAlignment="Center"/>
+                        </Grid>
+                    </Border>
+                </DataTemplate>
+            </ListBox.ItemTemplate>
         </ListBox>
     </Grid>
 </Page>

+ 42 - 10
Sessioa/Pages/ProductsPage.xaml.cs

@@ -1,17 +1,9 @@
-using System;
-using System.Collections.Generic;
+using Sessioa.BaseModel;
+using Sessioa.Classes;
 using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
 using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 
 namespace Sessioa.Pages
 {
@@ -23,6 +15,46 @@ namespace Sessioa.Pages
         public ProductsPage()
         {
             InitializeComponent();
+            LB_Product.ItemsSource = BaseClass.C_Base.Product.ToList();
+        }
+
+        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)
+                tb.TextDecorations = TextDecorations.Strikethrough;
+        }
+
+        private void countPr_Loaded_1(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)
+            {
+                double j = (double)product.ProductDiscountAmount / 100;
+                double ji = (double)(product.ProductCost) * j;
+
+                double n = (double)(product.ProductCost) - ji;
+                tb.Text = n.ToString() + "$";
+                tb.Visibility = Visibility.Visible;
+            }
+        }
+
+        private void Border_Loaded(object sender, RoutedEventArgs e)
+        {
+            Border border = (Border)sender;
+            Product product = BaseClass.C_Base.Product.FirstOrDefault(x => x.ProductArticleNumber == border.Uid);
+            if (product.ProductDiscountAmount != null && product.ProductDiscountAmount > 15)
+                border.Background = (Brush)(new BrushConverter().ConvertFrom("#7fff00"));
+        }
+
+        private void Discount_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)
+                tb.Text = $"Скидка {product.ProductDiscountAmount}%";
         }
     }
 }

+ 40 - 38
Sessioa/Properties/Resources.Designer.cs

@@ -1,71 +1,73 @@
 //------------------------------------------------------------------------------
 // <auto-generated>
-//     Этот код был создан программным средством.
-//     Версия среды выполнения: 4.0.30319.42000
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
 //
-//     Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
-//     код создан повторно.
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace Sessioa.Properties
-{
-
-
+namespace Sessioa.Properties {
+    using System;
+    
+    
     /// <summary>
-    ///   Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+    ///   Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
     /// </summary>
-    // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
-    // класс с помощью таких средств, как ResGen или Visual Studio.
-    // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
-    // с параметром /str или заново постройте свой VS-проект.
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    // Этот класс создан автоматически классом StronglyTypedResourceBuilder
+    // с помощью такого средства, как ResGen или Visual Studio.
+    // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
+    // с параметром /str или перестройте свой проект VS.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
     [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    internal class Resources
-    {
-
+    internal class Resources {
+        
         private static global::System.Resources.ResourceManager resourceMan;
-
+        
         private static global::System.Globalization.CultureInfo resourceCulture;
-
+        
         [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
-        internal Resources()
-        {
+        internal Resources() {
         }
-
+        
         /// <summary>
-        ///   Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+        ///   Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
         /// </summary>
         [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Resources.ResourceManager ResourceManager
-        {
-            get
-            {
-                if ((resourceMan == null))
-                {
+        internal static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
                     global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Sessioa.Properties.Resources", typeof(Resources).Assembly);
                     resourceMan = temp;
                 }
                 return resourceMan;
             }
         }
-
+        
         /// <summary>
-        ///   Переопределяет свойство CurrentUICulture текущего потока для всех
-        ///   подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+        ///   Перезаписывает свойство CurrentUICulture текущего потока для всех
+        ///   обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
         /// </summary>
         [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
-        internal static global::System.Globalization.CultureInfo Culture
-        {
-            get
-            {
+        internal static global::System.Globalization.CultureInfo Culture {
+            get {
                 return resourceCulture;
             }
-            set
-            {
+            set {
                 resourceCulture = value;
             }
         }
+        
+        /// <summary>
+        ///   Поиск локализованного ресурса типа System.Drawing.Bitmap.
+        /// </summary>
+        internal static System.Drawing.Bitmap picture {
+            get {
+                object obj = ResourceManager.GetObject("picture", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
     }
 }

+ 12 - 5
Sessioa/Properties/Resources.resx

@@ -46,7 +46,7 @@
     
     mimetype: application/x-microsoft.net.object.binary.base64
     value   : The object must be serialized with 
-            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
             : and then encoded with base64 encoding.
     
     mimetype: application/x-microsoft.net.object.soap.base64
@@ -60,6 +60,7 @@
             : and then encoded with base64 encoding.
     -->
   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
     <xsd:element name="root" msdata:IsDataSet="true">
       <xsd:complexType>
         <xsd:choice maxOccurs="unbounded">
@@ -68,9 +69,10 @@
               <xsd:sequence>
                 <xsd:element name="value" type="xsd:string" minOccurs="0" />
               </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="name" use="required" type="xsd:string" />
               <xsd:attribute name="type" type="xsd:string" />
               <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
             </xsd:complexType>
           </xsd:element>
           <xsd:element name="assembly">
@@ -85,9 +87,10 @@
                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
               </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
             </xsd:complexType>
           </xsd:element>
           <xsd:element name="resheader">
@@ -109,9 +112,13 @@
     <value>2.0</value>
   </resheader>
   <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+  <data name="picture" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\Resources\picture.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
 </root>

BIN
Sessioa/Resources/picture.png


+ 3 - 0
Sessioa/Sessioa.csproj

@@ -44,6 +44,7 @@
     <Reference Include="System" />
     <Reference Include="System.ComponentModel.DataAnnotations" />
     <Reference Include="System.Data" />
+    <Reference Include="System.Drawing" />
     <Reference Include="System.Runtime.Serialization" />
     <Reference Include="System.Security" />
     <Reference Include="System.Xml" />
@@ -155,6 +156,7 @@
     <EmbeddedResource Include="Properties\Resources.resx">
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
     </EmbeddedResource>
     <EntityDeploy Include="BaseModel\ModelBase.edmx">
       <Generator>EntityModelCodeGenerator</Generator>
@@ -186,6 +188,7 @@
       <DependentUpon>ModelBase.edmx</DependentUpon>
       <LastGenOutput>ModelBase.cs</LastGenOutput>
     </Content>
+    <Resource Include="Resources\picture.png" />
     <Resource Include="Photos\A346R4.jpg" />
     <Resource Include="Photos\A543T6.jpg" />
     <Resource Include="Photos\B730E2.jpg" />

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}" "119C6ED089346852486B3A41DC03FD5BB493C486758F800410D88F16F64EE295"
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "921EAC22CF2B377B3857609CCC595B8BFDA66F8A304875561467798DD86503B1"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

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

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

BIN
Sessioa/obj/Debug/DesignTimeResolveAssemblyReferences.cache


BIN
Sessioa/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


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


+ 60 - 2
Sessioa/obj/Debug/Pages/ProductsPage.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A3C67E0FB0EA1BAE089B44233CDA23601DA14CEDA9492B078118EEA84CD647CC"
+#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E827F9A890777291EF023B1B41D743F7BF84F4B65F913FA3024A41F7396CD77F"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -38,7 +38,15 @@ namespace Sessioa.Pages {
     /// <summary>
     /// ProductsPage
     /// </summary>
-    public partial class ProductsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+    public partial class ProductsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
+        
+        
+        #line 14 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ListBox LB_Product;
+        
+        #line default
+        #line hidden
         
         private bool _contentLoaded;
         
@@ -68,8 +76,58 @@ namespace Sessioa.Pages {
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
         void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LB_Product = ((System.Windows.Controls.ListBox)(target));
+            return;
+            }
             this._contentLoaded = true;
         }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 2:
+            
+            #line 17 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.Border)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Border_Loaded);
+            
+            #line default
+            #line hidden
+            break;
+            case 3:
+            
+            #line 34 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded);
+            
+            #line default
+            #line hidden
+            break;
+            case 4:
+            
+            #line 35 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded_1);
+            
+            #line default
+            #line hidden
+            break;
+            case 5:
+            
+            #line 38 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Discount_Loaded);
+            
+            #line default
+            #line hidden
+            break;
+            }
+        }
     }
 }
 

+ 60 - 2
Sessioa/obj/Debug/Pages/ProductsPage.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A3C67E0FB0EA1BAE089B44233CDA23601DA14CEDA9492B078118EEA84CD647CC"
+#pragma checksum "..\..\..\Pages\ProductsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E827F9A890777291EF023B1B41D743F7BF84F4B65F913FA3024A41F7396CD77F"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -38,7 +38,15 @@ namespace Sessioa.Pages {
     /// <summary>
     /// ProductsPage
     /// </summary>
-    public partial class ProductsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+    public partial class ProductsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
+        
+        
+        #line 14 "..\..\..\Pages\ProductsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ListBox LB_Product;
+        
+        #line default
+        #line hidden
         
         private bool _contentLoaded;
         
@@ -68,8 +76,58 @@ namespace Sessioa.Pages {
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
         void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LB_Product = ((System.Windows.Controls.ListBox)(target));
+            return;
+            }
             this._contentLoaded = true;
         }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 2:
+            
+            #line 17 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.Border)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Border_Loaded);
+            
+            #line default
+            #line hidden
+            break;
+            case 3:
+            
+            #line 34 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded);
+            
+            #line default
+            #line hidden
+            break;
+            case 4:
+            
+            #line 35 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.countPr_Loaded_1);
+            
+            #line default
+            #line hidden
+            break;
+            case 5:
+            
+            #line 38 "..\..\..\Pages\ProductsPage.xaml"
+            ((System.Windows.Controls.TextBlock)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Discount_Loaded);
+            
+            #line default
+            #line hidden
+            break;
+            }
+        }
     }
 }
 

BIN
Sessioa/obj/Debug/Sessioa.Properties.Resources.resources


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


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

@@ -1 +1 @@
-6353fd3e9794d4b2260367e3f3e9a0f981a629a6
+0eca49416f627aa1ba071a778597b3d493dcdadc

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


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
-18-866926633
+19-1212566042
 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
-18-866926633
+19-1212566042
 MainWindow.xaml;Pages\Autorization.xaml;Pages\ProductsPage.xaml;
 
 True

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

@@ -1,6 +1,4 @@
 
-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;;
 

BIN
Sessioa/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll