|
@@ -0,0 +1,191 @@
|
|
|
+#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "A7730A86301C00D108CE08563B98268D05060A9C"
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+// <auto-generated>
|
|
|
+// Этот код создан программой.
|
|
|
+// Исполняемая версия:4.0.30319.42000
|
|
|
+//
|
|
|
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
|
|
+// повторной генерации кода.
|
|
|
+// </auto-generated>
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+
|
|
|
+using BookStore;
|
|
|
+using System;
|
|
|
+using System.Diagnostics;
|
|
|
+using System.Windows;
|
|
|
+using System.Windows.Automation;
|
|
|
+using System.Windows.Controls;
|
|
|
+using System.Windows.Controls.Primitives;
|
|
|
+using System.Windows.Controls.Ribbon;
|
|
|
+using System.Windows.Data;
|
|
|
+using System.Windows.Documents;
|
|
|
+using System.Windows.Ink;
|
|
|
+using System.Windows.Input;
|
|
|
+using System.Windows.Markup;
|
|
|
+using System.Windows.Media;
|
|
|
+using System.Windows.Media.Animation;
|
|
|
+using System.Windows.Media.Effects;
|
|
|
+using System.Windows.Media.Imaging;
|
|
|
+using System.Windows.Media.Media3D;
|
|
|
+using System.Windows.Media.TextFormatting;
|
|
|
+using System.Windows.Navigation;
|
|
|
+using System.Windows.Shapes;
|
|
|
+using System.Windows.Shell;
|
|
|
+
|
|
|
+
|
|
|
+namespace BookStore {
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// MainWindow
|
|
|
+ /// </summary>
|
|
|
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
|
|
+
|
|
|
+
|
|
|
+ #line 18 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.DataGrid BooksGrid;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+
|
|
|
+ #line 27 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.Button BtnDelete;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+
|
|
|
+ #line 44 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.TextBox TbName;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+
|
|
|
+ #line 45 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.TextBox TbPrice;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+
|
|
|
+ #line 46 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.TextBox TbCategory;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+
|
|
|
+ #line 47 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.TextBox TbAutor;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+
|
|
|
+ #line 48 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.Button BtnInsert;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+
|
|
|
+ #line 49 "..\..\..\MainWindow.xaml"
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|
|
+ internal System.Windows.Controls.Button BtnUpdate;
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+
|
|
|
+ private bool _contentLoaded;
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// InitializeComponent
|
|
|
+ /// </summary>
|
|
|
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "6.0.1.0")]
|
|
|
+ public void InitializeComponent() {
|
|
|
+ if (_contentLoaded) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ _contentLoaded = true;
|
|
|
+ System.Uri resourceLocater = new System.Uri("/BookStore;V1.0.0.0;component/mainwindow.xaml", System.UriKind.Relative);
|
|
|
+
|
|
|
+ #line 1 "..\..\..\MainWindow.xaml"
|
|
|
+ System.Windows.Application.LoadComponent(this, resourceLocater);
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+ }
|
|
|
+
|
|
|
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
|
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "6.0.1.0")]
|
|
|
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
|
|
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
|
|
+ [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.BooksGrid = ((System.Windows.Controls.DataGrid)(target));
|
|
|
+
|
|
|
+ #line 18 "..\..\..\MainWindow.xaml"
|
|
|
+ this.BooksGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.BooksGrid_SelectionChanged);
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+ return;
|
|
|
+ case 2:
|
|
|
+ this.BtnDelete = ((System.Windows.Controls.Button)(target));
|
|
|
+
|
|
|
+ #line 27 "..\..\..\MainWindow.xaml"
|
|
|
+ this.BtnDelete.Click += new System.Windows.RoutedEventHandler(this.BtnDelete_Click);
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+ return;
|
|
|
+ case 3:
|
|
|
+ this.TbName = ((System.Windows.Controls.TextBox)(target));
|
|
|
+ return;
|
|
|
+ case 4:
|
|
|
+ this.TbPrice = ((System.Windows.Controls.TextBox)(target));
|
|
|
+ return;
|
|
|
+ case 5:
|
|
|
+ this.TbCategory = ((System.Windows.Controls.TextBox)(target));
|
|
|
+ return;
|
|
|
+ case 6:
|
|
|
+ this.TbAutor = ((System.Windows.Controls.TextBox)(target));
|
|
|
+ return;
|
|
|
+ case 7:
|
|
|
+ this.BtnInsert = ((System.Windows.Controls.Button)(target));
|
|
|
+
|
|
|
+ #line 48 "..\..\..\MainWindow.xaml"
|
|
|
+ this.BtnInsert.Click += new System.Windows.RoutedEventHandler(this.BtnInsert_Click);
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+ return;
|
|
|
+ case 8:
|
|
|
+ this.BtnUpdate = ((System.Windows.Controls.Button)(target));
|
|
|
+
|
|
|
+ #line 49 "..\..\..\MainWindow.xaml"
|
|
|
+ this.BtnUpdate.Click += new System.Windows.RoutedEventHandler(this.BtnUpdate_Click);
|
|
|
+
|
|
|
+ #line default
|
|
|
+ #line hidden
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._contentLoaded = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|