コード例 #1
0
 public static void LoadItem(ItemInfo i, int copperWatchFlag = 0)
 {
     OverlayManager.ExecuteJavascript(string.Format("loadItem({0});",
                                                    string.Format("{{\"name\":\"{0}\", \"buy\":{1}, \"sell\":{2}, \"margin\":{3}, \"watchFlag\":{4}}}",
                                                                  i.Name,
                                                                  i.BuyPrice.ToString(),
                                                                  i.SellPrice.ToString(),
                                                                  i.ProfitMargin.ToString(),
                                                                  copperWatchFlag.ToString().ToLower())));
 }