point.cs

来自「一个Wince的小程序」· CS 代码 · 共 62 行

CS
62
字号
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace SettingInterface
{
    public partial class point  //系统中用到的点,这个元素中包括X坐标Y坐标和编号
    {
        int x, y, num;

        public int Num
        {
            get { return num; }
            set { num = value; }
        }

        public int Y
        {
            get { return y; }
            set { y = value; }
        }

        public int X
        {
            get { return x; }
            set { x = value; }
        }
        public void Set(int x, int y,int num)
        {
            this.x = x;
            this.y = y;
            this.num = num;
        }
        public void Set(Point p, int num)
        {
            this.x = p.X;
            this.y = p.Y;
            this.num = num;
        }
        public point(int x, int y, int num)
        {
            this.x = X;
            this.y = Y;
            this.num = num;
        }
        public point()
        {
            this.x = 0;
            this.y = 0;
            this.num = 0;
        }
        public point(Point p, int num)
        {
            this.x = p.X;
            this.y = p.Y;
            this.num = num;
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?