private void buttonSelectEvents_ButtonClick(object sender, EventArgs e) { var dialog = new SelectEventsDialog(); if (dialog.ShowDialog() == DialogResult.OK) { } }