diff --git a/Cukraszda/Cukraszda.csproj b/Cukraszda/Cukraszda.csproj
index 1937585..7553c8c 100644
--- a/Cukraszda/Cukraszda.csproj
+++ b/Cukraszda/Cukraszda.csproj
@@ -52,8 +52,17 @@
Form1.cs
+
+ Form
+
+
+ Rendelo.cs
+
+
+ Form1.cs
+
ResXFileCodeGenerator
Resources.Designer.cs
@@ -62,7 +71,11 @@
True
Resources.resx
+ True
+
+ Rendelo.cs
+
SettingsSingleFileGenerator
Settings.Designer.cs
@@ -76,5 +89,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/Cukraszda/Form1.Designer.cs b/Cukraszda/Form1.Designer.cs
index 94767e2..de93d30 100644
--- a/Cukraszda/Form1.Designer.cs
+++ b/Cukraszda/Form1.Designer.cs
@@ -29,13 +29,93 @@ namespace Cukraszda
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.menuStrip1 = new System.Windows.Forms.MenuStrip();
+ this.fájlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.sutemenyekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.névjegyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.megnyitásToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.menuStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.Image = global::Cukraszda.Properties.Resources.somloi;
+ this.pictureBox1.Location = new System.Drawing.Point(54, 79);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(333, 265);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // menuStrip1
+ //
+ this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.fájlToolStripMenuItem,
+ this.sutemenyekToolStripMenuItem,
+ this.névjegyToolStripMenuItem});
+ this.menuStrip1.Location = new System.Drawing.Point(0, 0);
+ this.menuStrip1.Name = "menuStrip1";
+ this.menuStrip1.Size = new System.Drawing.Size(455, 24);
+ this.menuStrip1.TabIndex = 1;
+ this.menuStrip1.Text = "menuStrip1";
+ //
+ // fájlToolStripMenuItem
+ //
+ this.fájlToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.megnyitásToolStripMenuItem});
+ this.fájlToolStripMenuItem.Name = "fájlToolStripMenuItem";
+ this.fájlToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
+ this.fájlToolStripMenuItem.Text = "Fájl";
+ //
+ // sutemenyekToolStripMenuItem
+ //
+ this.sutemenyekToolStripMenuItem.Enabled = false;
+ this.sutemenyekToolStripMenuItem.Name = "sutemenyekToolStripMenuItem";
+ this.sutemenyekToolStripMenuItem.Size = new System.Drawing.Size(83, 20);
+ this.sutemenyekToolStripMenuItem.Text = "sutemenyek";
+ this.sutemenyekToolStripMenuItem.Click += new System.EventHandler(this.sutemenyekToolStripMenuItem_Click);
+ //
+ // névjegyToolStripMenuItem
+ //
+ this.névjegyToolStripMenuItem.Name = "névjegyToolStripMenuItem";
+ this.névjegyToolStripMenuItem.Size = new System.Drawing.Size(62, 20);
+ this.névjegyToolStripMenuItem.Text = "Névjegy";
+ //
+ // 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);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
+ this.ClientSize = new System.Drawing.Size(455, 413);
+ this.Controls.Add(this.pictureBox1);
+ this.Controls.Add(this.menuStrip1);
+ this.MainMenuStrip = this.menuStrip1;
+ this.Name = "Form1";
this.Text = "Form1";
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.menuStrip1.ResumeLayout(false);
+ this.menuStrip1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
}
#endregion
+
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.MenuStrip menuStrip1;
+ private System.Windows.Forms.ToolStripMenuItem fájlToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem sutemenyekToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem névjegyToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem megnyitásToolStripMenuItem;
}
}
diff --git a/Cukraszda/Form1.cs b/Cukraszda/Form1.cs
index 54f3717..64afd2e 100644
--- a/Cukraszda/Form1.cs
+++ b/Cukraszda/Form1.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
+using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -12,9 +13,39 @@ namespace Cukraszda
{
public partial class Form1 : Form
{
+ public string[] tomb;
+ public string[,] segedtomb;
public Form1()
{
InitializeComponent();
}
+
+ private void megnyitásToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ OpenFileDialog ofd = new OpenFileDialog();
+ if(ofd.ShowDialog() == DialogResult.OK)
+ {
+ tomb = File.ReadAllLines(ofd.FileName);
+ segedtomb = new string[tomb.Length,2];
+ for (int i = 0; i < tomb.Length; i++)
+ {
+ segedtomb[i,0] = tomb[i].Split(';')[0];
+ segedtomb[i,1] = tomb[i].Split(';')[1];
+ }
+ Console.WriteLine("Sikeres beolvasás");
+ Console.WriteLine(segedtomb.Length);
+ sutemenyekToolStripMenuItem.Enabled = true;
+
+ //sutemenyekToolStripMenuItem_Click(this, null);
+ }
+ }
+
+ private void sutemenyekToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ Rendelo form2 = new Rendelo();
+
+ form2.setSuti(segedtomb);
+ form2.ShowDialog();
+ }
}
}
diff --git a/Cukraszda/Form1.resx b/Cukraszda/Form1.resx
new file mode 100644
index 0000000..d5494e3
--- /dev/null
+++ b/Cukraszda/Form1.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
\ No newline at end of file
diff --git a/Cukraszda/Properties/Resources.Designer.cs b/Cukraszda/Properties/Resources.Designer.cs
index 58b3965..2f7c97b 100644
--- a/Cukraszda/Properties/Resources.Designer.cs
+++ b/Cukraszda/Properties/Resources.Designer.cs
@@ -8,9 +8,10 @@
//
//------------------------------------------------------------------------------
-
-namespace Cukraszda.Properties
-{
+namespace Cukraszda.Properties {
+ using System;
+
+
///
/// A strongly-typed resource class, for looking up localized strings, etc.
///
@@ -18,53 +19,55 @@ namespace Cukraszda.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("Cukraszda.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 somloi {
+ get {
+ object obj = ResourceManager.GetObject("somloi", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
}
}
diff --git a/Cukraszda/Properties/Resources.resx b/Cukraszda/Properties/Resources.resx
index af7dbeb..100af86 100644
--- a/Cukraszda/Properties/Resources.resx
+++ b/Cukraszda/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\somloi.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/Cukraszda/Rendelo.Designer.cs b/Cukraszda/Rendelo.Designer.cs
new file mode 100644
index 0000000..ad66d71
--- /dev/null
+++ b/Cukraszda/Rendelo.Designer.cs
@@ -0,0 +1,91 @@
+
+namespace Cukraszda
+{
+ partial class Rendelo
+ {
+ ///
+ /// 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.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.button1 = new System.Windows.Forms.Button();
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 3;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 52);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(453, 426);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(176, 498);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(75, 23);
+ this.button1.TabIndex = 1;
+ this.button1.Text = "RENDEL";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(204, 22);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(52, 13);
+ this.label1.TabIndex = 2;
+ this.label1.Text = "ÁRLISTA";
+ //
+ // Rendelo
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(478, 562);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Name = "Rendelo";
+ this.Text = "ItallapForm";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Label label1;
+ }
+}
\ No newline at end of file
diff --git a/Cukraszda/Rendelo.cs b/Cukraszda/Rendelo.cs
new file mode 100644
index 0000000..74d77b0
--- /dev/null
+++ b/Cukraszda/Rendelo.cs
@@ -0,0 +1,45 @@
+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 Cukraszda
+{
+ public partial class Rendelo : Form
+ {
+ public Rendelo()
+ {
+ InitializeComponent();
+ }
+
+ public void setSuti(String[,] tomb)
+ {
+ for (int i = 0; i < tomb.Length; i++)
+ {
+ CheckBox cb = new CheckBox();
+ cb.Size = new Size(300,25);
+ cb.Text = tomb[i,0]+" ("+tomb[i,1]+" Ft)";
+ cb.Tag = i;
+ tableLayoutPanel1.Controls.Add(cb, 0, i);
+
+ TextBox tb = new TextBox();
+ tb.Size = new Size(30, 25);
+ tableLayoutPanel1.Controls.Add(tb, 1, i);
+
+ Label label = new Label();
+ label.Text = " adag";
+ tableLayoutPanel1.Controls.Add(label, 2, i);
+ }
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/Cukraszda/Rendelo.resx b/Cukraszda/Rendelo.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Cukraszda/Rendelo.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/Cukraszda/Resources/somloi.jpg b/Cukraszda/Resources/somloi.jpg
new file mode 100644
index 0000000..cf4a779
Binary files /dev/null and b/Cukraszda/Resources/somloi.jpg differ
diff --git a/Cukraszda/sutemenyek.txt b/Cukraszda/sutemenyek.txt
new file mode 100644
index 0000000..7e5e6f3
--- /dev/null
+++ b/Cukraszda/sutemenyek.txt
@@ -0,0 +1,5 @@
+Somlói galuska;300
+Rákózci túrós;280
+Csoki torta;350
+Marcipán alagút;400
+Eszterházy szelet;400
\ No newline at end of file