void ButtonActivatedAction() { bool close = message.NotifyClicked(alertButton); if (close) { nsbutton.SendAction(oldAction, alert); } }
void ButtonClicked(object sender, EventArgs e) { Gtk.Button clickButton = (Gtk.Button)sender; foreach (AlertButton alertButton in buttons) { if (clickButton.Label == alertButton.Label) { resultButton = alertButton; break; } } bool close = message.NotifyClicked(resultButton); if (close) { this.Destroy(); } }