复合控件中 公开子控件事件
public class UserControl1 : UserControl { // private Button saveButton; public event EventHandler SaveButtonClick { add { saveButton.Click += value; } remove { saveButton.Click -= value; } } }
public class UserControl1 : UserControl { // private Button saveButton; public event EventHandler SaveButtonClick { add { saveButton.Click += value; } remove { saveButton.Click -= value; } } }