private void btnCalificarUsuario_Click(object sender, EventArgs e) { const string assignRating = "Rating Participante asignado"; if (textBoxCalificarUsuario.Text != "") { var rating = new TandaModel(); var validRating = rating.UserRating(textBoxCalificarUsuario.Text, true, idUsuario); if (validRating) { MessageBox.Show(assignRating); } } Close(); }
private void btnCalificarOrg_Click(object sender, EventArgs e) { if (tbCalificar.Text != "") { var rating = new TandaModel(); var validRating = rating.UserRating(tbCalificar.Text, false, idOrganizador); if (validRating) { MessageBox.Show(AssignRating); Hide(); } } Close(); Close(); }