public class UserControl1 : UserControl { // private Button saveButton; public event EventHandler SaveButtonClick { add { saveButton.Click += value; } remove { saveButton.Click -= value; } } }
时间: 2024-10-19 01:23:46
public class UserControl1 : UserControl { // private Button saveButton; public event EventHandler SaveButtonClick { add { saveButton.Click += value; } remove { saveButton.Click -= value; } } }