From eea5ef0e930b55bc0f8e647bc0626c5188ab501a Mon Sep 17 00:00:00 2001 From: pp Date: Tue, 4 Apr 2023 19:09:00 +0200 Subject: [PATCH] =?UTF-8?q?Grafikus=20feladat=204=20k=C3=A9szen=20van?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Valasztas.sln | 14 +- Valasztas/Valasztas.csproj | 4 +- Valasztas2/App.config | 6 + Valasztas2/Kepviselo.cs | 51 ++++ Valasztas2/Program.cs | 16 + Valasztas2/Properties/AssemblyInfo.cs | 36 +++ Valasztas2/Valasztas2.csproj | 54 ++++ ValasztasGUI/App.config | 6 + ValasztasGUI/Form1.Designer.cs | 284 ++++++++++++++++++ ValasztasGUI/Form1.cs | 58 ++++ ValasztasGUI/Form1.resx | 126 ++++++++ ValasztasGUI/Program.cs | 22 ++ ValasztasGUI/Properties/AssemblyInfo.cs | 36 +++ ValasztasGUI/Properties/Resources.Designer.cs | 70 +++++ ValasztasGUI/Properties/Resources.resx | 117 ++++++++ ValasztasGUI/Properties/Settings.Designer.cs | 29 ++ ValasztasGUI/Properties/Settings.settings | 7 + ValasztasGUI/ValasztasGUI.csproj | 89 ++++++ 18 files changed, 1022 insertions(+), 3 deletions(-) create mode 100644 Valasztas2/App.config create mode 100644 Valasztas2/Kepviselo.cs create mode 100644 Valasztas2/Program.cs create mode 100644 Valasztas2/Properties/AssemblyInfo.cs create mode 100644 Valasztas2/Valasztas2.csproj create mode 100644 ValasztasGUI/App.config create mode 100644 ValasztasGUI/Form1.Designer.cs create mode 100644 ValasztasGUI/Form1.cs create mode 100644 ValasztasGUI/Form1.resx create mode 100644 ValasztasGUI/Program.cs create mode 100644 ValasztasGUI/Properties/AssemblyInfo.cs create mode 100644 ValasztasGUI/Properties/Resources.Designer.cs create mode 100644 ValasztasGUI/Properties/Resources.resx create mode 100644 ValasztasGUI/Properties/Settings.Designer.cs create mode 100644 ValasztasGUI/Properties/Settings.settings create mode 100644 ValasztasGUI/ValasztasGUI.csproj diff --git a/Valasztas.sln b/Valasztas.sln index bff7e6f..a6bd433 100644 --- a/Valasztas.sln +++ b/Valasztas.sln @@ -3,7 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.32802.440 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Valasztas", "Valasztas\Valasztas.csproj", "{432D1073-097F-4645-B52C-8099BEF57590}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Valasztas", "Valasztas\Valasztas.csproj", "{432D1073-097F-4645-B52C-8099BEF57590}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ValasztasGUI", "ValasztasGUI\ValasztasGUI.csproj", "{2B28B20C-9929-4900-97B9-E9B4A16EB029}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Valasztas2", "Valasztas2\Valasztas2.csproj", "{E301D621-3460-4B76-A9EF-94DC74E55464}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +19,14 @@ Global {432D1073-097F-4645-B52C-8099BEF57590}.Debug|Any CPU.Build.0 = Debug|Any CPU {432D1073-097F-4645-B52C-8099BEF57590}.Release|Any CPU.ActiveCfg = Release|Any CPU {432D1073-097F-4645-B52C-8099BEF57590}.Release|Any CPU.Build.0 = Release|Any CPU + {2B28B20C-9929-4900-97B9-E9B4A16EB029}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2B28B20C-9929-4900-97B9-E9B4A16EB029}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2B28B20C-9929-4900-97B9-E9B4A16EB029}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2B28B20C-9929-4900-97B9-E9B4A16EB029}.Release|Any CPU.Build.0 = Release|Any CPU + {E301D621-3460-4B76-A9EF-94DC74E55464}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E301D621-3460-4B76-A9EF-94DC74E55464}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E301D621-3460-4B76-A9EF-94DC74E55464}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E301D621-3460-4B76-A9EF-94DC74E55464}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Valasztas/Valasztas.csproj b/Valasztas/Valasztas.csproj index a8cf9ec..367cc81 100644 --- a/Valasztas/Valasztas.csproj +++ b/Valasztas/Valasztas.csproj @@ -1,8 +1,8 @@ - + Exe - netcoreapp3.1 + net5.0 diff --git a/Valasztas2/App.config b/Valasztas2/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Valasztas2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Valasztas2/Kepviselo.cs b/Valasztas2/Kepviselo.cs new file mode 100644 index 0000000..c754bb9 --- /dev/null +++ b/Valasztas2/Kepviselo.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; + +namespace Valasztas2 +{ + public class Kepviselo + { + public static List LoadFromTxt(string filename) + { + List lista = new List(); + string[] sorok = File.ReadAllLines(filename); + foreach (var sor in sorok) + { + lista.Add(new Kepviselo(sor)); + } + return lista; + } + + private string _part; + public int Kerulet { get; set; } + public int Szavazat { get; set; } + public string VezetekNev { get; set; } + public string KeresztNev { get; set; } + public string Part { + get { + return _part; + } + set { + if (value == "-") _part = "független"; else _part = value; + } + } + + public string TeljesNev { + get { + return VezetekNev + " " + KeresztNev; + } + } + + public Kepviselo(string adat) + { + string[] adatok = adat.Split(' '); + Kerulet = int.Parse(adatok[0]); + Szavazat = int.Parse(adatok[1]); + VezetekNev = adatok[2]; + KeresztNev = adatok[3]; + Part = adatok[4]; + } + } +} diff --git a/Valasztas2/Program.cs b/Valasztas2/Program.cs new file mode 100644 index 0000000..be12399 --- /dev/null +++ b/Valasztas2/Program.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Valasztas2 +{ + class Program + { + static void Main(string[] args) + { + List jeloltek = Kepviselo.LoadFromTxt("szavazatok.txt"); + } + } +} diff --git a/Valasztas2/Properties/AssemblyInfo.cs b/Valasztas2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..208dc22 --- /dev/null +++ b/Valasztas2/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Valasztas2")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Valasztas2")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e301d621-3460-4b76-a9ef-94dc74e55464")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Valasztas2/Valasztas2.csproj b/Valasztas2/Valasztas2.csproj new file mode 100644 index 0000000..f024d27 --- /dev/null +++ b/Valasztas2/Valasztas2.csproj @@ -0,0 +1,54 @@ + + + + + Debug + AnyCPU + {E301D621-3460-4B76-A9EF-94DC74E55464} + Exe + Valasztas2 + Valasztas2 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ValasztasGUI/App.config b/ValasztasGUI/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/ValasztasGUI/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ValasztasGUI/Form1.Designer.cs b/ValasztasGUI/Form1.Designer.cs new file mode 100644 index 0000000..3cd3045 --- /dev/null +++ b/ValasztasGUI/Form1.Designer.cs @@ -0,0 +1,284 @@ + +namespace ValasztasGUI +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.fájlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.műveletekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.súgóToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.listBox1 = new System.Windows.Forms.ListBox(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label3 = new System.Windows.Forms.Label(); + this.nevmezo = new System.Windows.Forms.TextBox(); + this.keruletmezo = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.partmezo = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.szavazatmezo = new System.Windows.Forms.TextBox(); + this.label6 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.listBox2 = new System.Windows.Forms.ListBox(); + this.megnyitásToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.kilépésToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.menuStrip1.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fájlToolStripMenuItem, + this.műveletekToolStripMenuItem, + this.súgóToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(424, 24); + this.menuStrip1.TabIndex = 0; + this.menuStrip1.Text = "menuStrip1"; + // + // fájlToolStripMenuItem + // + this.fájlToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.megnyitásToolStripMenuItem, + this.kilépésToolStripMenuItem}); + this.fájlToolStripMenuItem.Name = "fájlToolStripMenuItem"; + this.fájlToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fájlToolStripMenuItem.Text = "Fájl"; + // + // műveletekToolStripMenuItem + // + this.műveletekToolStripMenuItem.Name = "műveletekToolStripMenuItem"; + this.műveletekToolStripMenuItem.Size = new System.Drawing.Size(74, 20); + this.műveletekToolStripMenuItem.Text = "Műveletek"; + // + // súgóToolStripMenuItem + // + this.súgóToolStripMenuItem.Name = "súgóToolStripMenuItem"; + this.súgóToolStripMenuItem.Size = new System.Drawing.Size(46, 20); + this.súgóToolStripMenuItem.Text = "Súgó"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label1.ForeColor = System.Drawing.Color.Blue; + this.label1.Location = new System.Drawing.Point(100, 40); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(224, 24); + this.label1.TabIndex = 1; + this.label1.Text = "Választási eredmények"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 84); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 13); + this.label2.TabIndex = 2; + this.label2.Text = "Jelöltek listája:"; + // + // listBox1 + // + this.listBox1.FormattingEnabled = true; + this.listBox1.Location = new System.Drawing.Point(12, 100); + this.listBox1.Name = "listBox1"; + this.listBox1.Size = new System.Drawing.Size(149, 342); + this.listBox1.TabIndex = 3; + this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.szavazatmezo); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.partmezo); + this.groupBox1.Controls.Add(this.label5); + this.groupBox1.Controls.Add(this.keruletmezo); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.nevmezo); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Location = new System.Drawing.Point(177, 84); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(235, 153); + this.groupBox1.TabIndex = 4; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Kiválasztott jelölt adatai:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 30); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(30, 13); + this.label3.TabIndex = 0; + this.label3.Text = "Név:"; + // + // nevmezo + // + this.nevmezo.Location = new System.Drawing.Point(51, 27); + this.nevmezo.Name = "nevmezo"; + this.nevmezo.Size = new System.Drawing.Size(178, 20); + this.nevmezo.TabIndex = 1; + // + // keruletmezo + // + this.keruletmezo.Location = new System.Drawing.Point(164, 60); + this.keruletmezo.Name = "keruletmezo"; + this.keruletmezo.Size = new System.Drawing.Size(65, 20); + this.keruletmezo.TabIndex = 3; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(115, 13); + this.label4.TabIndex = 2; + this.label4.Text = "Választókerület száma:"; + // + // partmezo + // + this.partmezo.Location = new System.Drawing.Point(51, 92); + this.partmezo.Name = "partmezo"; + this.partmezo.Size = new System.Drawing.Size(178, 20); + this.partmezo.TabIndex = 5; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(15, 92); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(29, 13); + this.label5.TabIndex = 4; + this.label5.Text = "Párt:"; + // + // szavazatmezo + // + this.szavazatmezo.Location = new System.Drawing.Point(164, 122); + this.szavazatmezo.Name = "szavazatmezo"; + this.szavazatmezo.Size = new System.Drawing.Size(65, 20); + this.szavazatmezo.TabIndex = 7; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(15, 125); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(99, 13); + this.label6.TabIndex = 6; + this.label6.Text = "Szavazatok száma:"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(193, 254); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(213, 25); + this.button1.TabIndex = 5; + this.button1.Text = "Ebben a kerületben voltak még:"; + this.button1.UseVisualStyleBackColor = true; + // + // listBox2 + // + this.listBox2.FormattingEnabled = true; + this.listBox2.Location = new System.Drawing.Point(177, 308); + this.listBox2.Name = "listBox2"; + this.listBox2.Size = new System.Drawing.Size(235, 134); + this.listBox2.TabIndex = 6; + // + // megnyitásToolStripMenuItem + // + this.megnyitásToolStripMenuItem.Name = "megnyitásToolStripMenuItem"; + this.megnyitásToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.megnyitásToolStripMenuItem.Text = "Megnyitás"; + this.megnyitásToolStripMenuItem.Click += new System.EventHandler(this.megnyitásToolStripMenuItem_Click); + // + // kilépésToolStripMenuItem + // + this.kilépésToolStripMenuItem.Name = "kilépésToolStripMenuItem"; + this.kilépésToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.kilépésToolStripMenuItem.Text = "Kilépés"; + this.kilépésToolStripMenuItem.Click += new System.EventHandler(this.kilépésToolStripMenuItem_Click); + // + // openFileDialog1 + // + this.openFileDialog1.FileName = "openFileDialog1"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(424, 450); + this.Controls.Add(this.listBox2); + this.Controls.Add(this.button1); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.listBox1); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.menuStrip1); + this.MainMenuStrip = this.menuStrip1; + this.Name = "Form1"; + this.Text = "Helyhatósági választások"; + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem fájlToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem műveletekToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem súgóToolStripMenuItem; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.ListBox listBox1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.TextBox szavazatmezo; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.TextBox partmezo; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox keruletmezo; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TextBox nevmezo; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.ListBox listBox2; + private System.Windows.Forms.ToolStripMenuItem megnyitásToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem kilépésToolStripMenuItem; + private System.Windows.Forms.OpenFileDialog openFileDialog1; + } +} + diff --git a/ValasztasGUI/Form1.cs b/ValasztasGUI/Form1.cs new file mode 100644 index 0000000..b59efee --- /dev/null +++ b/ValasztasGUI/Form1.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Valasztas2; + +namespace ValasztasGUI +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void megnyitásToolStripMenuItem_Click(object sender, EventArgs e) + { + if (openFileDialog1.ShowDialog()==DialogResult.OK) + { + List jeloltek = Kepviselo.LoadFromTxt(openFileDialog1.FileName); + listBox1.Items.AddRange(jeloltek.ToArray()); + // vagy listBox1.DataSource = jeloltek; + listBox1.DisplayMember = "TeljesNev"; + + + } + } + + private void kilépésToolStripMenuItem_Click(object sender, EventArgs e) + { + //this.Close(); + Application.Exit(); + } + + private void listBox1_SelectedIndexChanged(object sender, EventArgs e) + { + Dictionary partok = new Dictionary(); + partok.Add("ZEP", "Zöldségevők pártja"); + partok.Add("HEP", "Húsevők pártja"); + partok.Add("GYEP", "Gyümölcsevők pártja"); + partok.Add("TISZ", "Tejivók szövetsége"); + partok.Add("független", "független"); + if(listBox1.SelectedIndex>=0) + { + Kepviselo kk = (listBox1.SelectedItem as Kepviselo); + nevmezo.Text = kk.TeljesNev; + keruletmezo.Text = kk.Kerulet.ToString(); + partmezo.Text = partok[kk.Part]; + szavazatmezo.Text = kk.Szavazat.ToString(); + } + } + } +} diff --git a/ValasztasGUI/Form1.resx b/ValasztasGUI/Form1.resx new file mode 100644 index 0000000..c6467cf --- /dev/null +++ b/ValasztasGUI/Form1.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 132, 17 + + \ No newline at end of file diff --git a/ValasztasGUI/Program.cs b/ValasztasGUI/Program.cs new file mode 100644 index 0000000..bd0375d --- /dev/null +++ b/ValasztasGUI/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ValasztasGUI +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/ValasztasGUI/Properties/AssemblyInfo.cs b/ValasztasGUI/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1aaa1ac --- /dev/null +++ b/ValasztasGUI/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ValasztasGUI")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ValasztasGUI")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("2b28b20c-9929-4900-97b9-e9b4a16eb029")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ValasztasGUI/Properties/Resources.Designer.cs b/ValasztasGUI/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4008a03 --- /dev/null +++ b/ValasztasGUI/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + + +namespace ValasztasGUI.Properties +{ + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + 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() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ValasztasGUI.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/ValasztasGUI/Properties/Resources.resx b/ValasztasGUI/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/ValasztasGUI/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ValasztasGUI/Properties/Settings.Designer.cs b/ValasztasGUI/Properties/Settings.Designer.cs new file mode 100644 index 0000000..be8d318 --- /dev/null +++ b/ValasztasGUI/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + + +namespace ValasztasGUI.Properties +{ + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/ValasztasGUI/Properties/Settings.settings b/ValasztasGUI/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/ValasztasGUI/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ValasztasGUI/ValasztasGUI.csproj b/ValasztasGUI/ValasztasGUI.csproj new file mode 100644 index 0000000..347f5df --- /dev/null +++ b/ValasztasGUI/ValasztasGUI.csproj @@ -0,0 +1,89 @@ + + + + + Debug + AnyCPU + {2B28B20C-9929-4900-97B9-E9B4A16EB029} + WinExe + ValasztasGUI + ValasztasGUI + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {e301d621-3460-4b76-a9ef-94dc74e55464} + Valasztas2 + + + + \ No newline at end of file