示例#1
0
        public Form1()
        {
            Order order1 = new Order("001", "mina", "鞋", 600);
            Order order2 = new Order("002", "momo", "猪蹄", 20);
            Order order3 = new Order("003", "jyh", "奶茶", 12);
            Order order4 = new Order("004", "jyh", "鞋", 622);
            Order order5 = new Order("005", "sana", "书", 48);
            Order order6 = new Order("006", "sana", "帽子", 100);



            service.Add(order1);
            service.Add(order2);
            service.Add(order3);
            service.Add(order4);
            service.Add(order5);
            service.Add(order6);

            InitializeComponent();

            orderBindingSource.DataSource = service.orders;
        }