资源简介
工作流设计器,可自定义流程节点类型,对于动态工作流设计很有用。
代码片段和文件信息
//---------------------------------------------------------------------
// This file is part of the WindowsWorkflow.NET web site samples.
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line documentation. See these other
// materials for detailed information regarding Microsoft code samples.
//
// THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
// KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//---------------------------------------------------------------------
namespace WorkflowDesignerControl
{
#region Using StateMents
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.Design;
using System.ComponentModel;
using System.Globalization;
using System.Collections;
using System.Workflow.ComponentModel.Compiler;
using System.CodeDom;
using System.Reflection;
using System.Workflow.ComponentModel.Design;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Serialization;
#endregion
#region Class EventBindingService
internal class EventBindingService : IEventBindingService
{
private WorkflowLoader loader;
private IServiceProvider serviceProvider;
public EventBindingService(IServiceProvider provider WorkflowLoader loader)
{
this.loader = loader;
this.serviceProvider = provider;
}
public string CreateUniqueMethodName(IComponent component EventDescriptor e)
{
return e.DisplayName;
}
public ICollection GetCompatibleMethods(EventDescriptor e)
{
return new ArrayList();
}
public EventDescriptor GetEvent(PropertyDescriptor property)
{
return (property is EventPropertyDescriptor) ? ((EventPropertyDescriptor)property).EventDescriptor : null;
}
public PropertyDescriptorCollection GetEventProperties(EventDescriptorCollection events)
{
return new PropertyDescriptorCollection(new PropertyDescriptor[] { } true);
}
public PropertyDescriptor GetEventProperty(EventDescriptor e)
{
return new EventPropertyDescriptor(e this this.serviceProvider);
}
public bool ShowCode()
{
return false;
}
public bool ShowCode(int lineNumber)
{
return false;
}
public bool ShowCode(IComponent component EventDescriptor e)
{
return false;
}
protected void UseMethod(IComponent component EventDescriptor e string methodName)
{
if
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7093 2006-05-02 07:48 Designer Rehosting\EULA.txt
..A.SH. 19968 2006-05-09 14:06 Designer Rehosting\Thumbs.db
文件 1463 2006-04-12 22:55 Designer Rehosting\WorkflowDesignerControl.sln
..A..H. 116224 2009-10-30 10:29 Designer Rehosting\WorkflowDesignerControl.suo
文件 1106 2006-04-12 22:53 Designer Rehosting\WorkflowDesignerExample\Program.cs
文件 164 2006-02-14 11:52 Designer Rehosting\WorkflowDesignerExample\saveToolStripButton.Image.png
..A.SH. 5632 2006-05-09 13:43 Designer Rehosting\WorkflowDesignerExample\Thumbs.db
文件 11629 2006-05-09 13:23 Designer Rehosting\WorkflowDesignerExample\WindowsFormApp.cs
文件 4444 2006-04-12 22:53 Designer Rehosting\WorkflowDesignerExample\WindowsFormApp.csproj
文件 36946 2006-05-09 15:25 Designer Rehosting\WorkflowDesignerExample\WindowsFormApp.Designer.cs
文件 13299 2006-05-09 13:23 Designer Rehosting\WorkflowDesignerExample\WindowsFormApp.resx
文件 317 2006-04-11 02:39 Designer Rehosting\WorkflowDesignerExample\Resources\collapseButton.Image.PNG
文件 255 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\copyToolStripButton.Image.png
文件 214 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\cutToolStripButton.Image.png
文件 316 2006-04-11 02:38 Designer Rehosting\WorkflowDesignerExample\Resources\expandButton.Image.PNG
文件 198 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\newToolStripButton.Image.png
文件 241 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\openToolStripButton.Image.png
文件 286 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\pasteToolStripButton.Image.png
文件 249 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\printToolStripButton.Image.png
文件 221 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\saveToolStripButton.Image.png
文件 406 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\zoomInToolButton.Image.png
文件 399 2005-04-13 00:40 Designer Rehosting\WorkflowDesignerExample\Resources\zoomOut.Image.png
文件 2052 2005-09-24 15:04 Designer Rehosting\WorkflowDesignerExample\Properties\AssemblyInfo.cs
文件 2868 2006-04-11 01:57 Designer Rehosting\WorkflowDesignerExample\Properties\Resources.Designer.cs
文件 5817 2006-04-11 01:57 Designer Rehosting\WorkflowDesignerExample\Properties\Resources.resx
文件 1808 2005-09-24 15:04 Designer Rehosting\WorkflowDesignerExample\Properties\Settings.Designer.cs
文件 249 2005-09-24 14:39 Designer Rehosting\WorkflowDesignerExample\Properties\Settings.settings
文件 458 2006-05-09 15:26 Designer Rehosting\WorkflowDesignerExample\obj\WindowsFormApp.csproj.FileList.txt
文件 467 2006-04-12 22:53 Designer Rehosting\WorkflowDesignerExample\obj\WorkflowDesignerExample.csproj.FileList.txt
文件 909 2006-04-12 22:53 Designer Rehosting\WorkflowDesignerExample\obj\Debug\WorkflowDesignerExample.csproj.GenerateResource.Cache
............此处省略77个文件信息
评论
共有 条评论