Today, I turned to the "second chapter of the mall promotion-strategy model" in the design model of the big talk of the elder of Wu fan. I feel with WF to achieve, relatively simple and intuitive, I like to do simple things. So he wrote this blog using the two main characters of the Wood Fan's predecessor, small dishes and big birds.
Time: April 16 location: Big Bird Room characters: Big Bird, vegetable
The Big Bird gave a piece of cake a problem, do a cashier software. The side dishes used WF4 less than 20 minutes to write the first version, the function is also very simple, as follows:
Define a Productitem class and Order class, as follows:
1 public class ProductItem
2 {
3 public decimal ProductPrice
4 {
5 get;
6 set;
7 }
8 public int ProductNumber
9 {
10 get;
11 set;
12 }
13 public string ProductName
14 {
15 get;
16 set;
17 }
18
19 }
20
21 public class Order
22 {
23 public Order()
24 {
25 ProductList = new List<ProductItem> ();
26 }
27 public List<ProductItem> ProductList
28 {
29 get;
30 set;
31 }
32 }
To set up the processing process: