private void button_coin_Click(object sender, EventArgs e) { int hold = seedCheck(); if(hold !=0 ) { if(hold ==-1) { theSeed = DateTime.Now.Ticks.GetHashCode(); } else if(hold==1) { theSeed = Int32.Parse(textBox_seed.Text); } aCoin tmp = new aCoin(theSeed); listBox_random.Items.Add("Coin"); storageList.Add(tmp); } }
private void button_coin_Click(object sender, EventArgs e) { int hold = seedCheck(); if (hold != 0) { if (hold == -1) { theSeed = DateTime.Now.Ticks.GetHashCode(); } else if (hold == 1) { theSeed = Int32.Parse(textBox_seed.Text); } aCoin tmp = new aCoin(theSeed); listBox_random.Items.Add("Coin"); storageList.Add(tmp); } }