private void RefreshGridView() { int count_done = dgTemp.Rows.Count; int count_of_questions = QB.GetCount_of_Question(bank_id); int score_id = 0; double score = double.Parse(txtTempPoin.Text) / count_of_questions; if (count_done == 0) { DialogResult dr = MessageBox.Show("FINISH. Your Score : " + score, "INFORMATION", MessageBoxButtons.OK, MessageBoxIcon.Information); if (dr == DialogResult.OK) { timer1.Stop(); this.Close(); if (temp_score_id != 0) { score_id = int.Parse(SC.Get_User_Id(temp_score_id)); FormQuis FQ = new FormQuis(score_id); FQ.ShowDialog(); FQ.RefreshGridView(); } else { int temp_user_id = Convert.ToInt32(SC.Get_User_Create(bank_id)); FormBank FB = new FormBank(temp_user_id); FB.ShowDialog(); } } } }