public void Create(string text_) { label1.Text = text_; flowLayoutPanel1.Controls.Clear(); Array.ForEach(LiveMarkets.Markets, country => { var btn = new SI.Controls.Button {Text = country.ToString(), Tag = country}; btn.Size = new Size(btn.Width/2, btn.Height); flowLayoutPanel1.Controls.Add(btn); btn.Click += handleClick; }); }
public void Create() { flowLayoutPanel1.Controls.Clear(); Array.ForEach(LiveMarkets.Markets, country => { var btn = new SI.Controls.Button {Text = country.ToString(), Tag = country}; btn.Size = new Size(btn.Width/2, btn.Height); btn.Margin = new System.Windows.Forms.Padding(0); flowLayoutPanel1.Controls.Add(btn); btn.Click += handleClick; }); }