ActivityBind activityBindReadProjectName = new ActivityBind();I put that code in Workflow1.Designer.cs class file inside InitializeComponent().
activityBindReadProjectName.Name = "Workflow1";
activityBindReadProjectName.Path = "_projectName";
this.ReadProjectName.SetBinding(Microsoft.Office.Project.Server.Workflow.ReadProjectProperty.PropertyValuesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activityBindReadProjectName)));
Edit: actually you can bind that PropertyValues from designer by pressing database icon next to PropertyValues, this will allow you to select variable you want to bind
No comments:
Post a Comment