public class UserControl1 : UserControl { // private Button saveButton; public event EventHandler SaveButtonClick { add { saveButton.Click += value; } remove { saveButton.Click -= value; } } }
时间: 2024-12-31 03:37:33
public class UserControl1 : UserControl { // private Button saveButton; public event EventHandler SaveButtonClick { add { saveButton.Click += value; } remove { saveButton.Click -= value; } } }