日期:2014-05-17 浏览次数:20404 次
public class Product
{
public string Name { get; set; }
public decimal Price { get; set; }
private DateTime _最后更新时间 = DateTime.Now;
public DateTime 最后更新时间
{
get { return _最后更新时间; }
set { _最后更新时间 = value; }
}
}
public class ProductOrder
{
public string ProductName { get; set; }
public DateTime DateTime { get; set; }
public string Address { get; set; }
public int Quantiy { get; set; }
public string Supplier { get; set; }
}
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
public static class BLL
{
private static List<Product> ProductDatabase = new List<Product>(){
new Product { Name="月亮美眉", Price=9009999},
new Product{ Name="屋子", Price=83722323},
new Product{ Name="一本书", Price=20}
}