Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- }
- public void Form1_Load(object sender, EventArgs e)
- {
- var blah = 1;
- List<int> aList = new List<int>();
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- aList.Add(0);
- for (int i = 0; i < 10; i++)
- {
- aList[i] = (blah * 5);
- Console.WriteLine("Array List = " + aList[i] + " : Loop number = " + i + " : var number = " + blah);
- blah += 1;
- }
- }
- Form1 form1 = new Form1();
- Form2 form2 = new Form2();
- private void button1_Click_1(object sender, EventArgs e)
- {
- form2.Show();
- form1.Hide();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement