productinfo.cs

来自「电子商务网站转载而来[展开所有目录] [建议增加分类] (重要) 」· CS 代码 · 共 73 行

CS
73
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class ProductInfo
    {
        public string txtId = string.Empty;
        public string txtCategoryId = string.Empty;
        public string txtName = string.Empty;
        public string txtDesc = string.Empty;
        public bool txtVis;
        public ProductInfo()
        {
            //
            // TODO: 在此处添加构造函数逻辑
            //
        }
        public ProductInfo(string nId, string nCategoryId, string nName, string nDesc, bool nVis)
        {

            this.txtId = nId;
            this.txtCategoryId = nCategoryId;
            this.txtName = nName;
            this.txtDesc = nDesc;
            this.txtVis = nVis;

        }
        public ProductInfo(string nId, string nCategoryId, string nName)
        {

            this.txtId = nId;
            this.txtCategoryId = nCategoryId;
            this.txtName = nName;

        }
        public string ProductId
        {

            get { return txtId; }
            set { txtId = value; }

        }
        public string CategoryId
        {

            get { return txtCategoryId; }
            set { txtCategoryId = value; }

        }
        public string ProductName
        {

            get { return txtName; }
            set { txtName = value; }

        }
        public string Description
        {

            get { return txtDesc; }
            set { txtDesc = value; }

        }
        public bool Vis
        {
            get { return txtVis; }
            set { txtVis = value; }

        }
    }
}

⌨️ 快捷键说明

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