Updating One Form After Event Occurs in Another Form

纵饮孤独 提交于 2019-12-01 14:42:21

If we're just talking about two forms I would go the simple route (e.g. Don't use a factory class).

in your receiver form add an event (like ProductListChanged)

add a global variable (via static class property (see below)) to hold the receiver form.

public class globals {
  public static ProductForm productForm {get;set;}
}

Then you can raise the ProductListChanged event via the global static property.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!