private void button2_Click(object sender, EventArgs e) { GetData(); SoDoKU sdk = new SoDoKU(m_data); int[][] rdata = sdk.ShowAnswer(); if (rdata != null) { for (int i = 0; i < m_allTextBoxes.Length; ++i) { for (int j = 0; j < m_allTextBoxes[i].Length; ++j) { m_allTextBoxes[i][j].Text = rdata[i][j].ToString(); } } } else { MessageBox.Show("can not find a anwer!"); } }