public void OnCloseTabRequested() { if (CloseTabRequested != null) { CloseTabRequested.Invoke(); } }
protected virtual void OnCloseTabRequested(EventArgs e) { CloseTabRequested?.Invoke(this, EventArgs.Empty); }
private void CloseTab() { CloseTabRequested?.Invoke(this, EventArgs.Empty); }
private void button1_Click(object sender, EventArgs e) { CloseTabRequested?.Invoke(this, EventArgs.Empty); }