Преглед изворни кода

Скобочку забыл

gr672_pgv пре 4 година
родитељ
комит
1ed5f0305a

+ 1 - 1
ViolationNOT/AdminPage.xaml.cs

@@ -28,7 +28,7 @@ namespace ViolationNOT
 
         private void BtnShowViolation_Click(object sender, RoutedEventArgs e)
         {
-            ManagerFrame.MainFrame.Navigate(new ViolationPage((sender as Button).DataContext as Violation);
+            ManagerFrame.MainFrame.Navigate(new ViolationPage((sender as Button).DataContext as Violation));
         }
     }
 }

BIN
ViolationNOT/bin/Debug/ViolationNOT.exe


BIN
ViolationNOT/bin/Debug/ViolationNOT.pdb


BIN
ViolationNOT/obj/Debug/AdminPage.baml


+ 36 - 2
ViolationNOT/obj/Debug/AdminPage.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\AdminPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "9F105F0B71E8E770A9A71DDDE87ADBE89B2439C9C1B95530D273AC5E88D93CDC"
+#pragma checksum "..\..\AdminPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "9B39D1673AC7F6F814B48C60C5CD8096B397CE33BB04C87E526A0104884F9926"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.
@@ -38,7 +38,15 @@ namespace ViolationNOT {
     /// <summary>
     /// AdminPage
     /// </summary>
-    public partial class AdminPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+    public partial class AdminPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
+        
+        
+        #line 12 "..\..\AdminPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid RequestList;
+        
+        #line default
+        #line hidden
         
         private bool _contentLoaded;
         
@@ -68,8 +76,34 @@ namespace ViolationNOT {
         [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.RequestList = ((System.Windows.Controls.DataGrid)(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 28 "..\..\AdminPage.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnShowViolation_Click);
+            
+            #line default
+            #line hidden
+            break;
+            }
+        }
     }
 }
 

+ 1 - 1
ViolationNOT/obj/Debug/AdminPage.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\AdminPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "34B154E3E1B4BFF7D7091F7104602212B143CD4AE94561B5EFB647294E64DF5D"
+#pragma checksum "..\..\AdminPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "9B39D1673AC7F6F814B48C60C5CD8096B397CE33BB04C87E526A0104884F9926"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.

BIN
ViolationNOT/obj/Debug/UserPage.baml


+ 1 - 1
ViolationNOT/obj/Debug/UserPage.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\UserPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A45486A0636802DD7501D351DF242EF875AE2BB2415E1C9ACBCECBA37231B6C8"
+#pragma checksum "..\..\UserPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E0549A7BBDF3DB537B6F16C5A460A1A4DF8C042301C496574A1C1CA4B42BBE84"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.

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

@@ -1 +1 @@
-4489ef9af17f770bd38eb629d4ee07049e092456
+4fc14117e7fc1f5688155b1ba35aaf0937b11ac1

+ 2 - 0
ViolationNOT/obj/Debug/ViolationNOT.csproj.FileListAbsolute.txt

@@ -30,3 +30,5 @@ C:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\obj\Debug\Registration
 C:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\obj\Debug\UserPage.baml
 C:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\obj\Debug\NewViolationPage.g.cs
 C:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\obj\Debug\NewViolationPage.baml
+C:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\obj\Debug\ViolationPage.g.cs
+C:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\obj\Debug\ViolationPage.baml

BIN
ViolationNOT/obj/Debug/ViolationNOT.csprojAssemblyReference.cache


BIN
ViolationNOT/obj/Debug/ViolationNOT.exe


BIN
ViolationNOT/obj/Debug/ViolationNOT.g.resources


BIN
ViolationNOT/obj/Debug/ViolationNOT.pdb


+ 3 - 3
ViolationNOT/obj/Debug/ViolationNOT_MarkupCompile.cache

@@ -10,11 +10,11 @@ none
 false
 DEBUG;TRACE
 C:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\App.xaml
-6-307844502
+7-1968427451
 2-795375389
-221308927581
+231571075202
 181538935744
-AdminPage.xaml;AuthPage.xaml;MainWindow.xaml;NewViolationPage.xaml;RegistrationPage.xaml;UserPage.xaml;
+AdminPage.xaml;AuthPage.xaml;MainWindow.xaml;NewViolationPage.xaml;RegistrationPage.xaml;UserPage.xaml;ViolationPage.xaml;
 
 False
 

+ 1 - 0
ViolationNOT/obj/Debug/ViolationNOT_MarkupCompile.lref

@@ -6,4 +6,5 @@ FC:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\MainWindow.xaml;;
 FC:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\NewViolationPage.xaml;;
 FC:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\RegistrationPage.xaml;;
 FC:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\UserPage.xaml;;
+FC:\Users\gr672_pgv\source\repos\ViolationNOT\ViolationNOT\ViolationPage.xaml;;
 

BIN
ViolationNOT/obj/Debug/ViolationPage.baml


+ 134 - 0
ViolationNOT/obj/Debug/ViolationPage.g.cs

@@ -0,0 +1,134 @@
+#pragma checksum "..\..\ViolationPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "61B768829967233827384A430FDDEC092E340A3C987A2C4D9F902F11CE49E31D"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+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;
+using ViolationNOT;
+
+
+namespace ViolationNOT {
+    
+    
+    /// <summary>
+    /// ViolationPage
+    /// </summary>
+    public partial class ViolationPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 41 "..\..\ViolationPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock TxtCarNumber;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 43 "..\..\ViolationPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image Photo;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 45 "..\..\ViolationPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button Yes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 46 "..\..\ViolationPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button No;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/ViolationNOT;component/violationpage.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\ViolationPage.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [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.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.TxtCarNumber = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 2:
+            this.Photo = ((System.Windows.Controls.Image)(target));
+            return;
+            case 3:
+            this.Yes = ((System.Windows.Controls.Button)(target));
+            
+            #line 45 "..\..\ViolationPage.xaml"
+            this.Yes.Click += new System.Windows.RoutedEventHandler(this.Yes_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            this.No = ((System.Windows.Controls.Button)(target));
+            
+            #line 46 "..\..\ViolationPage.xaml"
+            this.No.Click += new System.Windows.RoutedEventHandler(this.No_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 64 - 64
ViolationNOT/obj/Debug/ViolationPage.g.i.cs

@@ -1,5 +1,4 @@
-// Updated by XamlIntelliSenseFileGenerator 3/31/2021 12:36:05 PM
-#pragma checksum "..\..\ViolationPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "B1443489D4FBE181BB0D0382B25D639474092A42BA68436C4FEB255C2967AA95"
+#pragma checksum "..\..\ViolationPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "61B768829967233827384A430FDDEC092E340A3C987A2C4D9F902F11CE49E31D"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.
@@ -33,99 +32,100 @@ using System.Windows.Shell;
 using ViolationNOT;
 
 
-namespace ViolationNOT
-{
-
-
+namespace ViolationNOT {
+    
+    
     /// <summary>
     /// ViolationPage
     /// </summary>
-    public partial class ViolationPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector
-    {
-
-#line default
-#line hidden
-
-
-#line 41 "..\..\ViolationPage.xaml"
+    public partial class ViolationPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 41 "..\..\ViolationPage.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.TextBlock TxtCarNumber;
-
-#line default
-#line hidden
-
-
-#line 43 "..\..\ViolationPage.xaml"
+        
+        #line default
+        #line hidden
+        
+        
+        #line 43 "..\..\ViolationPage.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Image Photo;
-
-#line default
-#line hidden
-
-
-#line 45 "..\..\ViolationPage.xaml"
+        
+        #line default
+        #line hidden
+        
+        
+        #line 45 "..\..\ViolationPage.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button Yes;
-
-#line default
-#line hidden
-
-
-#line 46 "..\..\ViolationPage.xaml"
+        
+        #line default
+        #line hidden
+        
+        
+        #line 46 "..\..\ViolationPage.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Button No;
-
-#line default
-#line hidden
-
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
-
+        
         /// <summary>
         /// InitializeComponent
         /// </summary>
         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
-        public void InitializeComponent()
-        {
-            if (_contentLoaded)
-            {
+        public void InitializeComponent() {
+            if (_contentLoaded) {
                 return;
             }
             _contentLoaded = true;
             System.Uri resourceLocater = new System.Uri("/ViolationNOT;component/violationpage.xaml", System.UriKind.Relative);
-
-#line 1 "..\..\ViolationPage.xaml"
+            
+            #line 1 "..\..\ViolationPage.xaml"
             System.Windows.Application.LoadComponent(this, resourceLocater);
-
-#line default
-#line hidden
+            
+            #line default
+            #line hidden
         }
-
+        
         [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.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
-        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
-        {
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
             switch (connectionId)
             {
-                case 1:
-                    this.TxtCaType = ((System.Windows.Controls.TextBlock)(target));
-                    return;
-                case 2:
-                    this.TxtCarNumber = ((System.Windows.Controls.TextBlock)(target));
-                    return;
-                case 3:
-                    this.Photo = ((System.Windows.Controls.Image)(target));
-                    return;
-                case 4:
-                    this.Yes = ((System.Windows.Controls.Button)(target));
-                    return;
-                case 5:
-                    this.No = ((System.Windows.Controls.Button)(target));
-                    return;
+            case 1:
+            this.TxtCarNumber = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 2:
+            this.Photo = ((System.Windows.Controls.Image)(target));
+            return;
+            case 3:
+            this.Yes = ((System.Windows.Controls.Button)(target));
+            
+            #line 45 "..\..\ViolationPage.xaml"
+            this.Yes.Click += new System.Windows.RoutedEventHandler(this.Yes_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            this.No = ((System.Windows.Controls.Button)(target));
+            
+            #line 46 "..\..\ViolationPage.xaml"
+            this.No.Click += new System.Windows.RoutedEventHandler(this.No_Click);
+            
+            #line default
+            #line hidden
+            return;
             }
             this._contentLoaded = true;
         }