namespace TechnopatDemo
{
public partial class Main : Form
{
public List<Label> Labels { get; set; }
public Main()
{
InitializeComponent();
Labels = new List<Label>() { };
}
private void Main_Load(object sender, EventArgs e)
{
}
private void addButton_Click(object sender, EventArgs e)
{
Label label = new Label();
//label özelliklerini ayarlayın.
Labels.Add(label);
this.Controls.Add(label);
}
private void EditLabel(int labelNum)
{
//Şimdi List'ten ref alalım.
var label = Labels[labelNum];
//Label özellikleri tekrar ayarlanabilir
}
}
}