https://blog.csdn.net/weixin_28912709/article/details/113279742
你好,你的这个帖子,里面的内容有安装教程吗?我看是.net写的,没找到如何运行
public delegate void TransfDelegate(ListViewItem transf); //声明委托
public partial class FrmCustomerShop : Form
{
public FrmCustomerShop()
{
InitializeComponent();
}
public static string productName;
public event TransfDelegate TransfEvent1; //声明事件
private void btnOK_Click(object sender, EventArgs e) //加入购物车
{
//将购买信息传入购物清单
int sumCash= int.Parse(txtBuyCount.Text) * int.Parse(lbPrice.Text);//总金额=单价*数量
ListViewItem item = new ListViewItem();
item.Text = lbProductName .Text;//商品的名称
item.SubItems.Add(lbPrice.Text); //单价
item.SubItems.Add(txtBuyCount.Text);//购买的数量
item.SubItems.Add(sumCash.ToString()); //总金额
TransfEvent1(item); //传入另一个控件中
}
}
从github里面下载,然后打开appsettings.json文件,按照里面的配置修改注释。
https://github.com/holdengong/MysqlProfiler