C# 父子窗体 传值

子窗体
   public event Action<List<DataGridViewRow>> myEvent;
   myEvent(List);  子窗体调用

父窗体
创建对象
           frm.myEvent += Set物料;
  private void Set物料(List<DataGridViewRow> list)()
{
}

猜你喜欢

转载自www.cnblogs.com/enych/p/11643349.html