finished HW #1

This commit is contained in:
Digi
2025-02-22 09:59:35 +01:00
parent 3df13eabe6
commit 4644da4212
30 changed files with 537 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E2DB0723ED6272D8E119D3BBDFE60C6C3517BD7F36FE11AB854761F447510ED8"
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BE03C50B2D1C269C2C026526A80E0FB16D230CEAB4F942B328A994C18143126F"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@@ -49,6 +49,14 @@ namespace ValasztasGUI {
#line hidden
#line 32 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem Statisztika;
#line default
#line hidden
#line 33 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem Nyertesek;
@@ -168,6 +176,15 @@ namespace ValasztasGUI {
#line hidden
return;
case 3:
this.Statisztika = ((System.Windows.Controls.MenuItem)(target));
#line 32 "..\..\MainWindow.xaml"
this.Statisztika.Click += new System.Windows.RoutedEventHandler(this.Statisztika_Click);
#line default
#line hidden
return;
case 4:
this.Nyertesek = ((System.Windows.Controls.MenuItem)(target));
#line 33 "..\..\MainWindow.xaml"
@@ -176,7 +193,7 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 4:
case 5:
this.informatoin = ((System.Windows.Controls.MenuItem)(target));
#line 36 "..\..\MainWindow.xaml"
@@ -185,7 +202,7 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 5:
case 6:
this.jeloltekListBox = ((System.Windows.Controls.ListBox)(target));
#line 43 "..\..\MainWindow.xaml"
@@ -194,19 +211,19 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 6:
case 7:
this.nevTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 7:
case 8:
this.valasztokeruletSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
case 9:
this.partTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 9:
case 10:
this.szavazatokSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 10:
case 11:
this.keruletButton = ((System.Windows.Controls.Button)(target));
#line 77 "..\..\MainWindow.xaml"
@@ -215,7 +232,7 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 11:
case 12:
this.keruletListBox = ((System.Windows.Controls.ListBox)(target));
return;
}

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "E2DB0723ED6272D8E119D3BBDFE60C6C3517BD7F36FE11AB854761F447510ED8"
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BE03C50B2D1C269C2C026526A80E0FB16D230CEAB4F942B328A994C18143126F"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@@ -49,6 +49,14 @@ namespace ValasztasGUI {
#line hidden
#line 32 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem Statisztika;
#line default
#line hidden
#line 33 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.MenuItem Nyertesek;
@@ -168,6 +176,15 @@ namespace ValasztasGUI {
#line hidden
return;
case 3:
this.Statisztika = ((System.Windows.Controls.MenuItem)(target));
#line 32 "..\..\MainWindow.xaml"
this.Statisztika.Click += new System.Windows.RoutedEventHandler(this.Statisztika_Click);
#line default
#line hidden
return;
case 4:
this.Nyertesek = ((System.Windows.Controls.MenuItem)(target));
#line 33 "..\..\MainWindow.xaml"
@@ -176,7 +193,7 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 4:
case 5:
this.informatoin = ((System.Windows.Controls.MenuItem)(target));
#line 36 "..\..\MainWindow.xaml"
@@ -185,7 +202,7 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 5:
case 6:
this.jeloltekListBox = ((System.Windows.Controls.ListBox)(target));
#line 43 "..\..\MainWindow.xaml"
@@ -194,19 +211,19 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 6:
case 7:
this.nevTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 7:
case 8:
this.valasztokeruletSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
case 9:
this.partTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 9:
case 10:
this.szavazatokSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 10:
case 11:
this.keruletButton = ((System.Windows.Controls.Button)(target));
#line 77 "..\..\MainWindow.xaml"
@@ -215,7 +232,7 @@ namespace ValasztasGUI {
#line default
#line hidden
return;
case 11:
case 12:
this.keruletListBox = ((System.Windows.Controls.ListBox)(target));
return;
}

View File

@@ -1 +1 @@
d286842429ee422c1ba8868878accae64211c72883547e0235ddf8b9a6a604b1
3c1fdb3d4372221d1f45e2136cdc8d4f713ebcdf4efffcefa9ed052eb8c11210

View File

@@ -28,3 +28,5 @@ C:\Users\szabomarton\Desktop\C#\ProgaOra\20250219\asztali_minta_valasztas\Valasz
C:\Users\szabomarton\Desktop\C#\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\obj\Debug\ValasztasGUI.csproj.CoreCompileInputs.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\obj\Debug\ValasztasGUI.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\obj\Debug\ValasztasGUI.pdb
E:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\obj\Debug\View\Statisztika.g.cs
E:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\obj\Debug\View\Statisztika.baml

View File

@@ -4,17 +4,17 @@
winexe
C#
.cs
C:\Users\szabomarton\Desktop\C#\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\obj\Debug\
E:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\obj\Debug\
ValasztasGUI
none
false
DEBUG;TRACE
C:\Users\szabomarton\Desktop\C#\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\App.xaml
1219584333
E:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\App.xaml
21657169525
51579654133
6-1041556003
13-38814620
MainWindow.xaml;
MainWindow.xaml;View\Statisztika.xaml;
False

View File

@@ -10,11 +10,11 @@ none
false
DEBUG;TRACE
E:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\App.xaml
1219584333
21657169525
6-793535042
7880222118
13-38814620
MainWindow.xaml;
MainWindow.xaml;View\Statisztika.xaml;
True

View File

@@ -1,4 +1,4 @@

FE:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\MainWindow.xaml;;
FE:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\View\Statisztika.xaml;;

View File

@@ -1,4 +1,5 @@

FC:\Users\szabomarton\Desktop\C#\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\MainWindow.xaml;;
FE:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\MainWindow.xaml;;
FE:\Házi\Programozás\C#\Suli\ProgaOra\20250219\asztali_minta_valasztas\ValasztasGUI\View\Statisztika.xaml;;

View File

@@ -0,0 +1,158 @@
#pragma checksum "..\..\..\View\Statisztika.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DD2D641370B258319D05EE66EC41AA2DEE62ABB000782FF75273CC61B57F0B95"
//------------------------------------------------------------------------------
// <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 ValasztasGUI.View;
namespace ValasztasGUI.View {
/// <summary>
/// Statisztika
/// </summary>
public partial class Statisztika : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 29 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox szavazasraJogosultakSzamaTextBox;
#line default
#line hidden
#line 33 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button szavazasraJogosultakSzamaButton;
#line default
#line hidden
#line 40 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox kepviselokSzamaTextBox;
#line default
#line hidden
#line 47 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox szavazottakTextBox;
#line default
#line hidden
#line 51 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox szazalekTextBox;
#line default
#line hidden
#line 59 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListBox szavazatiaranyokListBox;
#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("/ValasztasGUI;component/view/statisztika.xaml", System.UriKind.Relative);
#line 1 "..\..\..\View\Statisztika.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.szavazasraJogosultakSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 2:
this.szavazasraJogosultakSzamaButton = ((System.Windows.Controls.Button)(target));
#line 33 "..\..\..\View\Statisztika.xaml"
this.szavazasraJogosultakSzamaButton.Click += new System.Windows.RoutedEventHandler(this.szavazasraJogosultakSzamaButton_Click);
#line default
#line hidden
return;
case 3:
this.kepviselokSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 4:
this.szavazottakTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 5:
this.szazalekTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 6:
this.szavazatiaranyokListBox = ((System.Windows.Controls.ListBox)(target));
return;
case 7:
#line 63 "..\..\..\View\Statisztika.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -0,0 +1,158 @@
#pragma checksum "..\..\..\View\Statisztika.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DD2D641370B258319D05EE66EC41AA2DEE62ABB000782FF75273CC61B57F0B95"
//------------------------------------------------------------------------------
// <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 ValasztasGUI.View;
namespace ValasztasGUI.View {
/// <summary>
/// Statisztika
/// </summary>
public partial class Statisztika : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 29 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox szavazasraJogosultakSzamaTextBox;
#line default
#line hidden
#line 33 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button szavazasraJogosultakSzamaButton;
#line default
#line hidden
#line 40 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox kepviselokSzamaTextBox;
#line default
#line hidden
#line 47 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox szavazottakTextBox;
#line default
#line hidden
#line 51 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox szazalekTextBox;
#line default
#line hidden
#line 59 "..\..\..\View\Statisztika.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ListBox szavazatiaranyokListBox;
#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("/ValasztasGUI;component/view/statisztika.xaml", System.UriKind.Relative);
#line 1 "..\..\..\View\Statisztika.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.szavazasraJogosultakSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 2:
this.szavazasraJogosultakSzamaButton = ((System.Windows.Controls.Button)(target));
#line 33 "..\..\..\View\Statisztika.xaml"
this.szavazasraJogosultakSzamaButton.Click += new System.Windows.RoutedEventHandler(this.szavazasraJogosultakSzamaButton_Click);
#line default
#line hidden
return;
case 3:
this.kepviselokSzamaTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 4:
this.szavazottakTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 5:
this.szazalekTextBox = ((System.Windows.Controls.TextBox)(target));
return;
case 6:
this.szavazatiaranyokListBox = ((System.Windows.Controls.ListBox)(target));
return;
case 7:
#line 63 "..\..\..\View\Statisztika.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}