• 大小: 6.35MB
    文件类型: .7z
    金币: 1
    下载: 0 次
    发布日期: 2023-08-14
  • 语言: C#
  • 标签: WINFORM  开源  

资源简介

WINFORM 绘制流程图 开源 .net开源的矢量图、流程图这绘制软件,对学习.Net项目中的MVC架构、C#编程、GDI+图像处理、实现应用程序的撤消与重做等其他很多知识都有很好的帮助。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

using Netron.Diagramming.Core;
using System.Drawing.Drawing2D;
using System.Runtime.Serialization;

namespace BasicShapes
{
    [Serializable()]
    [Shape(
        “Triangle“ // Shape Name
        “5B148C27-31F4-456f-8D1F-C7B8C8E86283“  // Shape Key
        “Basic Shapes“  // Category
        “A triangular shape.“  // Description
        false)]  // Is for internal use only?  NO.
    public class TriangleShape : SimpleShapebase
    {
        #region Fields

        // ------------------------------------------------------------------
        /// 
        /// The current version - used when deserializing the shape.
        /// 

        // ------------------------------------------------------------------
        protected double triangleShapeVersion = 1.0;

        #endregion

        #region Properties

        // ------------------------------------------------------------------
        /// 
        /// Gets the graphics path that defines this triangle.
        /// 

        // ------------------------------------------------------------------
        public GraphicsPath Path
        {
            get
            {
                GraphicsPath path = new GraphicsPath();
                path.AddLine(TopCenter
                    BottomRightCorner);

                path.AddLine(BottomRightCorner
                    BottomLeftCorner);

                path.AddLine(BottomLeftCorner
                    TopCenter);
                return path;
            }
        }

        // ------------------------------------------------------------------
        /// 
        /// Gets the friendly name of this shape.
        /// 

        // ------------------------------------------------------------------
        public override string EntityName
        {
            get
            {
                return “三角形“;
            }
        }

        // ------------------------------------------------------------------
        /// 
        /// Returns the version of this shape.
        /// 

        // ------------------------------------------------------------------
        public override double Version
        {
            get
            {
                return triangleShapeVersion;
            }
        }

        #endregion

        #region Constructors

        // ------------------------------------------------------------------
        /// 
        /// Default constructor.
        /// 

        // ------------------------------------------------------------------
        public TriangleShape()
            : base()
        {
        }

        // ------------------------------------------------------------------
        /// 

        /// Constructor that receives

评论

共有 条评论