Jelajahi Sumber

изменение продукта

unknown 8 bulan lalu
induk
melakukan
bd4ebdbbe0

TEMPAT SAMPAH
.vs/Sessioa/FileContentIndex/48c31180-8f10-4548-8c12-0824fbe59e67.vsidx


TEMPAT SAMPAH
.vs/Sessioa/FileContentIndex/b71fb38c-84f4-44b9-a32a-94389f1a37ba.vsidx


TEMPAT SAMPAH
.vs/Sessioa/v17/.suo


+ 3 - 1
Sessioa/Pages/ProductCard.xaml

@@ -6,7 +6,9 @@
       xmlns:local="clr-namespace:Sessioa.Pages"
       mc:Ignorable="d" 
       d:DesignHeight="450" d:DesignWidth="800"
-      Title="ProductCard">
+      Title="ProductCard"
+      FontSize="16"
+      FontFamily="Comic Sans MS">
 
     <Grid>
         <Grid.RowDefinitions>

+ 96 - 43
Sessioa/Pages/ProductCard.xaml.cs

@@ -1,14 +1,14 @@
-using Sessioa.Classes;
+using Sessioa.BaseModel;
+using Sessioa.Classes;
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
+using System.Linq;
 using System.Text.RegularExpressions;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Media.Imaging;
-using Sessioa.BaseModel;
-using System.Linq;
 
 namespace Sessioa.Pages
 {
@@ -18,6 +18,7 @@ namespace Sessioa.Pages
     public partial class ProductCard : Page
     {
         User user = null;
+        Product prEdit = null;
         List<string> imagePath = new List<string>();
         List<ProductCategory> categories = BaseClass.C_Base.ProductCategory.ToList();
 
@@ -25,16 +26,54 @@ namespace Sessioa.Pages
 
         List<Provider> providerList = BaseClass.C_Base.Provider.ToList();
         int imActual = -1;
+        bool state = true;
+        bool resIm = false;
         public ProductCard(User userSign)
         {
             InitializeComponent();
             user = userSign;
+            sett();
+        }
+        public ProductCard(User userSign, Product product)
+        {
+            InitializeComponent();
+            state = false;
+            prEdit = product;
+            user = userSign;
+            TB_Articule.Text = product.ProductArticleNumber;
+            TB_Articule.IsReadOnly = true;
+            TB_Title.Text = product.ProductName;
+            TB_Description.Text = product.ProductDescription;
+            sett();
+            foreach (var imList in imagePath)
+            {
+                imActual++;
+                if (imList == product.ProductPhoto)
+                {
+                    resIm = true;
+                    break;
+                }
+            }
+            if (resIm == true)
+                ImageProd.Source = new BitmapImage(new Uri(imagePath[imActual], UriKind.Relative));
+
+            CategoryProd.SelectedItem = categories[product.ProductCategory - 1];
+            ManufacturedProd.SelectedItem = manufacturersList[product.ProductManufacturer - 1];
+            ProviderProd.SelectedItem = providerList[product.ProductProvider - 1];
+            TB_Price.Text = product.ProductCost.ToString();
+            if (product.ProductDiscountAmount != null)
+                TB_Discount.Text = product.ProductDiscountAmount.ToString();
+            TB_Count.Text = product.ProductQuantityInStock.ToString();
+        }
+        public void sett()
+        {
             FileInfo[] files = new DirectoryInfo($"{Directory.GetCurrentDirectory()}\\Photos").GetFiles();
             foreach (FileInfo file in files)
             {
                 imagePath.Add("/Photos/" + file.Name);
                 Debug.Write(file.Name);
             }
+
             CategoryProd.ItemsSource = categories;
             CategoryProd.DisplayMemberPath = "CategoryTitle";
             CategoryProd.SelectedValuePath = "CategoryId";
@@ -46,20 +85,6 @@ namespace Sessioa.Pages
             ProviderProd.ItemsSource = providerList;
             ProviderProd.DisplayMemberPath = "Provider1";
             ProviderProd.SelectedValuePath = "ProviderId";
-
-        }
-        public ProductCard(User userSign, Product product)
-        {
-            InitializeComponent();
-            TB_Articule.Text = product.ProductArticleNumber;
-            TB_Title.Text = product.ProductName;
-            TB_Description.Text = product.ProductDescription;
-
-            CategoryProd.ItemsSource = categories;
-            CategoryProd.DisplayMemberPath = "CategoryTitle";
-            CategoryProd.SelectedValuePath = "CategoryId";
-
-            CategoryProd.SelectedItem = categories[product.ProductCategory + 1];
         }
 
         private void BT_save_Click(object sender, RoutedEventArgs e)
@@ -84,7 +109,7 @@ namespace Sessioa.Pages
                 {
                     MessageBox.Show("Неверный формат стоимости. Все символы должны быть целочисленными.", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
                 }
-                else if (Convert.ToInt32(TB_Price.Text) < 1 || !int.TryParse(TB_Price.Text, out int a))
+                else if (Convert.ToDouble(TB_Price.Text) < 1 || !double.TryParse(TB_Price.Text, out double a))
                 {
                     MessageBox.Show("Стоимость не может быть меньше 1.", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
                 }
@@ -126,39 +151,67 @@ namespace Sessioa.Pages
                 }
                 else
                 {
-                    Product newProduct = new Product()
+                    if (state == true)
                     {
-                        ProductArticleNumber = TB_Articule.Text,
-                        ProductName = TB_Title.Text,
-                        ProductDescription = TB_Description.Text,
-                        ProductCategory = CategoryProd.SelectedIndex,
-                        ProductManufacturer = ManufacturedProd.SelectedIndex,
-                        ProductProvider = ProviderProd.SelectedIndex,
-                        ProductCost = Convert.ToInt32(TB_Price.Text),
-                        ProductQuantityInStock = Convert.ToInt32(TB_Count.Text)
-                    };
-                    if (imActual != -1)
-                        newProduct.ProductPhoto = imagePath[imActual];
-                    if (TB_Discount.Text.Length > 0)
-                    {
-                        newProduct.ProductDiscountAmount = Convert.ToByte(TB_Discount.Text);
-                    }
+                        Product newProduct = new Product()
+                        {
+                            ProductArticleNumber = TB_Articule.Text,
+                            ProductName = TB_Title.Text,
+                            ProductDescription = TB_Description.Text,
+                            ProductCategory = CategoryProd.SelectedIndex,
+                            ProductManufacturer = ManufacturedProd.SelectedIndex,
+                            ProductProvider = ProviderProd.SelectedIndex,
+                            ProductCost = Convert.ToInt32(TB_Price.Text),
+                            ProductQuantityInStock = Convert.ToInt32(TB_Count.Text)
+                        };
+                        if (imActual != -1)
+                            newProduct.ProductPhoto = imagePath[imActual];
+                        if (TB_Discount.Text.Length > 0)
+                        {
+                            newProduct.ProductDiscountAmount = Convert.ToByte(TB_Discount.Text);
+                        }
 
-                    bool res = false;
+                        bool res = false;
 
-                    foreach (var item in BaseClass.C_Base.Product.ToList())
-                    {
-                        if (item.ProductArticleNumber == newProduct.ProductArticleNumber)
+                        foreach (var item in BaseClass.C_Base.Product.ToList())
+                        {
+                            if (item.ProductArticleNumber == newProduct.ProductArticleNumber)
+                            {
+                                MessageBox.Show("Продукт с таким артикулом уже существует.", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
+                                res = true;
+                            }
+                        }
+                        if (res != true)
                         {
-                            MessageBox.Show("Продукт с таким артикулом уже существует.", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
-                            res = true;
+                            BaseClass.C_Base.Product.Add(newProduct);
+                            BaseClass.C_Base.SaveChanges();
+                            MessageBoxResult mbr = MessageBox.Show("Продукт добавлен", "Уведомление", MessageBoxButton.OK, MessageBoxImage.Information);
+                            if (mbr == MessageBoxResult.OK)
+                                FrameClass.C_Frame.Navigate(new ProductsPage(user));
                         }
                     }
-                    if (res != true)
+                    else
                     {
-                        BaseClass.C_Base.Product.Add(newProduct);
+                        Product edit = BaseClass.C_Base.Product.FirstOrDefault(x => x.ProductArticleNumber == prEdit.ProductArticleNumber);
+                        edit.ProductArticleNumber = TB_Articule.Text;
+                        edit.ProductName = TB_Title.Text;
+                        edit.ProductDescription = TB_Description.Text;
+                        edit.ProductCategory = CategoryProd.SelectedIndex + 1;
+                        edit.ProductManufacturer = ManufacturedProd.SelectedIndex + 1;
+                        edit.ProductProvider = ProviderProd.SelectedIndex + 1;
+                        edit.ProductCost = Convert.ToDecimal(TB_Price.Text);
+                        edit.ProductQuantityInStock = Convert.ToInt32(TB_Count.Text);
+
+                        if (resIm != false)
+                            edit.ProductPhoto = imagePath[imActual];
+                        if (TB_Discount.Text.Length > 0)
+                        {
+                            edit.ProductDiscountAmount = Convert.ToByte(TB_Discount.Text);
+                        }
+
+
                         BaseClass.C_Base.SaveChanges();
-                        MessageBoxResult mbr = MessageBox.Show("Продукт добавлен", "Уведомление", MessageBoxButton.OK, MessageBoxImage.Information);
+                        MessageBoxResult mbr = MessageBox.Show("Продукт изменен", "Уведомление", MessageBoxButton.OK, MessageBoxImage.Information);
                         if (mbr == MessageBoxResult.OK)
                             FrameClass.C_Frame.Navigate(new ProductsPage(user));
                     }

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

@@ -183,7 +183,7 @@ namespace Sessioa.Pages
             }
             catch 
             {
-                MessageBox.Show("Продукт не выбран.");
+                MessageBox.Show("Непредвиденная ошибка.", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Information);
             }
         }
     }

TEMPAT SAMPAH
Sessioa/bin/Debug/Sessioa.exe


TEMPAT SAMPAH
Sessioa/bin/Debug/Sessioa.pdb


TEMPAT SAMPAH
Sessioa/obj/Debug/Pages/ProductCard.baml


+ 19 - 19
Sessioa/obj/Debug/Pages/ProductCard.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\ProductCard.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "0F2472B95524B253AC59B50DD7E36A6B5591AC35FA60E6B61EE9461EB31E662E"
+#pragma checksum "..\..\..\Pages\ProductCard.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "43C506454601EF8FC4F406672E300742ED7E4B1B1B67AD00F734BD5F8D998B83"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -41,7 +41,7 @@ namespace Sessioa.Pages {
     public partial class ProductCard : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
         
         
-        #line 25 "..\..\..\Pages\ProductCard.xaml"
+        #line 27 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button BackIm;
         
@@ -49,7 +49,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 26 "..\..\..\Pages\ProductCard.xaml"
+        #line 28 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Image ImageProd;
         
@@ -57,7 +57,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 27 "..\..\..\Pages\ProductCard.xaml"
+        #line 29 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button NextIm;
         
@@ -65,7 +65,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 29 "..\..\..\Pages\ProductCard.xaml"
+        #line 31 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Articule;
         
@@ -73,7 +73,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 30 "..\..\..\Pages\ProductCard.xaml"
+        #line 32 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Title;
         
@@ -81,7 +81,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 31 "..\..\..\Pages\ProductCard.xaml"
+        #line 33 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Description;
         
@@ -89,7 +89,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 33 "..\..\..\Pages\ProductCard.xaml"
+        #line 35 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ComboBox CategoryProd;
         
@@ -97,7 +97,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 35 "..\..\..\Pages\ProductCard.xaml"
+        #line 37 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ComboBox ManufacturedProd;
         
@@ -105,7 +105,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 37 "..\..\..\Pages\ProductCard.xaml"
+        #line 39 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ComboBox ProviderProd;
         
@@ -113,7 +113,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 38 "..\..\..\Pages\ProductCard.xaml"
+        #line 40 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Price;
         
@@ -121,7 +121,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 39 "..\..\..\Pages\ProductCard.xaml"
+        #line 41 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Discount;
         
@@ -129,7 +129,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 40 "..\..\..\Pages\ProductCard.xaml"
+        #line 42 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Count;
         
@@ -137,7 +137,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 44 "..\..\..\Pages\ProductCard.xaml"
+        #line 46 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button BT_save;
         
@@ -145,7 +145,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 45 "..\..\..\Pages\ProductCard.xaml"
+        #line 47 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button BT_Back;
         
@@ -185,7 +185,7 @@ namespace Sessioa.Pages {
             case 1:
             this.BackIm = ((System.Windows.Controls.Button)(target));
             
-            #line 25 "..\..\..\Pages\ProductCard.xaml"
+            #line 27 "..\..\..\Pages\ProductCard.xaml"
             this.BackIm.Click += new System.Windows.RoutedEventHandler(this.BackIm_Click);
             
             #line default
@@ -197,7 +197,7 @@ namespace Sessioa.Pages {
             case 3:
             this.NextIm = ((System.Windows.Controls.Button)(target));
             
-            #line 27 "..\..\..\Pages\ProductCard.xaml"
+            #line 29 "..\..\..\Pages\ProductCard.xaml"
             this.NextIm.Click += new System.Windows.RoutedEventHandler(this.NextIm_Click);
             
             #line default
@@ -233,7 +233,7 @@ namespace Sessioa.Pages {
             case 13:
             this.BT_save = ((System.Windows.Controls.Button)(target));
             
-            #line 44 "..\..\..\Pages\ProductCard.xaml"
+            #line 46 "..\..\..\Pages\ProductCard.xaml"
             this.BT_save.Click += new System.Windows.RoutedEventHandler(this.BT_save_Click);
             
             #line default
@@ -242,7 +242,7 @@ namespace Sessioa.Pages {
             case 14:
             this.BT_Back = ((System.Windows.Controls.Button)(target));
             
-            #line 45 "..\..\..\Pages\ProductCard.xaml"
+            #line 47 "..\..\..\Pages\ProductCard.xaml"
             this.BT_Back.Click += new System.Windows.RoutedEventHandler(this.BT_Back_Click);
             
             #line default

+ 19 - 19
Sessioa/obj/Debug/Pages/ProductCard.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\ProductCard.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "0F2472B95524B253AC59B50DD7E36A6B5591AC35FA60E6B61EE9461EB31E662E"
+#pragma checksum "..\..\..\Pages\ProductCard.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "43C506454601EF8FC4F406672E300742ED7E4B1B1B67AD00F734BD5F8D998B83"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -41,7 +41,7 @@ namespace Sessioa.Pages {
     public partial class ProductCard : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
         
         
-        #line 25 "..\..\..\Pages\ProductCard.xaml"
+        #line 27 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button BackIm;
         
@@ -49,7 +49,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 26 "..\..\..\Pages\ProductCard.xaml"
+        #line 28 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Image ImageProd;
         
@@ -57,7 +57,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 27 "..\..\..\Pages\ProductCard.xaml"
+        #line 29 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button NextIm;
         
@@ -65,7 +65,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 29 "..\..\..\Pages\ProductCard.xaml"
+        #line 31 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Articule;
         
@@ -73,7 +73,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 30 "..\..\..\Pages\ProductCard.xaml"
+        #line 32 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Title;
         
@@ -81,7 +81,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 31 "..\..\..\Pages\ProductCard.xaml"
+        #line 33 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Description;
         
@@ -89,7 +89,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 33 "..\..\..\Pages\ProductCard.xaml"
+        #line 35 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ComboBox CategoryProd;
         
@@ -97,7 +97,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 35 "..\..\..\Pages\ProductCard.xaml"
+        #line 37 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ComboBox ManufacturedProd;
         
@@ -105,7 +105,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 37 "..\..\..\Pages\ProductCard.xaml"
+        #line 39 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.ComboBox ProviderProd;
         
@@ -113,7 +113,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 38 "..\..\..\Pages\ProductCard.xaml"
+        #line 40 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Price;
         
@@ -121,7 +121,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 39 "..\..\..\Pages\ProductCard.xaml"
+        #line 41 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Discount;
         
@@ -129,7 +129,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 40 "..\..\..\Pages\ProductCard.xaml"
+        #line 42 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBox TB_Count;
         
@@ -137,7 +137,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 44 "..\..\..\Pages\ProductCard.xaml"
+        #line 46 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button BT_save;
         
@@ -145,7 +145,7 @@ namespace Sessioa.Pages {
         #line hidden
         
         
-        #line 45 "..\..\..\Pages\ProductCard.xaml"
+        #line 47 "..\..\..\Pages\ProductCard.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button BT_Back;
         
@@ -185,7 +185,7 @@ namespace Sessioa.Pages {
             case 1:
             this.BackIm = ((System.Windows.Controls.Button)(target));
             
-            #line 25 "..\..\..\Pages\ProductCard.xaml"
+            #line 27 "..\..\..\Pages\ProductCard.xaml"
             this.BackIm.Click += new System.Windows.RoutedEventHandler(this.BackIm_Click);
             
             #line default
@@ -197,7 +197,7 @@ namespace Sessioa.Pages {
             case 3:
             this.NextIm = ((System.Windows.Controls.Button)(target));
             
-            #line 27 "..\..\..\Pages\ProductCard.xaml"
+            #line 29 "..\..\..\Pages\ProductCard.xaml"
             this.NextIm.Click += new System.Windows.RoutedEventHandler(this.NextIm_Click);
             
             #line default
@@ -233,7 +233,7 @@ namespace Sessioa.Pages {
             case 13:
             this.BT_save = ((System.Windows.Controls.Button)(target));
             
-            #line 44 "..\..\..\Pages\ProductCard.xaml"
+            #line 46 "..\..\..\Pages\ProductCard.xaml"
             this.BT_save.Click += new System.Windows.RoutedEventHandler(this.BT_save_Click);
             
             #line default
@@ -242,7 +242,7 @@ namespace Sessioa.Pages {
             case 14:
             this.BT_Back = ((System.Windows.Controls.Button)(target));
             
-            #line 45 "..\..\..\Pages\ProductCard.xaml"
+            #line 47 "..\..\..\Pages\ProductCard.xaml"
             this.BT_Back.Click += new System.Windows.RoutedEventHandler(this.BT_Back_Click);
             
             #line default

TEMPAT SAMPAH
Sessioa/obj/Debug/Sessioa.exe


TEMPAT SAMPAH
Sessioa/obj/Debug/Sessioa.g.resources


TEMPAT SAMPAH
Sessioa/obj/Debug/Sessioa.pdb