private void btnSet_Click(object sender, EventArgs e) { if (txtID.Text != "") { int user_id = int.Parse(txtID.Text); int bank_id = int.Parse(txtTemp.Text); if (SC.Check_Before_Insert(user_id, bank_id) == false) { English_Learning_Application.Entity.Score S = new Entity.Score(user_id, bank_id, 0, 0, temp_user_create); SC.InsertScore(S); //MessageBox.Show("Add New User has Successfuly", "INFORMATION", MessageBoxButtons.OK, MessageBoxIcon.Information); //clearField(); RefreshGridView(); } else { MessageBox.Show("User has been Set to This Question Bank...", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("Please, Choose the Students to Set...!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); dgStudents.Focus(); } }