private void DeletePanel_Click(object sender, EventArgs e) { Console.WriteLine("Delete button clicked."); Delete_Clicked?.Invoke(Name); }
public void DeleteButtonClicked() { // Fire Delete_Clicked Event with the unique ID of the TabItem Delete_Clicked?.Invoke(this, new GeneratorTabItemDeletedEventArgs(ID)); }