private void button2_Click(object sender, EventArgs e) { i = pick_num; ShowResult.Clear(); listNumbers.Clear(); copylistNum.Clear(); }
private void button1_Click(object sender, EventArgs e) { this.set_num = Convert.ToInt32(this.Number_Setting.Text); this.pick_num = Convert.ToInt32(this.Number_Picking.Text); if (cheat_flag == 0) { copylistNum.Clear(); } pick_num -= add_count; if (set_num >= pick_num) { ShowResult.Clear(); randum_func(); foreach (int num in listNumbers) { ShowResult.AppendText(Convert.ToString(num) + Environment.NewLine); if (speed == 0) { Thread.Sleep(300); } //pictureBox1.Image = Resources.jslot1; } listNumbers.Clear(); add_count = 0; cheat_flag = 0; } else { ShowResult.Text = ""; ShowResult.AppendText("Error..." + Environment.NewLine + "Setting 값이 Picking 값보다 커야 함"); } }