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); } }
public TVSService(ProductType productType, OrderHistory.Product product) { this.productType = productType; this.Product = product; }