Get Approval Status
===

I'm creating an approval workfflow in visualstudio 2010 for sharepoint 2010.
The Workflow creates a task at the beginning and then waits for approving the task. But how to check if the task is approved?

**The Workflow:**

![enter image description here][1]

**The Code:**


      private void createTask1_MethodInvoking(object sender, EventArgs e)
            {
    
                string Administrator = workflowProperties.Item["Administrator"].ToString();
                createTask1.TaskId = new Guid();
    
                // Now create the approval task.
                SPListItem currentItem = workflowProperties.Item;
    
                // Set up some of the properties.
                CreateTaskApproval_TaskId = Guid.NewGuid();
                
                CreateTaskApproval_TaskProperties.Title = workflowProperties.Item["Name"].ToString();
                CreateTaskApproval_TaskProperties.Description = "Description";
                CreateTaskApproval_TaskProperties.AssignedTo = @"testAD\test";
                CreateTaskApproval_TaskProperties.SendEmailNotification = false;
                CreateTaskApproval_TaskProperties.TaskType = 1;
                CreateTaskApproval_TaskProperties.DueDate = DateTime.Now.AddDays((DateTime.Now.DayOfWeek.ToString() == "Saturday" ? 2 : (DateTime.Now.DayOfWeek.ToString() == "Friday" ? 3 : 1)));
    
                LogComment("Request Task Created.");
            }

  [1]: http://i.stack.imgur.com/5Qt8s.png
