private void reset(object sender, EventArgs e) { while (push > 0)//押した回数を元に戻す { push--; } c = new tramp(this); c.Shuffle(push, 0);//シャッフル }
public Form1() { InitializeComponent(); c = new tramp(this);//クラスのインスタンス生成時にForm1クラスのインスタンスを渡す }