FormStore.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using CommonRPG.Protocol.Client;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace CommonRPG.Client.Win32.Forms
  12. {
  13. public partial class FormStore : Form
  14. {
  15. private readonly RPGClient mClient;
  16. public FormStore(RPGClient client)
  17. {
  18. this.mClient = client;
  19. InitializeComponent();
  20. }
  21. private void tabShop_Click(object sender, EventArgs e)
  22. {
  23. //this.mClient.GameClient.Request(new ClientGetShopListRequest()
  24. //ClientGetShopListRequest req = new ClientGetShopListRequest();
  25. //req.c2s_shop_type = 2;
  26. //this.mClient.GameClient.Request<ClientGetShopListResponse>(req, (err, rsp) =>
  27. //{
  28. // if (rsp.s2c_code == ClientGetShopListResponse.CODE_OK)
  29. // {
  30. // }
  31. // else
  32. // {
  33. // MessageBox.Show("获取商品列表信息 结果:" + rsp.s2c_code + " 原因:"
  34. // + rsp.s2c_msg);
  35. // }
  36. //});
  37. }
  38. private void button1_Click(object sender, EventArgs e)
  39. {
  40. //ClientGetShopListRequest req = new ClientGetShopListRequest();
  41. //req.c2s_shop_type = 2;
  42. //this.mClient.GameClient.Request<ClientGetShopListResponse>(req, (err, rsp) =>
  43. //{
  44. // if (rsp.s2c_code == ClientGetShopListResponse.CODE_OK)
  45. // {
  46. // }
  47. // else
  48. // {
  49. // MessageBox.Show("获取商品列表信息 结果:" + rsp.s2c_code + " 原因:"
  50. // + rsp.s2c_msg);
  51. // }
  52. //});
  53. }
  54. }
  55. }