string GetRulesFilePath(string rulesFilePath) { // if the path is relative, fix it if (!Path.IsPathRooted(rulesFilePath)) { // get the path of the current designer WorkflowFileItem workflowFileItem = Context.Items.GetValue <WorkflowFileItem>(); return(Path.Combine(Path.GetDirectoryName(workflowFileItem.LoadedFile), rulesFilePath)); } else { return(rulesFilePath); } }
} //end //清除Tracking信息 public void clearTrackInfo() { if (trackingDataList == null) { trackingDataList = new BindingList <designerDebugTrackingData>(); } else { trackingDataList.Clear(); } WorkflowFileItem fileItem = designer.Context.Items.GetValue(typeof(WorkflowFileItem)) as WorkflowFileItem; designer.DebugManagerView.CurrentLocation = new SourceLocation(fileItem.LoadedFile, 1, 1, 1, 10); }
public static string getXamlFilePath(WorkflowDesigner designer) { WorkflowFileItem fileItem = designer.Context.Items.GetValue(typeof(WorkflowFileItem)) as WorkflowFileItem; return(fileItem.LoadedFile); }