public FormDP(DelText del) { InitializeComponent(); cmbTime.Items.Clear(); for (int i = 1; i < 72; i++) { cmbTime.Items.Add("第" + i.ToString() + "年"); } cmbTime.SelectedIndex = 0; this._del = del; }
static void Main(string[] args) { //这个就是多播委托 DelText del = T1; del += T2; del += T3; del += T4; del -= T4; del -= T3; }
private void delActClick(object sender, EventArgs e) { string str = ""; if (actionSelectorHB.SelectedItem.GetType() == typeof(string)) { str = (string)actionSelectorHB.SelectedItem; } else { str = ((HitBoxAction)actionSelectorHB.SelectedItem).Name; } DelText?.Invoke(str); }
public Form2(DelText de) { InitializeComponent(); this._de = de; }