private async void eventToolStripMenuItem_Click(object sender, EventArgs e) { try { var dialog = new EventSettingsDialog() { EventSettings = this.EventSettings }; if (dialog.ShowDialog(this) == DialogResult.OK) { EventSettings = dialog.EventSettings; await ReadFeedDataAsync(); } } catch (Exception ex) { ExceptionHandler(ex); } }
protected virtual async Task DisplayEventSettingsDialog() { try { var dialog = new EventSettingsDialog(this.Log) { EventSettings = this.EventSettings }; if (dialog.ShowDialog(this) == DialogResult.OK) { EventSettings = dialog.EventSettings; await ReadFeedDataAsync(); } } catch (Exception ex) { ExceptionHandler("Error loading Event", ex); } }