using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PropertyGrid
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
//声明一个实例对象
Station st = new Station();
// 获取在网格中显示属性的对象。
MyPropertyGrid.SelectedObject = st;
}
//首先写一个类
public class Station
{
private int positionX;
private int positionY;
private bool enable;
private double mistakeX;