void OnOkClicked(object s, EventArgs args) { if (Validate ()) dialog.Respond (Gtk.ResponseType.Ok); }