cukraszda/Cukraszda/Rendelo.cs

46 lines
1.1 KiB
C#
Raw Normal View History

2022-04-01 10:00:18 +00:00
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)
{
}
}
}