diff --git a/ValasztasGUI/Form1.Designer.cs b/ValasztasGUI/Form1.Designer.cs index 3cd3045..6cce167 100644 --- a/ValasztasGUI/Form1.Designer.cs +++ b/ValasztasGUI/Form1.Designer.cs @@ -31,25 +31,27 @@ namespace ValasztasGUI { this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fájlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.megnyitásToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.kilépésToolStripMenuItem = 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.partmezo = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.keruletmezo = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.nevmezo = new System.Windows.Forms.TextBox(); + this.label3 = 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.statisztikaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.nyertesekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); @@ -75,8 +77,25 @@ namespace ValasztasGUI this.fájlToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.fájlToolStripMenuItem.Text = "Fájl"; // + // megnyitásToolStripMenuItem + // + this.megnyitásToolStripMenuItem.Name = "megnyitásToolStripMenuItem"; + this.megnyitásToolStripMenuItem.Size = new System.Drawing.Size(129, 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(129, 22); + this.kilépésToolStripMenuItem.Text = "Kilépés"; + this.kilépésToolStripMenuItem.Click += new System.EventHandler(this.kilépésToolStripMenuItem_Click); + // // műveletekToolStripMenuItem // + this.műveletekToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.statisztikaToolStripMenuItem, + this.nyertesekToolStripMenuItem}); this.műveletekToolStripMenuItem.Name = "műveletekToolStripMenuItem"; this.műveletekToolStripMenuItem.Size = new System.Drawing.Size(74, 20); this.műveletekToolStripMenuItem.Text = "Műveletek"; @@ -133,37 +152,21 @@ namespace ValasztasGUI this.groupBox1.TabStop = false; this.groupBox1.Text = "Kiválasztott jelölt adatai:"; // - // label3 + // szavazatmezo // - 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:"; + 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; // - // nevmezo + // label6 // - 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:"; + 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:"; // // partmezo // @@ -181,21 +184,37 @@ namespace ValasztasGUI this.label5.TabIndex = 4; this.label5.Text = "Párt:"; // - // szavazatmezo + // keruletmezo // - 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; + 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; // - // label6 + // label4 // - 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:"; + 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:"; + // + // 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; + // + // 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:"; // // button1 // @@ -205,6 +224,7 @@ namespace ValasztasGUI this.button1.TabIndex = 5; this.button1.Text = "Ebben a kerületben voltak még:"; this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); // // listBox2 // @@ -214,24 +234,23 @@ namespace ValasztasGUI 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"; // + // statisztikaToolStripMenuItem + // + this.statisztikaToolStripMenuItem.Name = "statisztikaToolStripMenuItem"; + this.statisztikaToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.statisztikaToolStripMenuItem.Text = "Statisztika"; + this.statisztikaToolStripMenuItem.Click += new System.EventHandler(this.statisztikaToolStripMenuItem_Click); + // + // nyertesekToolStripMenuItem + // + this.nyertesekToolStripMenuItem.Name = "nyertesekToolStripMenuItem"; + this.nyertesekToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.nyertesekToolStripMenuItem.Text = "Nyertesek"; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -279,6 +298,8 @@ namespace ValasztasGUI private System.Windows.Forms.ToolStripMenuItem megnyitásToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem kilépésToolStripMenuItem; private System.Windows.Forms.OpenFileDialog openFileDialog1; + private System.Windows.Forms.ToolStripMenuItem statisztikaToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem nyertesekToolStripMenuItem; } } diff --git a/ValasztasGUI/Form1.cs b/ValasztasGUI/Form1.cs index b59efee..a3ba302 100644 --- a/ValasztasGUI/Form1.cs +++ b/ValasztasGUI/Form1.cs @@ -13,16 +13,25 @@ namespace ValasztasGUI { public partial class Form1 : Form { + + Dictionary partok; + List jeloltek; public Form1() { InitializeComponent(); + 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"); } private void megnyitásToolStripMenuItem_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog()==DialogResult.OK) { - List jeloltek = Kepviselo.LoadFromTxt(openFileDialog1.FileName); + jeloltek = Kepviselo.LoadFromTxt(openFileDialog1.FileName); listBox1.Items.AddRange(jeloltek.ToArray()); // vagy listBox1.DataSource = jeloltek; listBox1.DisplayMember = "TeljesNev"; @@ -39,12 +48,7 @@ namespace ValasztasGUI 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); @@ -54,5 +58,39 @@ namespace ValasztasGUI szavazatmezo.Text = kk.Szavazat.ToString(); } } + + private void button1_Click(object sender, EventArgs e) + { + if (listBox1.SelectedIndex<0) + { + MessageBox.Show("Nincs kiválasztott képviselő!", "Hiba!",MessageBoxButtons.OK,MessageBoxIcon.Error); + } else + { + Kepviselo kk = (listBox1.SelectedItem as Kepviselo); + //listBox2.DisplayMember = "Teljesnev"; + foreach (var item in jeloltek) + { + if(item.Kerulet == kk.Kerulet && item!=kk) + { + + listBox2.Items.Add($"{item.TeljesNev} ({item.Szavazat} szavazat)"); + } + } + } + } + + private void statisztikaToolStripMenuItem_Click(object sender, EventArgs e) + { + if(jeloltek==null || jeloltek.Count==0) + { + MessageBox.Show("Nincsenek képviselői adatok!", "Hiba!", MessageBoxButtons.OK, MessageBoxIcon.Error); + + } else + { + //a másik form megnyitása + StatisztikaForm f2 = new StatisztikaForm(); + f2.ShowDialog(); + } + } } } diff --git a/ValasztasGUI/Properties/Resources.Designer.cs b/ValasztasGUI/Properties/Resources.Designer.cs index 4008a03..fad9dae 100644 --- a/ValasztasGUI/Properties/Resources.Designer.cs +++ b/ValasztasGUI/Properties/Resources.Designer.cs @@ -8,9 +8,10 @@ // //------------------------------------------------------------------------------ - -namespace ValasztasGUI.Properties -{ +namespace ValasztasGUI.Properties { + using System; + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -18,53 +19,55 @@ namespace ValasztasGUI.Properties // 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - + 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() - { + 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)) - { + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(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 - { + internal static global::System.Globalization.CultureInfo Culture { + get { return resourceCulture; } - set - { + set { resourceCulture = value; } } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap graphstat { + get { + object obj = ResourceManager.GetObject("graphstat", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/ValasztasGUI/Properties/Resources.resx b/ValasztasGUI/Properties/Resources.resx index af7dbeb..db38aa2 100644 --- a/ValasztasGUI/Properties/Resources.resx +++ b/ValasztasGUI/Properties/Resources.resx @@ -46,7 +46,7 @@ mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with - : System.Serialization.Formatters.Binary.BinaryFormatter + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 @@ -60,6 +60,7 @@ : and then encoded with base64 encoding. --> + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -109,9 +112,13 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\graphstat.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/ValasztasGUI/Resources/graphstat.jpg b/ValasztasGUI/Resources/graphstat.jpg new file mode 100644 index 0000000..0c7371a Binary files /dev/null and b/ValasztasGUI/Resources/graphstat.jpg differ diff --git a/ValasztasGUI/StatisztikaForm.Designer.cs b/ValasztasGUI/StatisztikaForm.Designer.cs new file mode 100644 index 0000000..9c95288 --- /dev/null +++ b/ValasztasGUI/StatisztikaForm.Designer.cs @@ -0,0 +1,201 @@ + +namespace ValasztasGUI +{ + partial class StatisztikaForm + { + /// + /// 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.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.label1 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.label6 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.Image = global::ValasztasGUI.Properties.Resources.graphstat; + this.pictureBox1.Location = new System.Drawing.Point(12, 12); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(100, 112); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(127, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(204, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Összes szavazásra jogosult polgár száma:"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(337, 23); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(79, 20); + this.textBox1.TabIndex = 2; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(256, 62); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(160, 24); + this.button1.TabIndex = 3; + this.button1.Text = "Statisztika kitöltése"; + this.button1.UseVisualStyleBackColor = true; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(337, 104); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(79, 20); + this.textBox2.TabIndex = 5; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(164, 107); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(167, 13); + this.label2.TabIndex = 4; + this.label2.Text = "Az induló képviselőjelöltek száma:"; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(167, 157); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(60, 20); + this.textBox3.TabIndex = 7; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(12, 160); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(142, 13); + this.label3.TabIndex = 6; + this.label3.Text = "A választáson szavazott (fő):"; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(317, 157); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(67, 20); + this.textBox4.TabIndex = 9; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(233, 160); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(78, 13); + this.label4.TabIndex = 8; + this.label4.Text = "ez a jogosultak"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(390, 160); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(24, 13); + this.label5.TabIndex = 10; + this.label5.Text = "%-a"; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(175, 406); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 11; + this.button2.Text = "Bezár"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(12, 201); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(222, 13); + this.label6.TabIndex = 12; + this.label6.Text = "Az egyes pártokra leadott szavazatok aránya:"; + // + // StatisztikaForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(439, 450); + this.Controls.Add(this.label6); + this.Controls.Add(this.button2); + this.Controls.Add(this.label5); + this.Controls.Add(this.textBox4); + this.Controls.Add(this.label4); + this.Controls.Add(this.textBox3); + this.Controls.Add(this.label3); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.label2); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label1); + this.Controls.Add(this.pictureBox1); + this.Name = "StatisztikaForm"; + this.Text = "Választási statisztika"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Label label6; + } +} \ No newline at end of file diff --git a/ValasztasGUI/StatisztikaForm.cs b/ValasztasGUI/StatisztikaForm.cs new file mode 100644 index 0000000..d075f86 --- /dev/null +++ b/ValasztasGUI/StatisztikaForm.cs @@ -0,0 +1,25 @@ +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; + +namespace ValasztasGUI +{ + public partial class StatisztikaForm : Form + { + public StatisztikaForm() + { + InitializeComponent(); + } + + private void button2_Click(object sender, EventArgs e) + { + Close(); + } + } +} diff --git a/ValasztasGUI/StatisztikaForm.resx b/ValasztasGUI/StatisztikaForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ValasztasGUI/StatisztikaForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/ValasztasGUI/ValasztasGUI.csproj b/ValasztasGUI/ValasztasGUI.csproj index 347f5df..71fcec2 100644 --- a/ValasztasGUI/ValasztasGUI.csproj +++ b/ValasztasGUI/ValasztasGUI.csproj @@ -54,6 +54,12 @@ + + Form + + + StatisztikaForm.cs + Form1.cs @@ -65,7 +71,11 @@ True Resources.resx + True + + StatisztikaForm.cs + SettingsSingleFileGenerator Settings.Designer.cs @@ -85,5 +95,8 @@ Valasztas2 + + + \ No newline at end of file