资源简介

WinForm 属性编辑 propertyGrid示例 让你的程序属性编辑可以和vs 编辑器一样好用

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CustomerSetProperty
{
    public class Customer
    {
        private string _name;
        private int _age;
        private DateTime _dateOfBirth;
        private string _SSN;
        private string _address;
        private string _email;
        private bool _frequentBuyer;
        [CategoryAttribute(“ID Settings“) DescriptionAttribute(“Name of the customer“)]
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }
        [CategoryAttribute(“ID Settings“) DescriptionAttribute(“Social Security Number of the customer“)]

        public string SSN
        {
            get
            {
                return _SSN;
            }
            set
            {
                _SSN = value;
            }
        }
        [CategoryAttribute(“ID Settings“) DescriptionAttribute(“Address of the customer“)]
        public string Address
        {
            get
            {
                return _address;
            }
            set
            {
                _address = value;
            }
        }
        [CategoryAttribute(“ID Settings“) DescriptionAttribute(“Date of Birth of the Customer (optional)“)]
        public DateTime DateOfBirth
        {
            get { return _dateOfBirth; }
            set { _dateOfBirth = value; }
        }
        [CategoryAttribute(“ID Settings“) DescriptionAttribute(“Age of the customer“)]
        public int Age
        {
            get { return _age; }
            set { _age = value; }
        }
        [CategoryAttribute(“Marketting Settings“) DescriptionAttribute(“If the customer has bought more than 10 times this is set to true“)]
        public bool FrequentBuyer
        {
            get { return _frequentBuyer; }
            set { _frequentBuyer = value; }
        }
        [CategoryAttribute(“Marketting Settings“) DescriptionAttribute(“Most current e-mail of the customer“)]
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        public Customer() { }
    } 
}


 


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\App.config

     文件      10240  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\bin\Debug\CustomerSetProperty.exe

     文件        187  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\bin\Debug\CustomerSetProperty.exe.config

     文件      32256  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\bin\Debug\CustomerSetProperty.pdb

     文件      22984  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\bin\Debug\CustomerSetProperty.vshost.exe

     文件        187  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\bin\Debug\CustomerSetProperty.vshost.exe.config

     文件        490  2012-06-02 22:34  CustomerSetProperty\CustomerSetProperty\bin\Debug\CustomerSetProperty.vshost.exe.manifest

     文件       2412  2013-01-18 10:59  CustomerSetProperty\CustomerSetProperty\Customer.cs

     文件       3856  2013-01-18 10:59  CustomerSetProperty\CustomerSetProperty\CustomerSetProperty.csproj

     文件       1107  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\Form1.cs

     文件       2544  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\Form1.Designer.cs

     文件       5817  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\Form1.resx

     文件       1248  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\obj\Debug\CustomerSetProperty.csproj.FileListAbsolute.txt

     文件        975  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\obj\Debug\CustomerSetProperty.csproj.GenerateResource.Cache

     文件       2209  2013-01-18 10:59  CustomerSetProperty\CustomerSetProperty\obj\Debug\CustomerSetProperty.csprojResolveAssemblyReference.cache

     文件      10240  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\obj\Debug\CustomerSetProperty.exe

     文件        180  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\obj\Debug\CustomerSetProperty.Form1.resources

     文件      32256  2013-01-18 11:14  CustomerSetProperty\CustomerSetProperty\obj\Debug\CustomerSetProperty.pdb

     文件        180  2013-01-18 10:59  CustomerSetProperty\CustomerSetProperty\obj\Debug\CustomerSetProperty.Properties.Resources.resources

     文件        863  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7172  2013-01-18 10:59  CustomerSetProperty\CustomerSetProperty\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        531  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\Program.cs

     文件       1358  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\Properties\AssemblyInfo.cs

     文件       2890  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\Properties\Resources.Designer.cs

     文件       5612  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\Properties\Resources.resx

     文件       1106  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\Properties\Settings.Designer.cs

     文件        249  2013-01-18 10:48  CustomerSetProperty\CustomerSetProperty\Properties\Settings.settings

............此处省略13个文件信息

评论

共有 条评论