private void getData() { string[,] data = ApiClass.getCommentByID(GlobalVO.getCommentID()); txtComment.Text = data[0, 0].ToString(); cbCommentStatus.Text = data[0, 1].ToString() == "PENDING" ? "PENDING" : data[0, 1].ToString() == "REJECTED" ? "REJECT" : "POST"; }
private void btnSave_Click(object sender, EventArgs e) { ApiClass.updateCommentStatus(GlobalVO.getCommentID(), cbCommentStatus.Text == "POST" ? "pass" : cbCommentStatus.Text == "REJECT" ? "reject" : "pending"); reOpenCommentListForm(); }