Exemple #1
0
        static void Main(string[] args)
        {
            Order order = new Order()
            {
                CustomerInfo = new Customer()
                {
                    CunstomerType = CustomerTypeEnum.Vip
                }
            };

            order.Add(new OrderItem()
            {
                ProductInfo = new Product()
                {
                    pId = "123456", pName = "1", pPrice = 100
                }
            });
            order.Add(new OrderItem()
            {
                ProductInfo = new Product()
                {
                    pId = "234567", pName = "2", pPrice = 3600
                }
            });
            using (var language = LanguageComponentManagerFactory.RebuildLanguageComponent())
            {
                language.Resume();
            }
            Console.ReadKey();
        }
Exemple #2
0
 public void Dispose()
 {
     if (this.trackMark == null)
     {
         this.FirstLanguage = null;
         this.Parameters    = null;
     }
     LanguageComponentManagerFactory.FreezLanguageComponentManagerObject(this);
 }