自定义被封装的工作流控件方法
2008-03-06 22:12
323 查看
自定义类TaskEventArgs继承EventArgs,如果onTaskChanged控件需要自定义方法,那么先定义该方法属性,DesignerSerializationVisibilityAttribute,BrowsableAttribute,CategoryAttribute,定义EventHandler<TaskEventArgs>类型的方法,具体代码如下:
TaskEventArgs.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Workflow.Activities;
using Microsoft.SharePoint.Workflow;
namespace wfACT
自定义方法:
public static DependencyProperty onTaskChanged_IsTaskCompleteEvent = DependencyProperty.Register("onTaskChanged_IsTaskComplete", typeof(System.EventHandler<wfACT.TaskEventArgs>), typeof(wfACT.TaskActivity));
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
[BrowsableAttribute(true)]
[CategoryAttribute("TaskChanged属性")]
public event EventHandler<TaskEventArgs> onTaskChanged_IsTaskComplete
{
{
{
base.RemoveHandler(onTaskChanged_IsTaskCompleteEvent, value);
}
}
TaskEventArgs.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Workflow.Activities;
using Microsoft.SharePoint.Workflow;
namespace wfACT
自定义方法:
public static DependencyProperty onTaskChanged_IsTaskCompleteEvent = DependencyProperty.Register("onTaskChanged_IsTaskComplete", typeof(System.EventHandler<wfACT.TaskEventArgs>), typeof(wfACT.TaskActivity));
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
[BrowsableAttribute(true)]
[CategoryAttribute("TaskChanged属性")]
public event EventHandler<TaskEventArgs> onTaskChanged_IsTaskComplete
{
{
{
base.RemoveHandler(onTaskChanged_IsTaskCompleteEvent, value);
}
}
相关文章推荐
- 自定义被封装的工作流控件方法
- 封装日期时间自定义格式方法
- javascript封装自定义滚动条方法,可自定义四个边框滚动条
- VS2005下自定义用户控件 如何实现属性及方法的相关智能提示
- 【汉化】DevExpress插件中RichEdit控件的自定义汉化方法 - ExDevilLee
- C# WinForm 封装自定义组件(控件)Dll
- asp.net Control.Parent的用法之一 - 用于验证控件的方法的封装
- 安卓控件自定义的方法
- MFC/WINDOW访问(设置)控件内容及句柄的常用的方法和自定义消息方法
- 一份实用的tabBar封装 系统方法调用 内部为自定义tabBar
- ASP.NET 用户控件自定义属性、方法、事件
- extjs6 基础组件扩展和自定义组件封装--04静态js方法的设计思想
- 自定义绘制控件的方法
- pentaho cde 封装自定义图形控件,动态传参
- 带checkbox的ListView实现(二)——自定义Checkable控件的实现方法
- moss2007自定义工作流开发中运行install.bat文件遇到的问题及解决方法
- Asp.net自定义验证控件CustomValidator 的使用方法
- OC基础—————类型的可见度,封装,自定义方法, set 和 get
- 很犀利的防止自定义的用户控件闪烁方法
- Visual studio.net 2003中使用自定义(用户)控件(服务器控件)的方法(原创)