SHARE
TWEET

historia

a guest Jun 25th, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         private void buttonStory_Click(object sender, EventArgs e)
  2.         {
  3.             FormStatystyki Stat = new FormStatystyki();
  4.  
  5.                 ListView listView1 = new ListView();
  6.                 listView1.Bounds = new Rectangle(new Point(12, 12), new Size(255, 215));
  7.                 listView1.View = View.Details;
  8.                 listView1.GridLines = true;
  9.                 listView1.Scrollable = true;
  10.                 listView1.Columns.Add("Wyg. Liczba", -2, HorizontalAlignment.Left);
  11.                 listView1.Columns.Add("Wprow. Liczba", -2, HorizontalAlignment.Left);
  12.                 listView1.Columns.Add("Sek. Gry", -2, HorizontalAlignment.Left);
  13.  
  14.                 ///dodanie itemów
  15.                 foreach(Proba proba in Proby)
  16.                 {
  17.                 ListViewItem newItem = new ListViewItem(proba.WygenerowanaLiczba);
  18.                 newItem.SubItems.Add(proba.WprowadzonaLiczba);
  19.                 newItem.SubItems.Add(Convert.ToString(proba.SekundaGry));
  20.                 listView1.Items.Add(newItem);
  21.                 }
  22.  
  23.                 Stat.Controls.Add(listView1);
  24.  
  25.                 Stat.Show();
  26.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top