Esempio n. 1
0
 public static bool SaveAnonymousItem(OrderHistory.Product product)
 {
     Console.WriteLine("SaveAnonymousItem");
     try
     {
         using (StreamWriter sw = new StreamWriter(File.Open(Constants.PathforSaveItem, FileMode.Append)))
         {
             Debug.WriteLine("Constants.PathforSaveItem");
             sw.Write(String.Format("{0},", product.ToJson()));
             Debug.WriteLine(String.Format("{0},", product.ToJson()));
         }
         SendAnonymousList();
         return(true);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.StackTrace);
         return(false);
     }
 }
Esempio n. 2
0
 public TVSService(ProductType productType, OrderHistory.Product product)
 {
     this.productType = productType;
     this.Product     = product;
 }