public Nastaveni() { InitializeComponent(); button1.BackColor = ColorGen.GetRandomColor(); flowLayoutPanel1.Width = flowLayoutPanel1.Width + SystemInformation.VerticalScrollBarWidth; LoadFromXml(); }
private void Button2_Click(object sender, EventArgs e) { AddPlayer(GameManager.Insatance.AddHrac(textBox1.Text, button1.BackColor)); button1.BackColor = ColorGen.GetRandomColor(); }