www.pudn.com > WorkflowDesigner.rar > DesignerNewStartActivityTool.cs, change:2007-11-16,size:1746b


using System; 
using System.Collections.Generic; 
using System.Text; 
 
namespace WorkflowDesigner.Designer 
{ 
    /// <summary> 
    /// 开始节点设计工具 
    /// </summary> 
    public class DesignerNewStartActivityTool : DesignerAbstractNewActivityTool 
    { 
 
        #region 字段 
 
 
 
        #endregion 
 
        #region 属性 
 
 
        #endregion 
 
        #region 构造函数 
         
        /// <summary> 
        /// 构造函数 
        /// </summary> 
        public DesignerNewStartActivityTool() 
        {  
         
        } 
        #endregion 
 
        #region 操作 
 
        #region 私有 
        #endregion 
 
        #region 保护 
        /// <summary> 
        /// 创建一个节点(可视化对象) 
        /// </summary> 
        /// <param name="x">鼠标所在位置的x轴坐标</param> 
        /// <param name="y">鼠标所在位置的y轴坐标</param> 
        /// <returns>返回创建的节点</returns> 
        protected override WfAbstractActivity CreateActivity(int x, int y) 
        { 
            return new WfStartActivity(x, y); 
        } 
 
       /// <summary> 
       /// 得到节点名称 
       /// </summary> 
       /// <returns></returns> 
        protected override string GenerateNewActivityName() 
        { 
            return "开始"; 
        } 
        #endregion 
 
        #region 公用 
        /// <summary> 
        /// 当鼠标按下时 
        /// </summary> 
        /// <param name="x">鼠标点所在的位置x轴坐标</param> 
        /// <param name="y">鼠标点所在的位置y轴坐标</param> 
        public override void OnMouseDown(int x, int y) 
        { 
            base.OnMouseDown(x, y); 
            Ctrl.CurrentTool = new DesignerSelector(); 
        } 
 
        #endregion 
        #endregion 
        
    } 
}