예제 #1
0
 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";
 }
예제 #2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     ApiClass.updateCommentStatus(GlobalVO.getCommentID(), cbCommentStatus.Text == "POST" ? "pass" : cbCommentStatus.Text == "REJECT" ? "reject" : "pending");
     reOpenCommentListForm();
 }