Exemplo n.º 1
0
 private void segColorsText_TextChanged(object sender, EventArgs e)
 {
     segColorsList.Controls.Add(new Label
     {
         BackColor = segCurrentColorLabel.BackColor, Text = $@"{segXText.Text}, {segYText.Text}",
         ForeColor = GetTextColor()
     });
     _segmentation.AddLocation();
     segXText.Text       = 0.ToString();
     segYText.Text       = 0.ToString();
     segColorsLabel.Text = $"Liczba kolorów: {_segmentation.CurrentColor + 1}";
 }