I have created Sharepoint Approval 2010 workflow in visual studio.
How can I catch if user clicked approve or reject button?
private void createTaskWithContentType1_MethodInvoking(object sender, EventArgs e)
{
createTaskWithContentType1_ContentTypeId1 = "0x01080100C9C9515DE4E24001905074F980F93160003A15057E2AF34B67B32E14B94EB70409";
createTaskWithContentType1_TaskId1 = Guid.NewGuid();
createTaskWithContentType1_TaskProperties1.AssignedTo = workflowProperties.Web.SiteAdministrators[0].LoginName;
createTaskWithContentType1_TaskProperties1.DueDate = DateTime.Now.AddDays(1.0F);
createTaskWithContentType1_TaskProperties1.Title = "Approval Required for xx";
createTaskWithContentType1_TaskProperties1.Description = "Specify the approval result here.";
SPList taskList = workflowProperties.TaskList;
}
private void onTaskChanged1_Invoked(object sender, ExternalDataEventArgs e)
{
//I think here i have to somehow do: If button approve clicked .... else if reject button clicked
}