コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }